Re: Issues with pipeline groovy plugin -version 2.5.4

2019-04-17 Thread Devin Nusbaum
I guess you mean Pipeline: Groovy 2.54? The current version is 2.66. My guess is that your version of Jenkins is old, and you updated Pipeline: Groovy to a version that requires a newer version of Jenkins (although you should have seen a warning if this happened) and so workflow-cps or some depe

Re: Regression in `dir` step when wrapping other steps?

2019-06-05 Thread Devin Nusbaum
I’m not aware of any intentional changes like this. What versions of Pipeline Groovy and Pipeline Nodes and Processes are you currently running? > On Jun 5, 2019, at 06:51, Damien Coraboeuf wrote: > > Hi, > > We're using Jenkins LTS 2.164.3 and Pipeline Basic Steps 2.16, and the > behaviour o

Re: Regression in `dir` step when wrapping other steps?

2019-06-05 Thread Devin Nusbaum
Also, can you post the exact error message you are getting? > On Jun 5, 2019, at 09:59, Devin Nusbaum wrote: > > I’m not aware of any intentional changes like this. What versions of Pipeline > Groovy and Pipeline Nodes and Processes are you currently running? > >> On

Re: Pipeline durability in GitHub Organization Project

2019-07-12 Thread Devin Nusbaum
You might be running into https://issues.jenkins-ci.org/browse/JENKINS-48556 , where Declarative is intermittently unable to recognize valid option types. Some things that could cause that issue were fixed in Pipeline: Declarative 1.3.3, but I

Re: Pipeline: Expected call wound up catching different method

2019-07-26 Thread Devin Nusbaum
Your Pipeline should be working exactly as it did before, now you are just getting a log message (unless you are using jenkinsfile-runner, in which case an exception is thrown instead, see JENKINS-58407) warning that it has probably never worked correctly , although depending on exactly what the

Re: Pipeline: Expected call wound up catching different method

2019-07-30 Thread Devin Nusbaum
Sverre mentioned that checkUpstream and checkDownstream call “build” and “println”. Since “build” can be an async step if you pass "wait: true”, and I wasn’t sure exactly how they were using it, I recommended removing @NonCPS from those methods. If checkUpstream and checkDownstream only use “bu

Re: Memory issues with Jenkins

2019-08-14 Thread Devin Nusbaum
I have not read the whole thread in detail, but the “Unable to create new native thread” OutOfMemoryErrors from your original thread where one of the stack traces involves org.jenkinsci.plugins.ssegateway.sse.EventDispatcher.scheduleRetryQueueProcessing looks like it could be related to https:

Re: Latest GitHub Branch Source not scanning with credentials?

2019-08-19 Thread Devin Nusbaum
If I understand correctly, the problem is that in the non-working case, branch indexing ends up using anonymous credentials instead of the ones you specified (and thus timing out due to rate limits), rather than failing with an explicit error message? I don’t think it should matter, but just in

Re: durabletask v1.33 - process apparently never started in /var/lib/jenkins/workspace/local-cloud-regression-test@tmp/durable-fa896164

2019-12-02 Thread Devin Nusbaum
Hi Jon, sorry I didn't see your email earlier. Based on the info provided, it looks like you are running the new binary wrapper, which is disabled by default. I think there was some miscommunication on the ticket, but I would disable this by removing `-Dorg.jenkinsci.plugins.durabletask.BourneS

Re: Jenkins Upgrade

2020-03-11 Thread Devin Nusbaum
Do you have the full thread dump from a tool like jstack? If so, please attach it to this thread, or paste it somewhere like gist.github.com or pastebin.com and then paste a link to it here. > On Mar 11, 2020, at 14:11, M.Madhusudana Reddy wrote: > > Hi Team, > > We

Re: Jenkins Upgrade

2020-03-30 Thread Devin Nusbaum
mailto:mark.earl.wa...@gmail.com>> wrote: > FYI IBM openJ9 is not supported by the Jenkins project. Initial testing has > found no showstoppers, but IBM OpenJ9 introduces a very significant > difference between what you're running and what is used and tested by people >

Re: Disable concurrency on matrix

2020-04-13 Thread Devin Nusbaum
I don’t think that there is currently a built-in way to configure the matrix directive in a Declarative Pipeline so that its cells do not run in parallel. You might be able to get the behavior you want using Lockable Resources plugin by acquiring

Re: Unable to get a variable value from last success build

2020-04-13 Thread Devin Nusbaum
The problem is that you are using Groovy method call syntax, but the name of the method is `getPreviousBuild`, so you should use `currentBuild.getPreviousBuild()`. You could also use `currentBuild.previousBuild` with no parentheses, since Groovy has syntactic sugar for accessing getter methods

Re: java.io.NotSerializableException: java.lang.UNIXProcess

2020-06-09 Thread Devin Nusbaum
The method named `exists` from the first email is fine and does not have any problems. Adding @NonCPS to it is incorrect as explained here and causes the “expected to call Script4.exists but wound

