Re: Groovy pipeline to lock a resource on a node that is online

2020-10-06 Thread 'monger_39' via Jenkins Users
today I gave it a try to:* add a check within the lock { ... } block to see if the derived node is online. If so, I throw an exception,   and thus end up in the retry(). Unfortunately, upon the next try, I just get again the resource for the    node that was offline. After 3 retries, my script

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

2020-06-17 Thread 'monger_39' via Jenkins Users
Hi,not sure if your problem is now solved, so ..Try changing your code to use: w pipeline doesn't seem to achieve the goal:     pipeline {         agent any         options {             ansiColor('xterm')                             }         parameters {             extendedChoice description: '

how to use port remapping using JNLP with Dockerized Jenkins using JCASC ?

2020-06-17 Thread 'monger_39' via Jenkins Users
Hi,I have been experimenting with Dockerized Jenkins (incl JCasC). Only the master is dockerized for now.My Jenkins agents are started from the agent, and connect via JNLP.The master (internal) port is 8080. the JNLP port is 5. Both defined in the JCasC configuration.   location:     adminA

Re: Help Jenkins with TestComplete

2020-06-16 Thread 'monger_39' via Jenkins Users
in your log it shows:    Building in workspace C:\Users\latran\.jenkins\ workspace\Test Are you actually working with a workspace that has a space in the name ?? Using that could, depending how variables are used/interpreted/passed cause all kinds of strange issues. Although in the rest of you lo

looking for "News banner" plugin

2020-06-16 Thread 'monger_39' via Jenkins Users
Hi all, I am looking for a plugin that would allow me to add a simple 'News banner' on the Jenkins home page.This is to announce upcoming maintenance, new items or other. Not much fancy stuff is needed: all I would want is a piece of text with minor formatting. After searching, the only plugin t

Re: Many Freestyle jobs or many Jenkinsfiles?

2020-06-15 Thread 'monger_39' via Jenkins Users
check Jenkins Configuration as Code | | | | | | | | | | | Jenkins Configuration as Code Jenkins – an open source automation server which enables developers around the world to reliably build, test, an... | | | After installing the plugin, use the export to generate a 'represen

Re: Jenkins Agent/Slave on Windows Disconnect Issue

2020-06-04 Thread 'monger_39' via Jenkins Users
have you looked on the agent in the remoting logs ? I've had (and still have) the same issue. Often I see in the remoting logs on the node an error like    "Readerthread killed by OutOfMemoryError  java.lang.OutOfMemoryError:unable to create new native thread  "which btw does not necessarily mea

Re: Many Freestyle jobs or many Jenkinsfiles?

2020-06-04 Thread 'monger_39' via Jenkins Users
similar to other users I also have a quite large set of jobs that use the (scripted, not declarative) Groovy pipelines. In my setup I have deliberately chosen to: - store all the Groovy scripts in SCM - have a seperate dedicated repository for all my Groovy scripts; alternative woul

Groovy pipeline to lock a resource on a node that is online

2020-05-27 Thread 'monger_39' via Jenkins Users
Hi, I have several jobs that require exlusive access to some resource of which a given agent node can have multiple, but limited to some maximum number which is less than nr of executors of the agent. We solve this by using the Lockable Resources plugin. We define a resource per what is availabl

problem running 2 Docker/Jenkins/JCASC instances using JNLP

2020-05-18 Thread 'monger_39' via Jenkins Users
Hi all, I am running a Docker/Jenkins configured via JCASC. For the slaves I am using JNLP.My container is started using  "-p 8080:8080 -p 5:5" and this works fine. The JNLP port is configured in the JCAC config through:    slaveAgentPort: 5  However, if I start a second instan

Re: Jenkins master/slave ping timeout settings: disable or increase?

2020-04-14 Thread 'monger_39' via Jenkins Users
behavior might be different. I've heard recently that Microsoft's SSHD implementation works well. Good luck on troubleshooting Jeff On 4/14/20 8:31 AM, 'monger_39' via Jenkins Users wrote: Hi Jeff, thx. Last week I disabled the ping-thread on master and slaves by s

Re: Jenkins master/slave ping timeout settings: disable or increase?

2020-04-14 Thread 'monger_39' via Jenkins Users
ster, as well as the slave are Windows server VM's running 6 executor slots each. The tests we are running heavily use TCP communication.  Any idea how to tackle this ? thx, M.On Thursday, April 9, 2020, 10:53:48 PM GMT+2, Jeff Thompson wrote: On 4/7/20 11:46 PM, 'monger_39&

Jenkins master/slave ping timeout settings: disable or increase?

