stage ('Checkout') 
		{
			steps
				{
					withCredentials([[$class: 'UsernamePasswordMultiBinding',
					credentialsId: 'credentail id입력',
					usernameVariable: 'USERNAME', passwordVariable: 'PASSWORD']]) {
						sh "svn co svn://url:port/svn --username $USERNAME --password $PASSWORD ./"
					}
				}
		}

 

'credentail id입력' 란에 "Jenkins 관리" > "Credentials" 메뉴에 ID 값 입력

 

 

[참고]

https://hongddo.tistory.com/208

'Infra Structure > Jenkins' 카테고리의 다른 글

[Jenkins] 원격 계정생성  (0) 2022.06.13
[Jenkins] 백업 / 복구  (0) 2022.06.03
[Jenkins] cron을 활용한 젠킨스 Health Check  (0) 2022.03.31
[Jenkins] Health check  (0) 2022.02.26
[Jenkins] 원격 쉘 실행  (0) 2022.02.23

+ Recent posts