StackOverflowException in Declarative with when { expression {} }

2018-01-15 Thread ST
I am seeing a StackOverflowException in org.jboss.marshalling.river.RiverMarshaller in a declarative Jenkins pipeline. The interesting thing is that it occurs *only* just after having restarted the Jenkins instance. After building it once or twice, the next build usually works fine. Also when waiti

Re: StackOverflowException in Declarative with when { expression {} }

2018-01-15 Thread ST
:624) at java.lang.Thread.run(Thread.java:748) On Mon, Jan 15, 2018 at 11:05 PM, ST wrote: > I am seeing a StackOverflowException in > org.jboss.marshalling.river.RiverMarshaller in a declarative Jenkins > pipeline. The > interesting thing is that it occurs *only* just

Re: StackOverflowException in Declarative with when { expression {} }

2018-01-22 Thread ST
|| grepExitStatus == 1 // grep exit status is 0 if a line is selected } } [...] } } } On Tue, Jan 16, 2018 at 12:55 AM, Daniel Beck wrote: > > > On 15. Jan 2018, at 23:05, ST wrote: > > > > Any input appreciated! > &g

Re: Fail 1 stage in jenkinsscript

2018-01-22 Thread ST
Regarding 1 and 2: I think you should model them based on whether they are dependent on each other: * Either the two test sets are independently of each other, meaning that even if "Test Set 1" fails then that does not affect in any way the stability/outcome of the "Test Set 2" -> If so, run them

Declarative multibranch pipeline: StackOverflowException after trying to specify agent label

2017-06-10 Thread ST
I'm getting StackOverflowException when trying to open the folder of my multibranch pipeline job, see below for first part of the stacktrace. The pipeline is defined in declarative job dsl and has worked fine so far. This SOE occurred now after I've changed in my pipeline from pipeline { agent a

Re: Declarative multibranch pipeline: StackOverflowException after trying to specify agent label

2017-06-11 Thread ST
Yes I upgraded some plugins and restarted jenkins a few hours before this happened. But after that several builds of this job went fine, so I'm thinking it must be something else that has triggered the SOE. Changing the agent declaration in the pipeline script I did using the "Replay" function, wh

Re: Declarative multibranch pipeline: StackOverflowException after trying to specify agent label

2017-06-11 Thread ST
version didnt help. I've created https://issues.jenkins-ci.org/browse/JENKINS-44809 On Sun, Jun 11, 2017 at 9:45 AM, ST wrote: > Yes I upgraded some plugins and restarted jenkins a few hours before this > happened. But after that several builds of this job went fine, so I'm > th

Pipeline build: Build node not using JDK from Global Tool Configuration

2017-08-04 Thread ST
I have a Jenkinsfile pipeline build that uses our maven project. I also have configured latest jdk8 (1.8.0_144) in the Global Tool Configuration. When building the project on master node, the correct JDK is picked up: *15:11:49* + /export/jenkins/tools/hudson.tasks.Maven_MavenInstallation/maven3.

Re: Pipeline build: Build node not using JDK from Global Tool Configuration

2017-08-04 Thread ST
the jdk tool? The Jenkins slave nodes are launched as "Launch slave agents via SSH", in case that is relevant. Environment: Latest jenkins v3.72 with latest plugins, incl. SSH Slaves plugin v1.20. Any ideas what could be wrong? stefan. On Fri, Aug 4, 2017 at 4:48 PM, ST wrote: &

Re: Pipeline build: Build node not using JDK from Global Tool Configuration

2017-08-04 Thread ST
env.JAVA_HOME}/bin"]) { sh "mvn ..." } Best regards, stefan. On Fri, Aug 4, 2017 at 4:53 PM, ST wrote: > (sorry, email got sent too early, nasty default shortcuts) > > I have a Jenkinsfile pipeline build that uses our maven project. I also > have configured lat

Visualizing tests separately from different stages of a pipeline

2016-07-21 Thread ST
Hi! I am migrating our java/maven build pipeline to a Jenkinsfile, so both the unit tests (maven-surefire-plugin) and integration tests (maven-failsafe-plugin) will be run inside the same pipeline, but in different stages. How can I separate the test results for unit tests and integration tests i

Re: Visualizing tests separately from different stages of a pipeline

2016-07-22 Thread ST
tegration Tests" as they were not executed - rendering the grouping > reasonably useless except for viewing successful tests. (Viewing successful > tests is an edge case <https://issues.jenkins-ci.org/browse/JENKINS-36299> > we've opted not to handle for the moment due to UI scal

How to best define .m2 local maven repo path in multi-branch projects/Jenkinsfile?

2016-08-15 Thread ST
Hi! I am migrating our build pipeline from a set of maven-type jobs to a multi-branch project defined in a Jenkinsfile, and I am wondering how people solve the .m2 problem ? I cannot see any way to configure every job/branch to have its own private .m2 repo through a comfortable boolean config opt

Jenkinsfile: node {} should delete workspace when done?

2016-08-18 Thread ST
According to Pipeline documentation [1], a node{} section in Jenkinsfile creates a fresh workspace and removes it when done with all contained steps. However I'm seeing that the workspace assigned to my node{} sections in the Jenkinsfile is not empty but already contains the project structure, inc

Re: How to best define .m2 local maven repo path in multi-branch projects/Jenkinsfile?

2016-08-19 Thread ST
S0DpU9oeM>. > > It is still in beta phase, but working well so far. > > Cheers > Alvaro > > El lunes, 15 de agosto de 2016, 18:36:30 (UTC+2), ST escribió: >> >> Hi! >> >> I am migrating our build pipeline from a set of maven-type jobs to a >> multi-b