Re: Run same Jenkins job on different repositories in parallel using Declarative Pipeline

2020-06-11 Thread Devin Nusbaum
The problem in your original code is that the stages you create (more specifically the closures for the stages) reference the mutable repo_name variable directly, and so after you create all the stages in the loop, repo_name’s value is the final repo in repo_names, so when the stages are execut

Re: Trying to use Global Shared Groovy in Pipelines - ERROR: Could not find any definition of libraries [mylib]

2020-08-17 Thread Devin Nusbaum
This sounds like JENKINS-60245 . There is a proposed fix, but I have not had time to review it. Is this something you had working previously, and it was broken by an update or something, or are you just trying it for the first time? You migh

Re: Env Inject failure "Couldn't find the right download for WINDOWS and i386 combination"

2017-12-01 Thread Devin Nusbaum
I suspect the error is being thrown by the JDK installer tool and is unrelated to EnvInject. Do you have a full stack trace, and are you using a JDK tool in your build configured with the “Install from java.sun.com ” method to install JDK 9? if so, it looks like Oracle has

Re: agent.jar not allowed due to security reasons

2018-02-14 Thread Devin Nusbaum
If you are running Jenkins 2.77 or older, then you need to use “slave.jar" instead of “agent.jar". If you are running 2.78 or newer then I’m not sure what the problem could be. > On Feb 14, 2018, at 11:30, Richard Quintin wrote: > > I'm sure the solution to my problem is simple, but after much

Re: Java exception when copying artifacts

2018-04-19 Thread Devin Nusbaum
It looks like the failure comes when changing permissions to match the original file after the file has been copied. What are the permissions on /net/rsdprojects/SeraDL/Zodiac/Linux/HtmlDoc/Algorithms/html/Algorithms.html currently? > On Apr 19, 2018, at 11:40, David Aldrich wrote: > > > Doe

Re: Java exception when copying artifacts

2018-04-19 Thread Devin Nusbaum
upgrading to 2.107.2, and had you seen the error on any previous versions? > On Apr 19, 2018, at 12:03, David Aldrich wrote: > > -rwxrwxrwx. 1 root 101 1077 Apr 19 16:12 > > From: jenkinsci-users@googlegroups.com > [mailto:jenkinsci-users@googlegroups.com] On Behalf Of Devin

Re: Attempt to (de-)serialize anonymous class hudson.maven.reporters.MavenArtifactArchiver and hudson.maven.reporters.MavenFingerprinter

2018-08-14 Thread Devin Nusbaum
Hi Gary, As the linked page explains, anonymous classes can cause various problems when serializing objects in Jenkins, so these messages are printed as a warning so we can identify potential issues. I think these are the anonymous classes in question: MavenArtifactArchiver$2

Re: Attempt to (de-)serialize anonymous class hudson.maven.reporters.MavenArtifactArchiver and hudson.maven.reporters.MavenFingerprinter

2018-08-14 Thread Devin Nusbaum
A PR is a Pull Request on GitHub . Here is the offending plugin’s source code: https://github.com/jenkinsci/maven-plugin . You could instead open an issue on Jira if you are not comfortable with Ja

Re: Pipeline when condition issue

2018-08-29 Thread Devin Nusbaum
I think the problem is with your regex match. Based on http://mrhaki.blogspot.com/2009/09/groovy-goodness-matchers-for-regular.html , it looks like the operator to use is `==~`, but you have `== ~` with a space. The s

Re: Agents with multiple labels

2018-09-11 Thread Devin Nusbaum
You should be able to use label expressions. As I understand your question, you want an agent that has both the “centos6" and “x86_64" labels, so the label expression to use would be “centos64 && x86_64”, which I think should work fine with declarative pipeline, although I haven’t tested it.

Re: Agent on Tandem/NonStop: sh pipeline command yields nohup error, while plain shell script build step works

2018-09-25 Thread Devin Nusbaum
The `sh` step in a Jenkins Pipeline uses `nohup` to launch the script on the agent in such a way that Jenkins can restart while the `sh` step is running without interrupting the script’s execution. Is the `nohup` command available on NonStop/Tandem machines? If so, is it reachable from the agen

Re: 'Messages' class in getter methods of Descriptors - where are they defined

2018-11-15 Thread Devin Nusbaum
These classes are auto-generated from Messages.properties files in the plugins' resource directories. If you run `mvn clean compile` from the command line, everything should work correctly, but if you are using an IDE you may need to manually mark target/generated-sources/localizer as generated

Re: Attempt to (de-)serialize anonymous class hudson.maven.reporters.MavenArtifactArchiver and hudson.maven.reporters.MavenFingerprinter

2018-11-28 Thread Devin Nusbaum
As I mentioned previously in the thread: > As the linked page > explains, > anonymous classes can cause various problems when serializing objects in > Jenkins, so these messages are printed as a warning so we can identify > pote

