Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

0
votes
0answers
9 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
1answer
11 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
13 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
14 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
27 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
0answers
16 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
22 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
0answers
74 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
13 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
27 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
19 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
26 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 ...
0
votes
1answer
77 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
70 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
41 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
37 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
16 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
1answer
59 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
51 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
25 views

Secure Jenkins X on kubernetes

I install Jenkins X on kubernetes. I want to change the default installation and secure the Jenkins url, so it will be not accessible from the public. Can i change it to some port, or some way to ...
0
votes
0answers
8 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
29 views

Write configuration to stdout in Jenkins Pipeline?

Can I write generated configurations to standard out in Jenkins as demonstrated in the below sample? Use Case node(example) { container(example) { # generator writes configurations to stdout ...
0
votes
0answers
22 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
37 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
66 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
18 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
27 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
75 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
31 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
1answer
29 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
48 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
33 views

Jenkins can't run ansible playbook

Unable to run ansible playbook invoked from Jenkins. I am getting Error the playbook: /var/lib/jenkins/roles/tomcat/main.yml not be found. But it is there in the server. I have invoked Ansible ...
0
votes
2answers
88 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
31 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
21 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
67 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
118 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.
0
votes
1answer
111 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
77 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
44 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
35 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 ...
0
votes
0answers
33 views

Golang, Jenkins and Kuberentes | Readiness probe failed on health check

I'm trying to deploy my buffalo golang app to Kubernetes over Jenkins. When I deploy the app it passes all phase but the pod isn't ready. I get the following error when I describe the pod: ...
0
votes
2answers
118 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. ...
1
vote
1answer
536 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") { ...
1
vote
0answers
13 views

Flow for Confluent Plugins on Kubernetes

Our team is developing Confluent/Kafka Source Connector-plugins. Do you have any ideas on how to install/upgrade the plugins? How is the flow (git -> Jenkins -> running Source Connector) supposed to ...
1
vote
1answer
435 views

How can we get the jenkins console output in a text file?

How can i get the Jenkins console output in a text file? I want to share it with someone, is there any way to do it?
1
vote
0answers
20 views

Define views in Jenkins Multibranch pipeline jobs

Is it possible to somehow define views in Jenkins multibranch pipelines? I'd like to have a second view (after the Branches (NUMBER)), that shows only enabled branches. But I also want to keep the ...
0
votes
1answer
21 views

Specifying branch name for jenkins job through AnyStatus

I am wondering if anyone else has integrated before a parameterized Jenkins build with AnyStatus. When removing the parameter above, I am able to run builds using the branch specified previously from ...