Skip to content

Commit

Permalink
Create parameterized-builds
Browse files Browse the repository at this point in the history
  • Loading branch information
javahometech authored Apr 23, 2018
1 parent 483dbba commit d6fea67
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions parameterized-builds
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
properties([parameters([choice(choices: 'master\nfeature-1\nfeature-2', description: 'Select Branch to build', name: 'branch')])])

node{
stage('Scm Checkout'){
echo "Pulling changes from the branch ${params.branch}"
git url: 'https://github.com/javahometech/my-app', branch: "${params.branch}"
}

}

0 comments on commit d6fea67

Please sign in to comment.