Re: Jenkinsfile: node {} should delete workspace when done?

2016-08-22 Thread ST
Any input on this anyone? On Thu, Aug 18, 2016 at 11:29 AM, ST wrote: > According to Pipeline documentation [1], a node{} section in Jenkinsfile > creates a fresh workspace and removes it when done with all contained steps. > > However I'm seeing that the workspace as

GitLab integration: web hooks for GitLab CE with Jenkins multi-branch project?

2016-08-25 Thread ST
Hi, Is there a way to make push event trigger the build for the associated branch in a Jenkins multi-branch project, using GitLab 8.x Community Edition (CE)? The GitLab documentation about Jenkins integration http://docs.gitlab.com/ee/integration/jenkins.html mentions that the Jenkins GitLab Ho

Pipeline: combining milestone, lock and parallel executions

2017-01-14 Thread ST
I'm trying to understand why the construct below doesnt work as I expect it to, but have spent hours over it without success. We use git with many branches, and a multi-branch pipeline in Jenkins to build and test. The total build takes more than an hour, where 90% is integration tests ((see build

Re: Pipeline: combining milestone, lock and parallel executions

2017-01-15 Thread ST
Found this Jenkins bug which I guess is the cause of my problems, so added a comment there: https://issues.jenkins-ci.org/browse/JENKINS-40787 On Sun, Jan 15, 2017 at 12:28 AM, ST wrote: > I'm trying to understand why the construct below doesnt work as I expect > it to, but have

Re: Pipeline: combining milestone, lock and parallel executions

2017-01-15 Thread ST
. Hope this info is helpful to other users! stefan. Den 15 jan. 2017 1:15 em skrev "ST" : > Found this Jenkins bug which I guess is the cause of my problems, so added > a comment there: > https://issues.jenkins-ci.org/browse/JENKINS-40787 > > On Sun, Jan 15, 2017 at 12:2

String interpolation in sh command with credentials and (shared lib) function call

2020-11-17 Thread ST
Since pretty recently, Jenkins prints out warnings when one inserts e.g. credentials into the 'script' arg of the sh command, and the warnings referring to this help page: https://www.jenkins.io/doc/book/pipeline/jenkinsfile/#string-interpolation Me being curious I am trying to get rid of those wa

Re: String interpolation in sh command with credentials and (shared lib) function call

2020-11-17 Thread ST
mdb.user=${GEN_USR}\ -Dproj.build.generatefromdb.password=${GEN_PASSWD}\ clean ${mvnBuildGoal} pmd:pmd pmd:cpd\ ''' } } On Tue, Nov 17, 2020 at 2:06 PM 'Dirk Heinrichs' via Jenkins Users < jenkinsci-users@googlegroups.com> wr

Re: String interpolation in sh command with credentials and (shared lib) function call

2020-11-18 Thread ST
interpolated by Jenkins (instead of >>> using Groovy string interpolation). I would assume this applies >>> to both variables (e.g. GEN_USR below) and method calls returning a >>> string (e.g. jdbcUrlNoData() below)? >>> >>> withCredentials([usernamePa

jiraComment pipeline step throwing groovy.lang.MissingMethodException

2020-12-23 Thread ST
I am trying to add a comment to a jira issue from my scripted pipeline with this command: jiraComment(issueKey: 'FREF-363', body: 'My super jira comment') And I'm getting the following error: 17:07:25 Caught exception (exception: 'groovy.lang.MissingMethodException: No signature of method: java.l

Re: jiraComment pipeline step throwing groovy.lang.MissingMethodException

2021-01-03 Thread ST
. Thanks, Stefan. On Wed, 23 Dec 2020, 17:24 ST, wrote: > I am trying to add a comment to a jira issue from my scripted pipeline > with this command: > jiraComment(issueKey: 'FREF-363', body: 'My super jira comment') > > And I'm getting the following error:

Re: jiraComment pipeline step throwing groovy.lang.MissingMethodException

2021-01-04 Thread ST
tring.call() is applicable for argument types: (java.util.LinkedHashMap) values: [[issueKey:FREF-363, body: My super jira comment]] On Mon, Jan 4, 2021 at 11:17 AM Arnaud bourree wrote: > Did you chek if you have Jira plugin installed? > > Arnaud > > Le dim. 3 janv. 2021 à 22:06, ST

Re: Gracefully ignoring unavailable agents

2021-01-04 Thread ST
As mentioned by Mark, nodesByLabel will give you control over what agents are currently available. But you will need a script {} section in an initialization stage and probably set an env variable that you then check in the when {} section of the windows stages. So not purely declarative anymore.

Re: jiraComment pipeline step throwing groovy.lang.MissingMethodException

2021-01-13 Thread ST
t; step documentation. If so, you may want to make a little PR with the > updated usage? > > > > > > *From:* jenkinsci-users@googlegroups.com > *On Behalf Of *ST > *Sent:* Montag, 4. Jänner 2021 22:17 > *To:* Jenkins Users > *Subject:* Re: jiraComment pipeline step throwing

Jenkins with Saml 2.0 SSO Authentication

2014-01-21 Thread St. Georgiou
Hey there, I'm looking for a jenkins plugin to enable sso authetication using shibboleth2. Is there such a thing? I can only find the CAS Plugin that only goes up to saml 1.1. Cheers -- View this message in context: http://jenkins-ci

Running casperjs using engine slimerjs problem on jenkins

2016-10-12 Thread Sukanya St
Hi, Im just start using jenkins, on the local machine(windows) am runnning casperjs and using --engine= slimerjs eveything just fine but totally fail when using the same command on jenkins server(linux) anyone have this problem or just me missing something ? -- You received this message beca