Re: Kubernetes-based Jenkins worker pipeline fails because it hasn't started yet error

2018-12-06 Thread Devin Nusbaum
This stack trace looks a lot like the one posted in JENKINS-51290 , which was marked as fixed in Pipeline Multibranch 2.19 based on the changelog for that plugin. Does that issue line up with what you are seeing, and are you using Pipeline Multibranch 2.18 or older? If so, I would try updating,

Re: java.lang.NoClassDefFoundError: Could not initialize class sun.util.calendar.ZoneInfoFile

2018-12-11 Thread Devin Nusbaum
What version of Java are your CentOS7 agents using? Those kind of errors can occur if the version of Java on the master and agents do not match. You must use Java 8 for Jenkins 2.60 and newer (we are still working on supporting newer Java versions), so if your CentOS7 agent is running Java 9+ it

Re: Unclear how safe workflow-support 3.0 is for upgrades

2019-01-04 Thread Devin Nusbaum
Good question! > … I believe this means that only runtime > persistence for running Pipelines has changed, and none of the previously > existing on-disk state for Pipeline Runs will change. Would that be correct? Yes, the format of build data for completed Pipelines is unchanged, so you’ll still

Re: Use AdoptOpenJDK as JDK Tool download source

2019-02-22 Thread Devin Nusbaum
There is some relevant discussion in https://issues.jenkins-ci.org/browse/JENKINS-54305 that may be interesting to you. > On Feb 22, 2019, at 09:20, Sverre Moe wrote: > > Now that Oracle has shut down any commercial use of their JDK, Jenkin

Re: Can we install SonarQube and Jenkins on same machine(VM) ?

2017-09-27 Thread Devin Nusbaum
Hi Prudhvi, I ran both Jenkins and Sonarqube on the same Windows server in the past successfully, but I agree with Richard that you need to make sure you have enough resources to run both of them well. Thanks, Devin > On Sep 27, 2017, at 4:02 AM, Prudhvi Raju wrote: > > Hi, > > I have the

Re: Jenkins CLI with http protocol does not respond in 2.81

2017-10-04 Thread Devin Nusbaum
Do you see any errors in the logs on the Jenkins server, and is the jenkins-cli.jar you are using from your 2.81 instance? You can download a fresh jar from http://YOUR_HOST/jenkins/jnlpJars/jenkins-cli.jar. (If you aren’t using the /jenkins context path just http://YOUR_HOST/jnlpJars/jenkins-cl

Re: Groovy script the extra job name with path

2017-10-16 Thread Devin Nusbaum
I think the method you want is Item#getFullName. > On Oct 16, 2017, at 12:29 PM, Jeeva Chelladhurai wrote: > > Hello All, > > I have a small groovy script that can iterate thru the jobs and folders, and > print the details as listed shown below > > hudson.model.FreeStyleProject@3a0ddf4f[Proje

Re: CLI/scripted way to stop scheduling any new builds on a given node?

2017-10-26 Thread Devin Nusbaum
Make sure to follow https://wiki.jenkins.io/display/JENKINS/Running+Jenkins+behind+Nginx if Nginx is configured as a a reverse proxy. Notably proxy_http_version 1.1; and proxy_request_buffering off; are required for your v

Re: CLI/scripted way to stop scheduling any new builds on a given node?

2017-10-26 Thread Devin Nusbaum
s; > } > } > > > So either I'm blind, or the documentation is somehow wrong? > > And indeed, I can see "java.io.IOException: HTTP full-duplex channel timeout" > in jenkins log. > > This one indeed works: > > java -jar jenkins-cli.jar

Re: CLI/scripted way to stop scheduling any new builds on a given node?

2017-10-26 Thread Devin Nusbaum
t; # workaround for > https://issues.jenkins-ci.org/browse/JENKINS-45651 > <https://issues.jenkins-ci.org/browse/JENKINS-45651> > # not used for this installation > #add_header 'X-SSH-Endpoint' 'jenkins.my-domain:22' always; >

Re: hudson.Filepath issue

2021-03-25 Thread Devin Nusbaum
That kind of error usually means that something is wrong with your Pipeline, but if you are running an old version of Pipeline: Nodes and Processes plugin you might be running into https://issues.jenkins.io/browse/JENKINS-58900 , in which case the

Re: Issue in pipeline step of jenkinsfile

2021-04-16 Thread Devin Nusbaum
This is a classic issue that a lot of people run into in various programming languages. https://groovyconsole.appspot.com/script/5078409050849280 shows the same problem and one way to fix it (click "edit in console" and then you can exe

Re: thread safety of scripted pipeline parallel and usage of nested parallel

2021-11-01 Thread &#x27;Devin Nusbaum' via Jenkins Users
The Pipeline execution engine uses a "green thread" model internally - there is only ever one Java thread executing the Groovy DSL for a given Pipeline (step execution may use additional Java threads, but this should always be transparent to users). See the final paragraph under https://github.com/