[JIRA] (JENKINS-60836) "No such property: JENKINS_URL" on cron-triggered job, resolved by manual trigger

2 views
Skip to first unread message

allan.lewis@youview.com (JIRA)

unread,
Jan 22, 2020, 6:35:03 AM1/22/20
to jenkinsc...@googlegroups.com
Allan Lewis created an issue
 
Jenkins / Bug JENKINS-60836
"No such property: JENKINS_URL" on cron-triggered job, resolved by manual trigger
Issue Type: Bug Bug
Assignee: Unassigned
Attachments: consoleText, plugins.txt
Components: core, pipeline
Created: 2020-01-22 11:34
Environment: Jenkins 2.176.2
See attached plugins.txt
Priority: Major Major
Reporter: Allan Lewis

I have a multi-branch pipeline with the following as the first line, outside of pipeline:

JENKINS_HOST = JENKINS_URL.toURL().host.tokenize('.')[0]

This value is used inside the pipeline.

The pipeline generally works but, apparently at random, builds will fail with the following exception:

groovy.lang.MissingPropertyException: No such property: JENKINS_URL for class: groovy.lang.Binding

See consoleText for a redacted console log including the stack trace.

This has only been observed on cron-triggered builds: manually building the job, or rebuilding a failed job, works fine.

The pipeline defines some parameters, I'm not sure if that's relevant.

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages