I wrote a pipeline script and in console output i need createhosts log output also instead of showing build number.
Script:
pipeline {
agent none
stages {
stage('create hosts') {
steps {
echo "Hello! , This build for create VMs "
build job: 'createhosts',
parameters: [
*********
********* some parameters
]
}
}
stage ('CD job ') {
steps {
echo "This build for configure VMs "
build job: 'CD'
}
}
stage ('Delete VMs') {
steps {
echo "This job is required a host file as input for approval to Delete VMs"
input "approve for deletion"
build job: 'delete_vms'
}
}
}
}