Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

Local Variable in Jenkins

// Define variable
def myVariable = "foo"

// Print variable
pipeline {
  agent any
  stages {
    stage ("Print variable") {
      steps {
        echo "My variable is ${myVariable}"
      }
    }
  }
}
Source by www.shellhacks.com #
 
PREVIOUS NEXT
Tagged: #Local #Variable #Jenkins
ADD COMMENT
Topic
Name
6+2 =