step in build suddenly injecting new parameter flags, resulting in build failure

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

step in build suddenly injecting new parameter flags, resulting in build failure

Glenn Caccia
I have a Jenkins project that runs a maven build.  The maven build includes a step where it uses axistools, maven goal wsdl2java, to build classes from a soap service endpoint. This has been working fine for the past few years. The last good build was from 1/31. On 2/4 I tried to build this same project and suddenly that step was failing. I noticed that the step is now including new parameters that were not present before. In the last good build, I see a step like this.. [DEBUG] argslist: [-o, /var/lib/jenkins/jobs/xxx/workspace/target/generated-sources/java, -w, -T, 1.1, file:/var/lib/jenkins/jobs/xxx/workspace/target/axistools/wsdl2java/urlDownloads/http---xxx.xxx.com-8080-xxx-wsdl.wsdl]
But now, with the builds that are failing, I see this... [DEBUG] argslist: [-o, /var/lib/jenkins/jobs/xxx/workspace/target/generated-sources/java, -w, -T, 1.1, -U, , -P, , file:/var/lib/jenkins/jobs/xxx/workspace/target/axistools/wsdl2java/urlDownloads/http---xxx.xxx.com-8080-xxx-wsdl.wsdl] So something is injecting -U, , -P, ,. I looked at what plugins had been recently updated and found the following...
config-file-provider
github-branch-source
script-security
workflow-cps
subversion
The script-security plugin seemed like a likely suspect and I downgraded it and restarted Jenkins, but still get same issue. Config-file-provider does not provide a downgrade option. Any thoughts?

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/1b0e6acc-359a-46f5-a927-ff5678d0cb9a%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: step in build suddenly injecting new parameter flags, resulting in build failure

Glenn Caccia
I also uninstalled or downgraded all the others in that list of plugins except for workflow-cps (no option to do either for that) and restarted and still no good.

On Thursday, February 13, 2020 at 3:47:12 PM UTC-8, Glenn Caccia wrote:
I have a Jenkins project that runs a maven build.  The maven build includes a step where it uses axistools, maven goal wsdl2java, to build classes from a soap service endpoint. This has been working fine for the past few years. The last good build was from 1/31. On 2/4 I tried to build this same project and suddenly that step was failing. I noticed that the step is now including new parameters that were not present before. In the last good build, I see a step like this.. [DEBUG] argslist: [-o, /var/lib/jenkins/jobs/xxx/workspace/target/generated-sources/java, -w, -T, 1.1, file:/var/lib/jenkins/jobs/xxx/workspace/target/axistools/wsdl2java/urlDownloads/http---xxx.xxx.com-8080-xxx-wsdl.wsdl]
But now, with the builds that are failing, I see this... [DEBUG] argslist: [-o, /var/lib/jenkins/jobs/xxx/workspace/target/generated-sources/java, -w, -T, 1.1, -U, , -P, , file:/var/lib/jenkins/jobs/xxx/workspace/target/axistools/wsdl2java/urlDownloads/http---xxx.xxx.com-8080-xxx-wsdl.wsdl] So something is injecting -U, , -P, ,. I looked at what plugins had been recently updated and found the following...
config-file-provider
github-branch-source
script-security
workflow-cps
subversion
The script-security plugin seemed like a likely suspect and I downgraded it and restarted Jenkins, but still get same issue. Config-file-provider does not provide a downgrade option. Any thoughts?

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/30f369cf-2a77-455c-ab26-375ff9725db1%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: step in build suddenly injecting new parameter flags, resulting in build failure

James Nord-2
Could it be that you have not locked the versions of maven plugins in your maven pom.xml?

the axis-maven-plugin or whatever you are using to generate the wsdl that's failing could have been updated and you may be getting a newer version than you used to in the CO environment.
https://maven.apache.org/enforcer/enforcer-rules/requirePluginVersions.html

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/74c6bfcc-933e-4e74-b086-5d7657b88022%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: step in build suddenly injecting new parameter flags, resulting in build failure

Glenn Caccia
Unfortunately, no.  The POM and project are in source control.  No changes.  The maven plugin axistools is a very old plugin that hasn't had a new version since 10 years ago.  Plus, if I build the project directly through maven locally, it builds fine without the additional parameters that I see when running it through Jenkins.

On Saturday, February 15, 2020 at 2:42:07 AM UTC-8, James Nord wrote:
Could it be that you have not locked the versions of maven plugins in your maven pom.xml?

the axis-maven-plugin or whatever you are using to generate the wsdl that's failing could have been updated and you may be getting a newer version than you used to in the CO environment.
<a onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fmaven.apache.org%2Fenforcer%2Fenforcer-rules%2FrequirePluginVersions.html\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHdG2sGDrl3m6XuIf-OK17hgHOlTw&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fmaven.apache.org%2Fenforcer%2Fenforcer-rules%2FrequirePluginVersions.html\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHdG2sGDrl3m6XuIf-OK17hgHOlTw&#39;;return true;" href="https://maven.apache.org/enforcer/enforcer-rules/requirePluginVersions.html" target="_blank" rel="nofollow">https://maven.apache.org/enforcer/enforcer-rules/requirePluginVersions.html

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/723a3bab-518c-4ab7-bd30-0405d725f4f1%40googlegroups.com.