catchError and build propagate: true

2023-12-04 Thread Ya Heng Liu
Hi, I have such jenkins file, looks like the catchError behavior isn’t 
expected when set build propagate: true

 catchError(stageResult: 'UNSTABLE',  buildResult: null) {
   def buildResult = build propagate: true, job: 'test', parameters: [xxx]
   def buildNumber = buildResult.getNumber()
   env.testBuildNumber = buildNumber
 } 
when the "test" job is FAILTURE, the currentBuild.currentResult still is 
FAILTURE, and I can't get env.testBuildNumber too.

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/d54cd459-4509-4da6-954e-881006f9b5c6n%40googlegroups.com.


Re: Unable to Save Project

2023-12-04 Thread eric....@gmail.com
OK, well I have 1.4.2.  That said, I have 82 updates so I'll do as you say 
and update everything.  Hopefully this covers it.  Thanks Mark!!!

On Monday, December 4, 2023 at 2:44:29 PM UTC-7 Mark Waite wrote:

> On Monday, December 4, 2023 at 2:29:11 PM UTC-7 Eric wrote:
>
> I've started going through the plugins that have issues and pretty quickly 
> ran into the "conditional buildstep" plugin.  I can't disable this plugin 
> because I use it.  Do you have any suggestions?
>
> Thanks,
> Eric
>
>
> The conditional build step plugin was fixed in 1.4.0 
>  
> for configuration form modernization.  The most recent release is 1.4.3.
>
> If you haven't updated to latest releases of the plugins, that's certainly 
> the first step.
>
> Mark Waite
>

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/8b8c479e-bae7-43a4-86d1-10798d646ca5n%40googlegroups.com.


Re: Unable to Save Project

2023-12-04 Thread Mark Waite


On Monday, December 4, 2023 at 2:29:11 PM UTC-7 Eric wrote:

I've started going through the plugins that have issues and pretty quickly 
ran into the "conditional buildstep" plugin.  I can't disable this plugin 
because I use it.  Do you have any suggestions?

Thanks,
Eric


The conditional build step plugin was fixed in 1.4.0 
 
for configuration form modernization.  The most recent release is 1.4.3.

If you haven't updated to latest releases of the plugins, that's certainly 
the first step.

Mark Waite

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/c943b414-c6db-4031-9681-6e232ac1c71dn%40googlegroups.com.


Re: Unable to Save Project

2023-12-04 Thread eric....@gmail.com
I've started going through the plugins that have issues and pretty quickly 
ran into the "conditional buildstep" plugin.  I can't disable this plugin 
because I use it.  Do you have any suggestions?

Thanks,
Eric

On Monday, December 4, 2023 at 1:50:41 PM UTC-7 Mark Waite wrote:

> On Monday, December 4, 2023 at 1:40:26 PM UTC-7 Eric wrote:
>
> Hi All!  I have a project that I am unable to make changes to.  I can't 
> even make a comment in a field then save it down.  I can't even save it 
> down without a comment.  It throws up a screen saying "Oops!  A problem 
> occurred while processing a request."  Not sure where the physical log is, 
> it's not in /var/log/jenkins/jenkins.log.  So I go to Manage Jenkins/System 
> Log/All Jenkins Logs.  It has a big stack trace for the attempted save, 
> I'll paste it below.  Any idea what my issue is?  Thanks!
>
> Error while serving http://ipAddress:8080/job/ProjectName/configSubmit 
> java.lang.IllegalArgumentException: The frontend sent an unexpected list of 
> classes 
>
>
> That almost always means that one or more of the plugins that are active 
> on your system has not been updated for the configuration form 
> modernization that happened in Jenkins 2.277.1.
>
> You'll need to find and remove the plugins that have not been updated.  A 
> detailed guide is available at 
> https://community.jenkins.io/t/migrating-jenkins/894/5 
>
> Mark Waite 
>

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/2ae14c25-cace-4bf1-a097-206a320e6a4an%40googlegroups.com.


Re: Unable to Save Project

2023-12-04 Thread Mark Waite


On Monday, December 4, 2023 at 1:40:26 PM UTC-7 Eric wrote:

Hi All!  I have a project that I am unable to make changes to.  I can't 
even make a comment in a field then save it down.  I can't even save it 
down without a comment.  It throws up a screen saying "Oops!  A problem 
occurred while processing a request."  Not sure where the physical log is, 
it's not in /var/log/jenkins/jenkins.log.  So I go to Manage Jenkins/System 
Log/All Jenkins Logs.  It has a big stack trace for the attempted save, 
I'll paste it below.  Any idea what my issue is?  Thanks!

Error while serving http://ipAddress:8080/job/ProjectName/configSubmit 
java.lang.IllegalArgumentException: The frontend sent an unexpected list of 
classes 


That almost always means that one or more of the plugins that are active on 
your system has not been updated for the configuration form modernization 
that happened in Jenkins 2.277.1.

You'll need to find and remove the plugins that have not been updated.  A 
detailed guide is available 
at https://community.jenkins.io/t/migrating-jenkins/894/5 

Mark Waite 

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/e1d0bbf2-663d-4f5a-9cb9-592cd11e1e90n%40googlegroups.com.


