Questions tagged [jenkins2]
13 questions
11
votes
1 answer
How to upgrade job-dsl files to Jenkins 2 pipelines?
Is there a common practice for migrating a large repository of Jenkins job-dsl to Jenkins2 pipelines? I am looking for ways to test the behaviour of builds, that go a little further than comparison of generated artifact from same code base.
Actually…
ᴳᵁᴵᴰᴼ
- 1,173
- 10
- 22
10
votes
3 answers
Is there a way to run the Jenkinsfile from command line?
I don't want to use Jenkins UI, instead I would like to use the command line, from command line I want to execute Jenkinsfile to the Jenkins server.
Is this possible?
Let's say I have a Jenkinsfile, If I run the Jenkinsfile, It shoud execute the…
Buvanesh Kumar
- 467
- 3
- 5
- 13
9
votes
4 answers
How to restore default Jenkins plugins?
I do a lot of testing in my Jenkins VM which I have on my local laptop. I found this time-consuming to remove Jenkins and installing again from scratch. It would be better if I have a simple way to restore my Jenkins.
Is there a way to remove all…
Buvanesh Kumar
- 467
- 3
- 5
- 13
7
votes
3 answers
Jenkins shows the job as failed if there is nothing to commit to gitlab
I have been using one Jenkins job, that will pull repository from gitlab.
Then it will modify the files and push it into gitlab (only if any user added any new files/modify contents in gitlab). Otherwise, it simply does empty commit.
When empty…
Buvanesh Kumar
- 467
- 3
- 5
- 13
3
votes
2 answers
after automatic update jenkins fails with `InvalidBuildsDir: .../${ITEM_FULL_NAME}/builds does not resolve to an absolute path`
I had a working Jenkins running as a Service on a Windows-2000 Server
I updated my Jenkins from 2.120 to 2.122 via Jenkins own update mechanism.
In the same run I updated some plugings too.
Now my Jenkins fails to (re-) start with this…
Timothy Truckle
- 33
- 1
- 8
3
votes
1 answer
docker as slave for jenkins
I have installed Jenkins and docker on the same machine Ubuntu.
Ubuntu 17.10
Jenkins ver. 2.73.3
Docker version 17.09.0-ce.
I am trying to set up jenkins docker containers as slaves for running my automation test suite.
I was able to correctly…
user1555608
- 63
- 5
2
votes
1 answer
Load Balancing of Jenkins Nodes without Load Balancing Plugin?
we currently want to introduce a loadbalancing on the Jenkins server and our nodes. I have already created several nodes.
Currently it is also so that if a node is blocked accordingly, that the next free option is chosen. But only if a node is…
Mornon
- 141
- 1
- 4
2
votes
1 answer
Trigger a job and get the job log on the same page in Jenkins
I would like to trigger the job in Jenkins and also get the log on the same page.
E.g. Kind of IDE where we can run the code in one side and get the output on the other side.
Are there any tools exists to fulfill this, or do we need to create it?
smc
- 145
- 1
- 1
- 5
2
votes
2 answers
How can a Windows server be a slave to Jenkins running on Linux when there in an error installing the slave-agent.jnlp file?
I want to have a Windows Server 2016 slave node with a master Jenkins (version 2.89.2) running on Red Hat Enterprise Linux 7.x. I am trying to install the slave-agent.jnlp file from the Jenkins web UI on the Windows server. I run this command for…
Jermoe
- 113
- 1
- 2
- 6
1
vote
1 answer
Jenkins parameters default to env variable?
I am trying to crate parameters field which is default to current build no.
parameters {
string(
name: 'DEPLOY_BUILD_NUMBER',
defaultValue: '${BUILD_NUMBER}',
description: 'Fresh Build and Deploy OR Deploy Previous Build…
rp346
- 135
- 2
- 6
1
vote
1 answer
Compatibility of http-builder-ng Groovy module with Jenkins 2
Did somebody had a chance to use http-builder-ng Groovy module in Jenkins pipeline?
When I use this module with any kind of request/URL it always returns me null object when the same source code from my Desktop is being run fine.
Here is debug…
user54
- 583
- 1
- 4
- 16
1
vote
3 answers
Jenkins - restrict which nodes can be selected by user when creating jobs
I have a situation where I have a Jenkins installation that is used by multiple teams. Each team gets their own Jenkins node, which has access to certain parts of the organization that the team is responsible of.
I want to allow the teams to create…
bgdnlp
- 253
- 2
- 6
1
vote
2 answers
Jenkins - load scripted parameters from a SCM repo
I am using all kind of parameters like "Active Choice Parameter", "Active Choice Reactive Parameter", "Active Choice Reactive Reference Parameter" that have a lot of Groovy code within them. My problem is that now I need to audit changes so I can…
anVzdGFub3RoZXJodW1hbg
- 482
- 2
- 7
- 15