Skip to content

Commit

Permalink
Create global-variables
Browse files Browse the repository at this point in the history
  • Loading branch information
javahometech authored Apr 25, 2018
1 parent 072975e commit 2d498d2
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions global-variables
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
node {
// Accessing data from currentBuild objects

echo "Current Build Absolute URL ${currentBuild.absoluteUrl}"
echo "Current Build Result ${currentBuild.currentResult}"

// Accessing data from env object

echo "Jenkins Home ${env.JENKINS_HOME}"
echo "Jenkins URL ${env.JENKINS_URL}"
echo "JOB Name ${env.JOB_NAME}"

}

0 comments on commit 2d498d2

Please sign in to comment.