Re: Unable to Save Project

2023-12-04 Thread eric....@gmail.com
Note that the project works fine to perform builds...

On Monday, December 4, 2023 at 1:40:26 PM UTC-7 eric@gmail.com wrote:

> Hi All!  I have a project that I am unable to make changes to.  I can't 
> even make a comment in a field then save it down.  I can't even save it 
> down without a comment.  It throws up a screen saying "Oops!  A problem 
> occurred while processing a request."  Not sure where the physical log is, 
> it's not in /var/log/jenkins/jenkins.log.  So I go to Manage Jenkins/System 
> Log/All Jenkins Logs.  It has a big stack trace for the attempted save, 
> I'll paste it below.  Any idea what my issue is?  Thanks!
>
> Error while serving http://ipAddress:8080/job/ProjectName/configSubmit 
> java.lang.IllegalArgumentException: The frontend sent an unexpected list of 
> classes 
> (["jenkins.mvn.DefaultSettingsProvider","jenkins.mvn.FilePathSettingsProvider"])
>  
> rather than an expected single class. See 
> https://www.jenkins.io/doc/developer/views/table-to-div-migration/ for 
> more information. at 
> org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:750) 
> Caused: java.lang.IllegalArgumentException: Failed to instantiate class 
> jenkins.mvn.SettingsProvider from 
> {"stapler-class":["jenkins.mvn.DefaultSettingsProvider","jenkins.mvn.FilePathSettingsProvider"],"$class":["jenkins.mvn.DefaultSettingsProvider","jenkins.mvn.FilePathSettingsProvider"]}
>  
> at 
> org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:771) 
> at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:551) at 
> org.kohsuke.stapler.RequestImpl.instantiate(RequestImpl.java:877) Caused: 
> java.lang.IllegalArgumentException: Failed to convert the settings 
> parameter of the constructor public 
> hudson.tasks.Maven(java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,boolean,jenkins.mvn.SettingsProvider,jenkins.mvn.GlobalSettingsProvider,boolean)
>  
> at org.kohsuke.stapler.RequestImpl.instantiate(RequestImpl.java:879) at 
> org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:768) 
> Caused: java.lang.IllegalArgumentException: Failed to instantiate class 
> hudson.tasks.Maven from 
> {"stapler-class":"hudson.tasks.Maven","$class":"hudson.tasks.Maven","name":"Maven-3.0","targets":"-e
>  
> clean install 
> -DskipTests=true","pom":"","properties":"","jvmOptions":"","injectBuildVariables":true,"usePrivateRepository":false,"":["0","0"],"settings":{"stapler-class":["jenkins.mvn.DefaultSettingsProvider","jenkins.mvn.FilePathSettingsProvider"],"$class":["jenkins.mvn.DefaultSettingsProvider","jenkins.mvn.FilePathSettingsProvider"]},"globalSettings":{"stapler-class":["jenkins.mvn.DefaultGlobalSettingsProvider","jenkins.mvn.FilePathGlobalSettingsProvider"],"$class":["jenkins.mvn.DefaultGlobalSettingsProvider","jenkins.mvn.FilePathGlobalSettingsProvider"]}}
>  
> at 
> org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:771) 
> at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:551) at 
> org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:546) at 
> hudson.tasks.Maven$DescriptorImpl.newInstance(Maven.java:489) at 
> hudson.tasks.Maven$DescriptorImpl.newInstance(Maven.java:428) at 
> hudson.model.Descriptor.newInstancesFromHeteroList(Descriptor.java:1095) at 
> hudson.model.Descriptor.newInstancesFromHeteroList(Descriptor.java:1057) at 
> hudson.util.DescribableList.rebuildHetero(DescribableList.java:214) at 
> hudson.model.Project.submit(Project.java:233) at 
> hudson.model.Job.doConfigSubmit(Job.java:1345) at 
> hudson.model.AbstractProject.doConfigSubmit(AbstractProject.java:775) at 
> java.base/java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:710)
>  
> at org.kohsuke.stapler.Function$MethodFunction.invoke(Function.java:397) 
> Caused: java.lang.reflect.InvocationTargetException at 
> org.kohsuke.stapler.Function$MethodFunction.invoke(Function.java:401) at 
> org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:409) at 
> org.kohsuke.stapler.Function.bindAndInvoke(Function.java:207) at 
> org.kohsuke.stapler.SelectionInterceptedFunction$Adapter.invoke(SelectionInterceptedFunction.java:36)
>  
> at 
> org.kohsuke.stapler.verb.HttpVerbInterceptor.invoke(HttpVerbInterceptor.java:48)
>  
> at 
> org.kohsuke.stapler.SelectionInterceptedFunction.bindAndInvoke(SelectionInterceptedFunction.java:26)
>  
> at 
> org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:140) 
> at org.kohsuke.stapler.MetaClass$11.doDispatch(MetaClass.java:558) at 
> org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:59) 
> at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:770) at 
> org.kohsuke.stapler.Stapler.invoke(Stapler.java:900) at 
> org.kohsuke.stapler.MetaClass$4.doDispatch(MetaClass.java:289) at 
> org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:59) 
> at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:7

