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
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: '
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
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
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
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
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
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
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
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
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
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&
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
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
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
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,
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
/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
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
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
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
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
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
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
24 matches
Mail list logo