Skip to content

Commit

Permalink
Update scm_demo
Browse files Browse the repository at this point in the history
  • Loading branch information
javahometech authored Nov 1, 2018
1 parent 34601b2 commit b66a467
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions scm_demo
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
node {
checkout scm
/* .. snip .. */
echo "${env.BRANCH_NAME}"
stage('Deploy') {

for(def branch: scm.branches){
echo branch.name
}
}

def scmVars = checkout scm
def commitHash = scmVars.GIT_COMMIT
echo commitHash
}

0 comments on commit b66a467

Please sign in to comment.