I would like to use EnvInject plugin within my pipeline job. So, I have a possibility to set checkbox \"Prepare an environment for the run\", but there is no action \"Inject
Here an example as a complete Jenkins pipeline script:
pipeline {
agent any
stages {
stage('Test') {
steps {
// use environment variable as parameter to predefined steps
echo "These are my parameters: '${env.param}'"
// use environment variable in a Groovy script block
script {
def par = env.param
println "parameter values: '${par}'"
}
}
}
}
}