Re: jiraComment pipeline step throwing groovy.lang.MissingMethodException

2021-01-13 Thread ST
nt 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 > groovy.lang.MissingMethodException

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-04 Thread ST
() 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 a écrit :

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: > 17:07:25 Caught ex

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:

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

2020-11-18 Thread ST
ing (e.g. jdbcUrlNoData() below)? >>> >>> withCredentials([usernamePassword(credentialsId: >>> 'credentialsGenerateFromDb', >>>usernameVariable: 'GEN_USR', >>>passwordVariable: 'GEN_PASSWD')]

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

2020-11-17 Thread ST
b.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> wrote: > Am Dienstag, den 17.11.2020, 13:45 +0100 schrieb ST: > > " '-D

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

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

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

2018-01-22 Thread ST
exit status is 0 if a line is selected } } [...] } } } On Tue, Jan 16, 2018 at 12:55 AM, Daniel Beck <m...@beckweb.net> wrote: > > > On 15. Jan 2018, at 23:05, ST <st.mailingli...@gmail.com> wrote: > > > > Any in

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 <st.mailingli...@gmail.com> wrote: > I am seeing a StackOverflowException in > org.jboss.marshalling.river.RiverMarshaller in a declarative Jenkins > pipeline. The > interesting thing

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

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

2017-08-04 Thread ST
t;mvn ..." } Best regards, stefan. On Fri, Aug 4, 2017 at 4:53 PM, ST <st.mailingli...@gmail.com> 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 lates

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 <st.mailing

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* +

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

2017-06-11 Thread ST
idnt help. I've created https://issues.jenkins-ci.org/browse/JENKINS-44809 On Sun, Jun 11, 2017 at 9:45 AM, ST <st.mailingli...@gmail.com> 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, s

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,

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

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" <st.mailingli...@gmail.com>: > 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 >

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 <st.mailingli...@gmail.com> wrote: > I'm trying to understand why the construct below doesnt work as

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

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

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

2016-08-26 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

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 <st.mailingli...@gmail.com> 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

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

2016-08-19 Thread ST
nsci-users/9vS0DpU9oeM>. > > 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

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,

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

Re: Visualizing tests separately from different stages of a pipeline

2016-07-22 Thread ST
scaling concerns). > > Whats your use case for grouping tests by stage? > > > On Thursday, July 21, 2016 at 7:24:39 AM UTC-7, ST wrote: >> >> Hi! >> >> I am migrating our java/maven build pipeline to a Jenkinsfile, so both >> the unit tests (maven-surefi

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

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 https://wiki.jenkins-ci.org/display/JENKINS/CAS+Plugin that only goes up to saml 1.1. Cheers -- View this message in context: