-
Type:
Bug
-
Status: Resolved (View Workflow)
-
Priority:
Major
-
Resolution: Fixed
-
Component/s: pipeline-model-definition-plugin
-
Labels:None
-
Similar Issues:
After upgrading from v1.1.9 to v1.2.2 (and even v1.2.3 as of yesterday), our pipelines started to hang. This seems to be related to JENKINS-45198. Showing the pipeline steps was the key to figure this out as it was stuck in "Set environment variables" (See attachment)
BlueOcean would say: Queued Waiting for run to start
Console would say:
[Pipeline] { (Declarative: Checkout SCM) [Pipeline] checkout > git rev-parse --is-inside-work-tree # timeout=10 Fetching changes from the remote Git repository > git config remote.origin.url ... # timeout=10 Fetching without tags Fetching upstream changes from ... > git --version # timeout=10 using GIT_ASKPASS to set credentials Jenkins Github password > git fetch --no-tags --progress ... Checking out Revision d6a063e9118ab507621bdf42ce9baa67fc07d5f4 (master) > git config core.sparsecheckout # timeout=10 > git checkout -f d6a063e9118ab507621bdf42ce9baa67fc07d5f4 Commit message: "v2.0.65 changelog" > git rev-list d6a063e9118ab507621bdf42ce9baa67fc07d5f4 # timeout=10 [Pipeline] } [Pipeline] // stage [Pipeline] withEnv [Pipeline] {
This is with all plugins and jenkins up to date as of today.
Jenkinsfile attached
Many thanks for any help/light you can shine on this
- links to
I believe that's because of this line:
BRANCH = "${env.BRANCH}"
I'm not 100% sure whether that's due to you trying to set something to its own value (which is what you're doing there) or because you're trying to override a parameter (albeit with its own value again!). Regardless, that line is completely superfluous and if you remove it, you'll be good to go. I'll investigate to figure out exactly what the hang is being caused by to see if I can prevent this.