java-tutorials/jenkins-modules/jenkins-jobs/output-job/pipeline-returnstdout-job

14 lines
276 B
Plaintext

pipeline {
agent any
stages {
stage('Example') {
steps {
script {
def output = sh(returnStdout: true, script: 'pwd')
echo "Output: ${output}"
}
}
}
}
}