I have created a new job in Jenkin using pipeline . After this I have provided Gitlab project url and Jenkinsfile path in SCM. While building the pipeline I am not able to see any message between start pipeline and end pipeline. While putting invalid code to JenkinsFile, build is failing but when running simple command like echo its not printing anything to console. Is there anything I am missing?
Console Output
[Pipeline] Start of Pipeline
[Pipeline] End of Pipeline
Finished: SUCCESS
Jenkinsfile
pipeline {
agent any
stages {
stage ('Build') {
steps {
echo
'Running build phase. '
}
}
}
}
console output Jenkinsfile code
CodePudding user response:
For testing, try the same echo in a scripted pipeline block:
steps {
script {
echo 'Running build phase. '
}
}
CodePudding user response:
I would suggest to install all the required plugins and then restart your Jenkins server and if you are running this locally then a system restart might be helpful.