Jenkins console output not printing anything between start and end of pipeline

Viewed 1162

I have created a new job in Jenkins 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

2 Answers

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.

Related