Questions tagged [jenkins]

For questions about Jenkins, an open source automation server, and using Jenkins for topics such as building, testing, and deploying software, etc. For questions specifically about Jenkins Plugins use the jenkins-plugins tag.

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

How to remove the --config ***** option on Jenkins with mercurial plugin?

I am trying to pull a mercurial repo with Jenkins and using the mercurial plugin. I know I can access the mercurial server normally, and found that the issue is the --config ***** in the command. I ...
0
votes
1answer
21 views

Jenkins Tool vs Slave local tool

What is the difference between using maven as a tool versus having a slave that has maven installed? I am using Jenkins on OCP and it came with a slave image for maven and not setup as a tool. I now ...
0
votes
1answer
42 views

Jenkins run build in docker on server (withDockerServer not working)

I am trying to run my build inside a docker; but I don't want the docker to run on the jenkins master but on another server that has docker running. What does work: inside jenkins configure a docker ...
0
votes
0answers
27 views

Jenkins constantly loses build history

I encounter a problem in Jenkins that is related to build History. The history is constantly resetted to build number 1 even if I don't have any build discarder option added on my Jenkinsfile. If i'm ...
0
votes
2answers
484 views

How to trigger Jenkins Pipeline by push in specific branch in Bitbucket?

I've created Jenkins Pipeline Job, activated "Build when a change is pushed to BitBucket" trigger. I've also specified branches to build. But pipeline is triggered by all branch changes. Also I've ...
1
vote
1answer
655 views

Set environment variables then run script in Jenkins Scripted Pipeline

I am new to Jenkins, Groovy and pipelines. I have created a simple pipeline stage like so: //working build but not setting env variables node('build-01') { stage('Building') { echo "[*] ...
4
votes
1answer
34 views

Pre-install Jenkins plugins using Docker image

If I have a jenkins docker image: FROM jenkins/jenkins:lts is there a way to pre-install certain plugins using the Docker image, for example all the bitbucket plugins: I assume we'd probably have ...
0
votes
2answers
42 views

How to use stored certificate in Jenkins declarative pipeline?

I have a stored certificate in Jenkins, and I need to use it in a pipelinebuild job, but the problem is it appears the Pipeline can't use certificates: trying to use: environment { KEY = ...
0
votes
2answers
33 views

Using password protected ssh keys

If you use password-protected SSH keys, is there a way to pass the password at the command line automatically instead of manually typing it? E.g. something like: ssh-add <key> -p password
0
votes
1answer
65 views

Jenkins fails to start after restart because of google login plugin had an exception

Jenkins version : Jenkins ver. 2.32.1 Google Login Plugin version : 1.3 I got this error after I restart my jenkins, can anyone suggest me how to solve it ? The thing is : -I already make sure that ...
0
votes
3answers
47 views

How to deploy Node app via Jenkins to Ubuntu(18.04)?

I'm a very beginner in Jenkins and afraid that I ask you something not clear with a weird question. I'd like to deploy my simple node app server to Ubuntu via Jenkins. I tried to write a command in ...
0
votes
1answer
26 views

Best Practice Authenticating Jenkins to Bitbucket to Access Team Repository

What's the "best-practice" approach to authenticate a CI tool like Jenkins or Bamboo to BitBucket? I started with App Passwords because it's cheap and easy, but I hate that it's tied to my account ...
0
votes
0answers
43 views

Building ASP.NET core app with dockerfile in Jenkins

I have a GitHub Enterprise repository which contains an ASP.NET Core WebAPI sample project with just ValueController. I also have access to Jenkins instance most probably running on Docker somewhere ...
0
votes
1answer
218 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 ...
0
votes
1answer
50 views

Python Script in Jenkins

I am trying to run a python script in Jenkins. My Jenkins job is integrated with Jira & on build its gives JIRA_ISSUE_KEY. I want to save the value of JIRA_ISSUE_KEY in a variable. import ...
0
votes
0answers
40 views

jenkins pipeline parameters grouping

I am using 'choice' parameter in Jenkins pipeline(Declarative) and I have over 25 different parameters. I am looking to group the parameters into 4/5 choices but still want the option to be able to ...
1
vote
2answers
288 views

Jenkins Shared lib not working properly