2020-04-07 Thread 'monger_39' via Jenkins Users
Hi, in my Jenkins I am regularly facing master/slave connection drops with a message like: hudson.remoting.ChannelClosedException: Channel "unknown": Remote call on JNLP4-connect connection from IP/IP:58344 failed. The channel is closing down or has closed down. I have seen a lot of bug-r

Re: Jenkins pipeline generates NoSuchFileException when started twice in parallel

2019-12-16 Thread 'monger_39' via Jenkins Users
Hi Ivan,totally missed the answer before ...Reason I am loading from the '@script' folder is actually mostly just historic; this code was handed to me as example howto do things. I am aware of the 'shared-libraries' feature, but never really got around to migrating the code to that. Apparentlyt

how to use GraphListener.Synchronous in a Jenkins scripted pipeline

2019-08-30 Thread 'monger_39' via Jenkins Users
Hi,I have a Jenkins scripted pipeline having quite a lot of parallel stages and steps.I am looking for a way to find the link to the exact location of the workspace directory that is created for every stage, within the pipeline code itself.I know that there is some (seemingly random) ID as part

Re: Multiple resources with same name not working

2019-06-03 Thread 'monger_39' via Jenkins Users
Hi Sverre,if I understand your question correctly, the trick would be to:* give a unique name to each resource* give all resources (of the same type) the same label* request/lock 1 or more resources of the labelyou will then get a list containing the locked resource names.gr, M On Monday,

Jenkins pipeline generates NoSuchFileException when started twice in parallel

2019-06-03 Thread 'monger_39' via Jenkins Users
I am having an issue when starting the same pipeline job twice (running at the same time).Here the 'NoSuchFileException' is issued for a utils.groovy that I am trying to loadfrom the Groovy job script: JOB_NAME:: D:\Jenkins\workspace\P71_STBnightly_pipe@4: pwd[Pipeline] loadjava.nio.file.No

Re: how to derive HTTP link to workspace of a scripted parallel pipeline

2019-04-18 Thread 'monger_39' via Jenkins Users
/browse/JENKINS-28119 11.04.2019 14:50, 'monger_39' via Jenkins Users пишет: Hi Viacheslav thx for the detailed answer! But wow, that is way more complex than I had anticipated ! Do you know if it is possible to get the ID at runtime for a given step ? In my case the step that

issue setting build status from within evaluated groovy script run as system script

2019-04-12 Thread 'monger_39' via Jenkins Users
Hi, I have a job to do some cleanup in Jenkins. the job is defined to run a "Execute system Groovy script" as build step. The code contains something like:     import hudson.FilePath     import hudson.model.*     final GROOVY_SCRIPT ="scripts/do_job_cleanup.groovy"     evaluate(new FilePath(bu

Re: how to derive HTTP link to workspace of a scripted parallel pipeline

2019-04-11 Thread 'monger_39' via Jenkins Users
   echo "\$str \$index"   done <<< "\$LOG_LINES"   """     for(line in sh(script: exec, returnStdout: true).trim().tokenize('\n')) {     i=line.tokenize()     result.put(i[0], i[1])     }     return result   } cat

Re: how to derive HTTP link to workspace of a scripted parallel pipeline

2019-04-05 Thread &#x27;monger_39&#x27; via Jenkins Users
still to find those files within the workspace. On Friday, April 5, 2019, 3:18:10 PM GMT+2, Lukas Resch wrote: Hi, Am 05.04.2019 um 14:57 schrieb 'monger_39' via Jenkins Users: > I have a scripted parallel pipeline job. Within each of the stages test steps > are

Re: Jenkins Declarative Pipeline: Lock multiple stages using NODE_NAME as resource.

2019-04-05 Thread &#x27;monger_39&#x27; via Jenkins Users
I have done something similar, albeit in a scripted pipeline.Install the "lockable resources" plugin, and define as resources each of the nodes that could execute your job. I.e. some name that includes the name of your node. Assign a label (same label for all those resources) to these resources

how to derive HTTP link to workspace of a scripted parallel pipeline

2019-04-05 Thread &#x27;monger_39&#x27; via Jenkins Users
Dear Jenkins users, sorry to contact you with this, but I am at a loss where to find or ask the following. I have a scripted parallel pipeline job. Within each of the stages test steps are run (under NUnit) that generate detailed logs per step, and a summary in the console. To make life easier

role-Based strategy showing FullName next to userid ?

2019-02-26 Thread &#x27;monger_39&#x27; via Jenkins Users
Hi, we have a Jenkins setup with RoleBased Strategy, using the CollabNet realm for Authorization. We have userid's (iso names) for login. These userid's are all very similar; 3 letters followed by 5 digits. After a while, having 50 or more userid's in the 'Assign Roles'table, it becomes very d