A message from our CEO about the future of Stack Overflow and Stack Exchange. Read now.

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
1
vote
0answers
31 views

Set global repository access to GitLab via GitLab connections and Gitlab OAuth [closed]

I am trying to configure a secured Jenkins server in a company network where GitLab CE is already running. I have set the access control and the authorization system in Jenkins via the GitLab ...
2
votes
0answers
29 views

Update Service Hooks in TFS2015 through Jenkins Job [closed]

Is there a way to modify what branch a service hook is monitoring through a Jenkins job? Our build jobs within Jenkins are triggered via service hooks within TFS. When we branch, inevitably we ...
5
votes
3answers
98 views

What is the optimal size of a Jenkins Pipeline Stage?

Should I create single checkout stage or multiple stages like checkout scripts, checkout code, checkout something else? How should I decide on what piece of logic to put into separate stage? Or are ...
1
vote
1answer
361 views

GitHub Payload in Jenkins

I'm using the GitHub plugin with Jenkins, and I'm trying to figure out how I can access the webhook payload. I'm aware that the Generic Webhook Trigger has this ability, as well as the GitHub Pull ...
1
vote
1answer
46 views

How to keep polling GitHub repository and get commits by it's messages on a regular interval using Jenkins?

I need to know how to write a Jenkins job which polls a GitHub repository continuously and send an email of commits made to that repo.
1
vote
1answer
42 views

Jenkins plugin site to ignore certificates

Is there a way that I can tell Jenkins to ignore certificates for the update site. Background I have an air-gapped Jenkins installation and there is currently proper way to make a proxy repo. Thus ...
0
votes
2answers
75 views

Why many companies prefer Jenkins than Aws CodePipeline? [closed]

I have searched few job sites. Many companies are searching engineers who can handle Jenkins as CI platform. I think the Aws CodePipeline is easier than Jenkins. Anyone can advise me, please. Thank ...
0
votes
1answer
80 views

How to automate the process of patching Jenkins Slave instances in AWS

I've been working on an automated patching solution for some infrastructure in one of our AWS accounts. This AWS happens to host the Jenkins instance we use for CI/CD actions, among other things. ...
0
votes
1answer
24 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 ...
1
vote
1answer
334 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 ...
1
vote
2answers
2k 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
5k 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 "[*] ...
5
votes
1answer
90 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 ...
1
vote
2answers
239 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
38 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
1
vote
1answer
148 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 the following error after I restart my jenkins, can anyone suggest me how to solve it? The thing is : I already make sure ...
0
votes
3answers
109 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
33 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
1answer
615 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
1k 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 ...
3
votes
2answers
518 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
71 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 ...
2
votes
1answer
184 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 ...
1
vote
0answers
391 views

Running a rollback pipeline on abort in Jenkins? [duplicate]

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 ...
2
votes
1answer
3k 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....
4
votes
2answers
2k 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
172 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 ...
1
vote
1answer
2k 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
29 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 ...
3
votes
2answers
542 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
3k 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
55 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
1answer
1k 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: ...
1
vote
1answer
573 views

How to change Jenkins' port to 80?

I installed 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
28 views

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

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 ...
4
votes
2answers
83 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. ...
-1
votes
1answer
102 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 ...
1
vote
2answers
59 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 ...
-1
votes
1answer
408 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 ...
1
vote
2answers
112 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 -...
2
votes
1answer
77 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
29 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
198 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
894 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
2k 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 ...
3
votes
0answers
671 views

Can I use the Jenkins REST API with user input? [closed]

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
192 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:...
0
votes
1answer
212 views

Deploy to GKE from CI server outside of cluster

I'm setting up our CI (Jenkins pipeline) to deploy apps to a GKE cluster. Our Jenkins sever is running external to GKE or any Google Cloud infrastructure. I'm thinking of using a docker image with ...
1
vote
2answers
2k views

Jenkins Dockerfile declarative pipelines: getting the built image tag

I'm trying to get the image tag generated with the help of the dockerfile agent in Jenkins declarative pipelines. This Jenkinsfile is incomplete though, because I still need the deployment steps. ...
4
votes
3answers
16k views

How to define variable in Jenkins scripted pipeline?

I defined variable in declarative Jenkins pipeline script but having issues with simple variable declaration. Here is my script: pipeline { agent none stages { stage("first") { ...