aboutsummaryrefslogtreecommitdiffstats
path: root/aai-resources/src/main/jenkins/checkout.groovy
blob: ed439ecd250e23d174b4903ad1ef358f84ab9cba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
def gitCheckout() {
	stage 'Checkout GIT'
	//different ways to checkout
	//checkout from master
	//git "url: ${GIT_URL}, branch: ${GIT_BRANCH}"
	//checkout from branch hardcoding"
	//git branch: 'jenkins_deploy_test', credentialsId: 'b9bbafe5-53ce-4d2c-8b84-09137f75c592', url: 'https://codecloud.web.att.com/scm/st_ocnp/sdk-java-starter.git'
	//checkout from branch parameters with credentials
	//git branch: "${GIT_BRANCH}", credentialsId: 'b9bbafe5-53ce-4d2c-8b84-09137f75c592', url: "${GIT_URL}"
	//checkout from branch parameters with no credentials
	git branch: "${GIT_BRANCH}", url: "${GIT_URL}"
}
return this