Re: git checkout failed with exception reference is not a tree

2020-06-15 Thread Mark Waite
On Mon, Jun 15, 2020 at 8:16 PM Arunachalam Sibisakkaravarthi < arunacha...@mcruncher.com> wrote: > Hi Mark, I share the information you requested. > > We have a BitBucket Webhook to notify Jenkins to build this > Multibranch pipeline > > *Answers for your questions:* > >- We

Re: git checkout failed with exception reference is not a tree

2020-06-15 Thread Arunachalam Sibisakkaravarthi
Hi Mark, I share the information you requested. We have a BitBucket Webhook to notify Jenkins to build this Multibranch pipeline *Answers for your questions:* - We use BitBucket Branch Source plugin in our Multibranch pipeline - This commit is present in the project

Re: Multi-line parameter description in declarative pipeline

2020-06-15 Thread Al Silver
Below code does not work and just throws an error when I try to run it. I've seen examples of stripIndent but I have not been able to find a working example used inside the parameters block with declarative pipeline... parameters { string(name: 'limit', defaultValue: '',

Re: Files sourced on pipeline shell step

2020-06-15 Thread Martin Baillie
I'm experiencing a similar issue, did you find a solution? On Wednesday, 9 January 2019 09:19:25 UTC, Kamil Dzierżanowski wrote: > > Hello, > > I'm trying to determine, which (if any) files are sourced by the shell, in > which commands specified in "sh" pipeline step are executed. I need to

Using nvm in build shell script causes 'No such file or directory' error

2020-06-15 Thread Martin Baillie
Hi, I'm using Jenkins to build a Cordova project. Recently I've upgraded the Jenkins server (a MacMini running Mojave) from a standard node install to use NVM. I'd like to call nvm from within the build script I call from Jenkins' Build > Execute Shell option. However when I reference nvm

Re: NVM on Jenkins

2020-06-15 Thread Martin Baillie
Hi, I am having a similar issue. Did you manage to find a solution? On Tuesday, 19 May 2020 13:13:22 UTC+1, hawk base wrote: > > 1) How to install NVM on the Jenkins Slave? > > 2) How can we make the jobs to use that NVM so that we can install > multiple NodeJS / NPM version? > > Note: I am

Re: Multi-line parameter description in declarative pipeline

2020-06-15 Thread 'Björn Pedersen' via Jenkins Users
Am Montag, 15. Juni 2020 14:45:42 UTC+2 schrieb Al Silver: > > If I remove the spaces/tab at the beginning of the line, I'm left with > "ugly" code that's not maintaining indentations... T > Not remove from the source, but from the assigment value: """ -... - ""..stripIndent()

Re: jenkins agent definition loaded from a jenkins library

2020-06-15 Thread Marco Sacchetto
Thanks Gianluca, that actually works. I missed the bit of information regarding the annotation that needs to go on variables inside the library to make them global! Il giorno lunedì 15 giugno 2020 13:28:33 UTC+1, Gianluca ha scritto: > > Hi, > I'm not entirely sure what are you looking for but

Re: Multi-line parameter description in declarative pipeline

2020-06-15 Thread Al Silver
If I remove the spaces/tab at the beginning of the line, I'm left with "ugly" code that's not maintaining indentations... Thx On Friday, June 12, 2020 at 10:20:13 PM UTC-4, slide wrote: > > The triple quote strings are taken as is, so just remove the tabs/spaces > at the start of the lines. >

Re: jenkins agent definition loaded from a jenkins library

2020-06-15 Thread Gianluca
Hi, I'm not entirely sure what are you looking for but I want to tell you that you can use variables as image name, or at least you can do for agent labels: agent{ label "${builder.label" } We use the above in our pipelines to have different agents depending on the branch and PR number and

jenkins agent definition loaded from a jenkins library

2020-06-15 Thread Marco Sacchetto
Hi, I'm currently using a Jenkins declarative pipeline (note: if my issue would be solved with a scripted pipeline, I can switch). The builds run inside an ephemeral docker agent spinned up by the pipeline using a syntax similar to agent{ docker{ image "my-image"}}} The issue with that is

Unable to run Selenium tests on CentOS through Xvfb

2020-06-15 Thread Gajanan Mahajan
I'm running Selenium tests on `CentOS 7` machine through Jenkins pipeline hence using `Xvfb`. When use `screen` argument with any valid value like following - wrap([$class: 'Xvfb', autoDisplayName: true, screen: '1440x800x8']) { } It results into following error -

Unable to run Selenium tests on CentOS through Xvfb

2020-06-15 Thread Gajanan Mahajan
I'm running Selenium tests on `CentOS 7` machine through Jenkins pipeline hence using `Xvfb`. When use `screen` argument with any valid value like following - wrap([$class: 'Xvfb', autoDisplayName: true, screen: '1440x800x8']) { } It results into following error -

httpRequest does not return result in parameters's Groovy script

2020-06-15 Thread Gajanan Mahajan
If I make following http request in pipeline code it returns result for `response.status` def response = httpRequest authentication: '', url: '' However if same code is passed to Groovy script of pipeline parameter, it returns nothing and also no error is seen. Please help on how I can