-
Bug
-
Resolution: Fixed
-
Minor
-
None
-
* Jenkins core 2.156
* All experimental update center level plugins, including git and git-client betas
Summary
While stress testing the submodule changes as I've described in git-plugin PR 352, I noticed an ERROR in the job's log. This was because the optional `reference` extension shown in this `checkout` step was missing. The presence of `ERROR` seemed jarring, so Mark and I agreed that log message should be shown at a lower severity.
Steps to recreate
1. Create a pipeline job and use a Jenkinsfile with a checkout step. This checkout should include a extensions section, with a reference pointing to something that doesn't exist. Like this one:
node() { deleteDir() stage('Checkout') { checkout([ $class: 'GitSCM', branches: [[name: '*/master']], extensions: [[$class: 'CloneOption', noTags: false, reference: '/path/to/something/that/is/not/here.git', shallow: false]], gitTool: 'Default', userRemoteConfigs: [[ credentialsId: '06df34bc-ea33-4a9b-a5bb-5728a0d6fddc', url: 'https://github.com/jenkinsci/pipeline-model-definition-plugin.git' ]] ]) } }
2. Run the pipeline.
3. In the log, you'll see the ERROR as follows:
Started by user admin Running in Durability level: PERFORMANCE_OPTIMIZED [Pipeline] node Running on Jenkins in /var/lib/jenkins/workspace/Git-Plugin-Beta/for-issue [Pipeline] { [Pipeline] deleteDir [Pipeline] stage [Pipeline] { (Checkout) [Pipeline] checkout Cloning the remote Git repository Cloning repository https://github.com/jenkinsci/pipeline-model-definition-plugin.git > git init /var/lib/jenkins/workspace/Git-Plugin-Beta/for-issue # timeout=10 ERROR: Reference path does not exist: /path/to/something/that/is/not/here.git Fetching upstream changes from https://github.com/jenkinsci/pipeline-model-definition-plugin.git > git --version # timeout=10 using GIT_ASKPASS to set credentials kshultzCB on GH > git fetch --tags --progress https://github.com/jenkinsci/pipeline-model-definition-plugin.git +refs/heads/*:refs/remotes/origin/* # timeout=10 > git config remote.origin.url https://github.com/jenkinsci/pipeline-model-definition-plugin.git # timeout=10 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 > git config remote.origin.url https://github.com/jenkinsci/pipeline-model-definition-plugin.git # timeout=10 Fetching upstream changes from https://github.com/jenkinsci/pipeline-model-definition-plugin.git using GIT_ASKPASS to set credentials kshultzCB on GH > git fetch --tags --progress https://github.com/jenkinsci/pipeline-model-definition-plugin.git +refs/heads/*:refs/remotes/origin/* # timeout=10 > git rev-parse refs/remotes/origin/master^{commit} # timeout=10 > git rev-parse refs/remotes/origin/origin/master^{commit} # timeout=10 Checking out Revision ce298b76d6e71ef694794fc5d6b7719a9c191894 (refs/remotes/origin/master) > git config core.sparsecheckout # timeout=10 > git checkout -f ce298b76d6e71ef694794fc5d6b7719a9c191894 # timeout=10 Commit message: "Merge pull request #309 from jenkinsci/JENKINS-52744" > git rev-list --no-walk ce298b76d6e71ef694794fc5d6b7719a9c191894 # timeout=10 [Pipeline] } [Pipeline] // stage [Pipeline] } [Pipeline] // node [Pipeline] End of Pipeline Finished: SUCCESS
- links to