Unable to Save Project

2023-12-04 Thread eric....@gmail.com
Hi All!  I have a project that I am unable to make changes to.  I can't 
even make a comment in a field then save it down.  I can't even save it 
down without a comment.  It throws up a screen saying "Oops!  A problem 
occurred while processing a request."  Not sure where the physical log is, 
it's not in /var/log/jenkins/jenkins.log.  So I go to Manage Jenkins/System 
Log/All Jenkins Logs.  It has a big stack trace for the attempted save, 
I'll paste it below.  Any idea what my issue is?  Thanks!

Error while serving http://ipAddress:8080/job/ProjectName/configSubmit 
java.lang.IllegalArgumentException: The frontend sent an unexpected list of 
classes 
(["jenkins.mvn.DefaultSettingsProvider","jenkins.mvn.FilePathSettingsProvider"])
 
rather than an expected single class. See 
https://www.jenkins.io/doc/developer/views/table-to-div-migration/ for more 
information. at 
org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:750) 
Caused: java.lang.IllegalArgumentException: Failed to instantiate class 
jenkins.mvn.SettingsProvider from 
{"stapler-class":["jenkins.mvn.DefaultSettingsProvider","jenkins.mvn.FilePathSettingsProvider"],"$class":["jenkins.mvn.DefaultSettingsProvider","jenkins.mvn.FilePathSettingsProvider"]}
 
at 
org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:771) 
at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:551) at 
org.kohsuke.stapler.RequestImpl.instantiate(RequestImpl.java:877) Caused: 
java.lang.IllegalArgumentException: Failed to convert the settings 
parameter of the constructor public 
hudson.tasks.Maven(java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,boolean,jenkins.mvn.SettingsProvider,jenkins.mvn.GlobalSettingsProvider,boolean)
 
at org.kohsuke.stapler.RequestImpl.instantiate(RequestImpl.java:879) at 
org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:768) 
Caused: java.lang.IllegalArgumentException: Failed to instantiate class 
hudson.tasks.Maven from 
{"stapler-class":"hudson.tasks.Maven","$class":"hudson.tasks.Maven","name":"Maven-3.0","targets":"-e
 
clean install 
-DskipTests=true","pom":"","properties":"","jvmOptions":"","injectBuildVariables":true,"usePrivateRepository":false,"":["0","0"],"settings":{"stapler-class":["jenkins.mvn.DefaultSettingsProvider","jenkins.mvn.FilePathSettingsProvider"],"$class":["jenkins.mvn.DefaultSettingsProvider","jenkins.mvn.FilePathSettingsProvider"]},"globalSettings":{"stapler-class":["jenkins.mvn.DefaultGlobalSettingsProvider","jenkins.mvn.FilePathGlobalSettingsProvider"],"$class":["jenkins.mvn.DefaultGlobalSettingsProvider","jenkins.mvn.FilePathGlobalSettingsProvider"]}}
 
at 
org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:771) 
at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:551) at 
org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:546) at 
hudson.tasks.Maven$DescriptorImpl.newInstance(Maven.java:489) at 
hudson.tasks.Maven$DescriptorImpl.newInstance(Maven.java:428) at 
hudson.model.Descriptor.newInstancesFromHeteroList(Descriptor.java:1095) at 
hudson.model.Descriptor.newInstancesFromHeteroList(Descriptor.java:1057) at 
hudson.util.DescribableList.rebuildHetero(DescribableList.java:214) at 
hudson.model.Project.submit(Project.java:233) at 
hudson.model.Job.doConfigSubmit(Job.java:1345) at 
hudson.model.AbstractProject.doConfigSubmit(AbstractProject.java:775) at 
java.base/java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:710)
 
at org.kohsuke.stapler.Function$MethodFunction.invoke(Function.java:397) 
Caused: java.lang.reflect.InvocationTargetException at 
org.kohsuke.stapler.Function$MethodFunction.invoke(Function.java:401) at 
org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:409) at 
org.kohsuke.stapler.Function.bindAndInvoke(Function.java:207) at 
org.kohsuke.stapler.SelectionInterceptedFunction$Adapter.invoke(SelectionInterceptedFunction.java:36)
 
at 
org.kohsuke.stapler.verb.HttpVerbInterceptor.invoke(HttpVerbInterceptor.java:48)
 
at 
org.kohsuke.stapler.SelectionInterceptedFunction.bindAndInvoke(SelectionInterceptedFunction.java:26)
 
at 
org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:140) 
at org.kohsuke.stapler.MetaClass$11.doDispatch(MetaClass.java:558) at 
org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:59) 
at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:770) at 
org.kohsuke.stapler.Stapler.invoke(Stapler.java:900) at 
org.kohsuke.stapler.MetaClass$4.doDispatch(MetaClass.java:289) at 
org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:59) 
at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:770) at 
org.kohsuke.stapler.Stapler.invoke(Stapler.java:900) at 
org.kohsuke.stapler.Stapler.invoke(Stapler.java:698) at 
org.kohsuke.stapler.Stapler.service(Stapler.java:248) at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:590) at 
org.eclipse.jetty.servlet.Servle