[JIRA] (JENKINS-60914) Freestyle job with urltrigger doesn't inject parameter with default value

8 views
Skip to first unread message

john.lengeling@gmail.com (JIRA)

unread,
Jan 29, 2020, 6:07:03 PM1/29/20
to jenkinsc...@googlegroups.com
John Lengeling created an issue
 
Jenkins / Bug JENKINS-60914
Freestyle job with urltrigger doesn't inject parameter with default value
Issue Type: Bug Bug
Assignee: Gregory Boissinot
Components: urltrigger-plugin
Created: 2020-01-29 23:06
Environment: Jenkins 2.204.1, urltrigger 0.47, Ubuntu 14.04
Priority: Minor Minor
Reporter: John Lengeling

We just upgraded from Jenkins 2.176.3 -> 2.204.1 and also updated to latest plugin versions.

We have a freestyle job that quit working after the upgrade that uses the urltrigger plugin.  The freestyle job has a simple string parameter and its value should be injected into the job as an environment variable.

Running urltrigger 0.47, the string parameter is not getting injected when the urltrigger fires the job.  This was working using urltrigger 0.43.    We downgraded to 0.43 and this job started working again.

The URLTrigger log from 0.47 when failing:

 

Polling started on Jan 29, 2020 10:43:04 AM
{{Polling for the job testfoo }}
{{Looking nodes where the poll can be run. }}
{{Looking for a candidate node to run the poll. }}
Trying to find an eligible node with the assigned project label coord.
{{Polling remotely on jenkinsserver }}
Resolving environment variables using global values
{{Using Basic Authentication with the user 'build' }}
{{Invoking the url: }}{{[https://jenkinsserver.foo.com/job/test/job/test/job/testing/lastSuccessfulBuild/buildNumber/

https://gen4cc-os.virtd.deere.com/job/gen4cc-os/job/gen4os/job/release-20-1/lastSuccessfulBuild/buildNumber/]}}{{}}{{Inspecting the content The content of the URL has changed. }}
{{The content has changed. }}
{{Polling complete. }}
{{Took 0.61 sec. }}
{{Changes found. }}
Scheduling a build.
 When running with the working 0.43 plugin, the urltrigger log shows slightly different behavior.  It logs "Resolving environment variables using last build values" instead of when it is failing as above "Resolving environment variables using global values"
 
Looks like recent changes with the code emitting the message commented out:

https://github.com/jenkinsci/urltrigger-plugin/blob/63b65488e3cf89d1c40840fe881d5b2b59233ed7/src/main/java/org/jenkinsci/plugins/urltrigger/URLTrigger.java#L229
 
As a workaround, we downgraded to 0.43 for now.

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo

john.lengeling@gmail.com (JIRA)

unread,
Jan 29, 2020, 6:12:03 PM1/29/20
to jenkinsc...@googlegroups.com
John Lengeling updated an issue
Change By: John Lengeling
We just upgraded from Jenkins 2.176.3 -> 2.204.1 and also updated to latest plugin versions.

We have a freestyle job that quit working after the upgrade that uses the urltrigger plugin.  The freestyle job has a simple string parameter and its value should be injected into the job as an environment variable.

Running urltrigger 0.47, the string parameter is not getting injected when the urltrigger fires the job.  This was working using urltrigger 0.43.    We downgraded to 0.43 and this job started working again.

The URLTrigger log from 0.47 when failing:

 

{{
Polling started on Jan 29, 2020 10:43:04 AM }}
{{ Polling for the job testfoo }}
{{ Looking nodes where the poll can be run. }}
{{

Looking for a candidate node to run the poll. }}
{{

Trying to find an eligible node with the assigned project label coord. }}
{{ Polling remotely on jenkinsserver
}}
{{

*Resolving environment variables using global values* }}
{{ Using Basic Authentication with the user 'build' }}
{{

Invoking the url: }}{{ [https://jenkinsserver.foo.com/job/test/job/test/job/testing/lastSuccessfulBuild/buildNumber/ ]
| [ https://gen4cc-os.virtd.deere.com/job/gen4cc-os/job/gen4os/job/release-20-1/lastSuccessfulBuild/buildNumber/] }}{{}}{{
Inspecting the content The content of the URL has changed. }}
{{ The content has changed. }}
{{ Polling complete. }}
{{ Took 0.61 sec. }}
{{ Changes found. }}
{{

Scheduling a build. }}

 

When running with the working 0.43 plugin, the urltrigger log shows slightly different behavior.  It logs "Resolving environment variables using last build values" instead of when it is failing as above "Resolving environment variables using global values"
 
Looks like recent changes with the code emitting the message commented out:

[https://github.com/jenkinsci/urltrigger-plugin/blob/63b65488e3cf89d1c40840fe881d5b2b59233ed7/src/main/java/org/jenkinsci/plugins/urltrigger/URLTrigger.java#L229]
 
As a workaround, we downgraded to 0.43 for now.

john.lengeling@gmail.com (JIRA)

unread,
Jan 29, 2020, 6:16:03 PM1/29/20
to jenkinsc...@googlegroups.com
John Lengeling updated an issue
We just upgraded from Jenkins 2.176.3 -> 2.204.1 and also updated to latest plugin versions.

We have a freestyle job that quit working after the upgrade that uses the urltrigger plugin.  The freestyle job has a simple string parameter and its value should be injected into the job as an environment variable.

Running urltrigger 0.47, the string parameter is not getting injected when the urltrigger fires the job.  This was working using urltrigger 0.43.    We downgraded to 0.43 and this job started working again.

The URLTrigger log from 0.47 when failing:

  {noformat}
Polling started on Jan 29, 2020 10:43:04 AM
Polling for the job testfoo
Looking nodes where the poll can be run.
Looking for a candidate node to run the poll.
Trying to find an eligible node with the assigned project label coord.
Polling remotely on jenkinsserver
*Resolving environment variables using global values*
Using Basic Authentication with the user 'build'
Invoking the url: [https://jenkinsserver.foo.com/job/test/job/test/job/testing/lastSuccessfulBuild/buildNumber/]
[https://gen4cc-os.virtd.deere.com/job/gen4cc-os/job/gen4os/job/release-20-1/lastSuccessfulBuild/buildNumber/]
Inspecting the content The content of the URL has changed.
The content has changed.
Polling complete.
Took 0.61 sec.
Changes found.
Scheduling a build.
{noformat}
 

When running with the working 0.43 plugin, the urltrigger log shows slightly different behavior.  It logs "Resolving environment variables using last build values" instead of when it is failing as above "Resolving environment variables using global values"
 
Looks like recent changes with the code emitting the message commented out:

[https://github.com/jenkinsci/urltrigger-plugin/blob/63b65488e3cf89d1c40840fe881d5b2b59233ed7/src/main/java/org/jenkinsci/plugins/urltrigger/URLTrigger.java#L229]
 
As a workaround, we downgraded to 0.43 for now.

john.lengeling@gmail.com (JIRA)

unread,
Jan 31, 2020, 9:45:03 AM1/31/20
to jenkinsc...@googlegroups.com
John Lengeling updated an issue
We just upgraded from Jenkins 2.176.3 -> 2.204.1 and also updated to latest plugin versions.

We have a freestyle job that quit working after the upgrade that uses the urltrigger plugin.  The freestyle job has a simple string parameter and its value should be injected into the job as an environment variable.

Running urltrigger 0.47, the string parameter is not getting injected when the urltrigger fires the job.  This was working using urltrigger 0. 43 45 .    We downgraded to 0. 43 45 and this job started working again.


The URLTrigger log from 0.47 when failing:

 
{noformat}
Polling started on Jan 29, 2020 10:43:04 AM
Polling for the job testfoo
Looking nodes where the poll can be run.
Looking for a candidate node to run the poll.
Trying to find an eligible node with the assigned project label coord.
Polling remotely on jenkinsserver
*Resolving environment variables using global values*
Using Basic Authentication with the user 'build'
Invoking the url: [https://jenkinsserver.foo.com/job/test/job/test/job/testing/lastSuccessfulBuild/buildNumber/]
[https://gen4cc-os.virtd.deere.com/job/gen4cc-os/job/gen4os/job/release-20-1/lastSuccessfulBuild/buildNumber/]
Inspecting the content The content of the URL has changed.
The content has changed.
Polling complete.
Took 0.61 sec.
Changes found.
Scheduling a build.
{noformat}
 

When running with the working 0. 43 45 plugin, the urltrigger log shows slightly different behavior.  It logs "Resolving environment variables using last build values" instead of when it is failing as above "Resolving environment variables using global values"
As a workaround, we downgraded to 0. 43 45 for now.
Reply all
Reply to author
Forward
0 new messages