Recently I tried to add Shared Libraries to my Jenkins instance to make it easier to maintain all code that runs in each project. I have a repo myorg/jenkins Inside of it I have Jenkinsfile and ...
1
vote
1answer
29 views

Elastic Beanstalk give error Root Object doesn't exist in Jenkins

I create a Jenkins job which uploads my war file to elastic beanstalk. But when I start to build it gives error java.lang.IllegalArgumentException: Root Object doesn't exist Below is my ...
1
vote
1answer
53 views

Best practice for Jenkins docker to deploy to other container

I'm currently experimenting with docker with the potential of using it in future professional projects and am a bit confused about best practices. In my experimental setup I have three docker ...
0
votes
0answers
319 views

Get parameters for all currently running builds of a jenkins job

I need an API call that shows all the parameters for each build of a jenkins job that are currently running. In other words, I want to see a list of all the current builds of job example-job, with ...
0
votes
0answers
85 views

Running a rollback pipeline on abort in Jenkins?

I've got a set of build pipelines and I've developed a new rollback feature. Running the rollback pipeline manually invokes the rollback actions and does what I expect. I'm also trying to capture any ...
1
vote
1answer
1k views

Multiple levels of parallel stages in a Jenkins declarative pipeline

I need to define a declarative pipeline with multiple levels of parallel stages as such: 1 Prebuild_action1 2 Prebuild_action2 3.1 Build platform_1 4.1 Test1 platform_1 4.2 Test2 platform_1 4....
2
votes
2answers
182 views

One Jenkinsfile or multiple?

So I have a Jenkinsfile defining a build pipeline and then a Jenkins job (not pipeline) with a very simple deployment script for our Docker stacks. Seeing that Jenkinsfiles can become as complex and ...
1
vote
1answer
80 views

Jenkins SSH connection on remote server immediately closes after login

I created a user for jenkins on my remote server that worked previously just fine, but now when I try to login with shh on the server the connection closes immediately after login. This is strange ...
0
votes
1answer
332 views

In jenkins, how to re-run old builds of a job?

Some old builds are failed in my jenkins job and I need to re-run them again. How to do that?
0
votes
2answers
21 views

How do i specify the path of a Dockerfile using Blue Ocean

I want my pipeline created using Blue Ocean (Jenkins) to build with a dockerfile that is not in the root of the git repo. How do I achieve this? Our git repo is a collection of sub-projects with each ...
0
votes
0answers
9 views

How to avoiding the clone of jobs such that existing configuration can be reused for new releases and bringing in optimal usage of Jenkins?

I have jenkins Jobs tightly integrated with versions, needing the job to be cloned and configured for every release. for eg: i have aws-2.3.0-pp and aws-trunk-pp, how about having aws-Generic-...
3
votes
2answers
295 views

Every jenkins build shows error: ln builds/lastSuccessfulBuild /root/.jenkins/jobs/Build/lastSuccessful failed

I migrate my jenkins to new machine succesfully,but after migrate all jenkins job run succesfully. but every build give following error: ln builds/lastSuccessfulBuild /root/.jenkins/jobs/BeepnRide/...
0
votes
1answer
871 views

Jenkins - Scripted Pipeline - Input String

I am struggling to set up an input step in a scripted Jenkins pipeline that will let me as the user to input a string. Scenario: I am building a Docker image. I want to ask the user what tags to tag ...
1
vote
1answer
42 views

Secure Jenkins X on kubernetes

I have installed Jenkins X on kubernetes. I want to change the default installation and secure the Jenkins url, so that it will be not accessible to the public. Can I change it to some port, or some ...
0
votes
0answers
15 views

Seeking help configuring Jenkins MSBuild plugin

Over on Stackoverflow I posted an issue with the MSBuild plugin in Jenkins. Hoping to raise awareness and reach the devops audience by reposting here. Link to stackoverflow issue In a nutshell, I ...
0
votes
0answers
36 views

Regarding changing IP address configured in xml files of JENKINS_HOME directory based on container IP address

I have jenkins installed and running in a remote machine. Planned to move this complete setup to container environment, so took the complete backup of JENKINS_HOME directory of the remote machine to ...
0
votes
1answer
356 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: ...
0
votes
0answers
13 views

