CI_CD/jenkins
[jenkins] pipeline git checkout 방법
홍또~
2021. 9. 1. 11:53
jenkins pipeline으로 git소스 checkout 받는 소스
stage('Clone') {
steps {
echo 'Clone'
git branch: 'master', credentialsId: 'credentail id', url: 'git repo에서 복사한 url'
}
}
credentialsId관련은
https://hongddo.tistory.com/208
[jenkins] pipeline svn checkout 방법
job을 pipeline으로 생성할때 svn에서 소스를 checkout 하는 방법 stage ('Checkout') { steps { withCredentials([[$class: 'UsernamePasswordMultiBinding', credentialsId: 'credentail id입력', usernameVaria..
hongddo.tistory.com
에서 ※credentialsId 등록방법 를 참고한다.