Questions tagged [jenkins2]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
188 views

Single jenkinsfile for multiple target environment

I use Jenkins 2.376. Beside feature branches I have 3 main branch in GIT : test, stage, prod and 3 JOBs for deployment of these main branches. I want to have single identical Jenkinsfile in Git for ...
SmokingTurtle's user avatar
1 vote
3 answers
4k views

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 ...
bgdnlp's user avatar
  • 253
1 vote
2 answers
2k views

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 ...
anVzdGFub3RoZXJodW1hbg's user avatar
2 votes
1 answer
4k views

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 ...
Mornon's user avatar
  • 141
1 vote
1 answer
8k views

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: ...
roy's user avatar
  • 135
2 votes
1 answer
2k views

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 ...
smc's user avatar
  • 145
3 votes
2 answers
5k views

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 ...
Timothy Truckle's user avatar
10 votes
3 answers
11k views

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, ...
Buvanesh Kumar's user avatar
9 votes
4 answers
11k views

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 ...
Buvanesh Kumar's user avatar
1 vote
1 answer
821 views

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 ...
user54's user avatar
  • 593
2 votes
2 answers
6k views

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 ...
Jermoe's user avatar
  • 113
3 votes
1 answer
2k views

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 ...
user1555608's user avatar
7 votes
3 answers
14k views

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). ...
Buvanesh Kumar's user avatar
11 votes
1 answer
400 views

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 ...
ᴳᵁᴵᴰᴼ's user avatar