Multipatch review: How to integrate reviews on different repository in one jenkins job

I have use case where there are dependent reviews i.e there are changes in 2 different repositories which are dependent. I need to run review on both of them but as combined review. which jenkins ...
0
votes
2answers
124 views

Change Jenkins' port to 80

I install Jenkins on a Ubuntu 18.04 ec2 instance by following its official guide. I want to change Jenkins from port 8080 (default) to port 80. According to its official document: If your /etc/...
1
vote
0answers
22 views

jenkins-x with “jx” installer: enforce https instead of http

My current kubernetes setup has no open http port, for security reasons. But https is open and has a valid certificate. Still the jx installer of jenkins-x seems to require http in order to complete ...
0
votes
0answers
40 views

How to stop jenkins trigger the build by pushing code to repo

I have integrated Jenkins with GitHub. Here i have configured Jenkins should trigger the build when user raise the pull request. So i set the web-hook (option - pull request) URL in GitHub web-hook. ...
3
votes
2answers
78 views

Best practice for installing new jenkins server

When creating a fresh new Jenkins server is it better to install it on a VM or Docker? I know that for most situations when you want just one bit of software on a server the answer would be Docker. ...
0
votes
1answer
66 views

Maintaining Jenkins configuration with docker

I'm trying to configure CI with Jenkins for my private project. Problem: whenever I start building a pipeline project, it gives me ,,Docker is not found'' error whenever I try to work around this by ...
0
votes
2answers
50 views

How can I achieve better load balancing of different systems on a Jenkins?

We have four test machines spread over a Jenkins. We would like to have a better distribution. Example: If machine one is running with a test job, the second job should detect that node one is ...
0
votes
1answer
200 views

Jenkins: Gradle daemon closes unexpectedly

I am running Jenkins (ver: 2.150.3) with gradle (ver: 4.1) I am getting an error that says the gradle daemon closed unexpectedly. Google says it would most likely be gradle running out of memory. So ...
0
votes
0answers
107 views

Jenkins can't run Ansible playbook

I am unable to run an Ansible playbook invoked from Jenkins. I am getting the error: Error the playbook: /var/lib/jenkins/roles/tomcat/main.yml not be found. The playbook, however, is there in the ...
0
votes
2answers
98 views

How to run multiple containers with port expose

I have 2 images on my docker toolbox, for jenkins and for artifactory. I can use the command "run" for each to create a running container, jenkins on port 8080 and artifactory on oprt 8081, using the -...
1
vote
1answer
55 views

Is there an alternative to setting up the whole project workspace in a Jenkinsfile

I have a ROS project for which I'm looking to use Jenkins to set up a CI system. The project has a large number of dependencies which take a long time to build (they can't be installed on the build ...
0
votes
1answer
24 views

Jenkins is running as a docker image in a kubernetes cluster and won't come up due to plugin version incompatibility

We are running Jenkins as a docker image in a kubernetes cluster. However it does not come up any more because of some plugin version incompatibility. How can we upgrade the plugins, or disable them ...
0
votes
2answers
101 views

Connecting GitHub to Jenkins running on docker toolbox

Started to learn DevOps 3 days ago, so I have a lot to learn! I have a jenkins running on docker toolbox container and I can access it via 192.168.99.100:8080. I configured a job and managed to use "...
0
votes
2answers
493 views

Tomcat Restart from jenkins

I want to stop tomcat using jenkins. Tomcat is running as a seperate application server, I want to restart it using Jenkins console.
1
vote
1answer
752 views

What setting to use for jenkins tunnel?

I am trying to run a jenkins system on my macbook for testing Jenkins is running in the mac "Docker Desktop" in Kubernetes, using a helm chart It has a Kubernetes slave set up with the Kubernetes ...
2
votes
0answers
328 views

Can I use the Jenkins Rest API with user input?

I want my Jenkins Pipeline to have a user input step where it posts to a slack channel and waits for user input then uses the input to user enters (button in the slack message). So at the input step ...
1
vote
1answer
126 views

Jenkins: mercurial scm: clean=false is not working as expected

EDIT: It seems as if the MercurialSCM plugin hardcodes the update to use the --clean option. See this line. Anyone have any ideas what's the idea? I have the following checkout step in my Jenkinsfile:...