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
25 views

How do i connect docker pipeline on jenkins to kubernetes cluster

I am trying to setup a pipeline on jenkins that uses docker containers to execute tasks like for example deploy an helm charts using a docker image with helm here is what my Jenkinsfile looks like ...
0
votes
0answers
7 views

Existing LDAP is being de-commissioned, and AD will take its place, how would the jenkins user groups be effected [closed]

My existing LDAP is being de-commissioned, and AD will take its place, please let me know how would the jenkins user groups be effected. I know this is a dry question, but I dont know how to proceed. ...
0
votes
1answer
26 views

Getting permission denied with docker pipeline on jenkins

I have jenkins deployed via helm charts on kubernetes cluster Now i want to be able to run helm to deploy helm charts applications on my kubernetes cluster and have the following in my jenkinsfile ...
0
votes
0answers
12 views

Jenkins build is success but deploy fail on tomcat

Jenkins build is success but the deploy fails on tomcat, with following output. ERROR: Step ‘Deploy war/ear to a container’ aborted due to exception: java.lang.InterruptedException: [DeployPublisher]...
0
votes
1answer
21 views

OpenShift fails to deploy jenkins - connection refused

I am using the GitHub project elio/openshift-vagrant. vagrant up and then the script oc-up.sh gives me a master and two nodes. Ansible provision runs without problems. After provision I can login to ...
0
votes
1answer
16 views

Mail logs with Jenkins

I am deploying my software on different OS ( Red hat & suse) and I need to know if my latest version of the software will work. In order to check if the installation works it's enough to check ...
2
votes
1answer
20 views

How to schedule a Jenkins Job dynamically based on the time value in database

I have a situation where there is a database in which a table consists of scheduled time to build. This schedule time to build may vary from day to day. Say for example, Today the entry in db is 09/...
1
vote
0answers
14 views

Unable to install both Bitbucket Branch Source and GitHub Branch Source plugins

So, we have projects spread across multiple git hosting platforms. Namely Bitbucket and GitHub. We will migrate them to a unified platform in the future, but we're stuck with things the way they are ...
0
votes
0answers
12 views

How to “killSoftly” a particular Jenkins job?

From SO: My Jenkins build hangs between build and post-build steps. The console output shows there is a 6-minute wait (but I've seen waits of up to one hour): 10:53:26 BUILD FAILED in 1m 7s 10:53:...
0
votes
1answer
22 views

Unable to run `conda activate` from Jenkins pipeline

I'm running Conda 4.6.14 on Ubuntu 16.04. I thought about using virtual environments with Conda in my Jenkins pipelines that needed Ansible, by having all nodes use the same environment, ansible-env ...
1
vote
0answers
19 views

https - How to enable users to have secure connection with Jenkins via ELB?

Below is the cloud formation template that creates Eastic Load Balancer as public facing to jenkins(jenkins:ecs docker) running in VPC subnet: { "AWSTemplateFormatVersion": "2010-09-09", "...
1
vote
0answers
14 views

How can I modify Jenkins Configuration Global Security from linux server?

In Jenkins UI, I have the below section under http://XXXXXX:YYYY/configureSecurity/ where can I find this definition in Server (Linux RHEL)? I tried to grep for it in jenkins-production folder but ...
1
vote
2answers
25 views

Jenkins Plugin Install Failed

I am trying to set up new Jenkins. When I download Suggested Plugins OR try to install any plugin I am getting below error. I am using Jenkins Latest Version 2.204.1. I have set up this on VM. I am ...
0
votes
1answer
36 views

nginx for dummies? How to enable Jenkins over https

I'm running Jenkins on an Ubuntu machine bare metal, and as I'm only experimenting and learning how the ops of it all works, I now want to learn how to enable https (with a nominally valid certificate ...
1
vote
1answer
35 views

Store data in Jenkins job description

I have a job which I run with a boolean parameter called "BUILD_CLEAN=true", and it defaults to false. I can store this flag in the job ID currentBuild.displayName . Simple enough. But for my purposes ...
0
votes
2answers
35 views

How to disable ping thread on jenkins agent

One of the jenkins slave is going down very often. Found RCA for this issue. It's because of the Ping thread In the logs I fetch from agent, I have: Terminating the channel channel. java.util....
1
vote
3answers
32 views

Jenkins Pipeline Docker Agents with official Jenkins Docker image

I'm using the official jenkins:lts image to host a Jenkins instance, with the Docker control socket forwarded inside the container to allow Jenkins to start new containers, and now I'm trying to run a ...
1
vote
1answer
19 views

Legacy build environment in Docker container, incompatible with Jenkins agent

I have a working Dockerfile that creates a build environment for a legacy app, and now I'd like to use that environment from Jenkins, ideally allowing for incremental builds. The environment is too ...
2
votes
1answer
33 views

Passing parameters from Jenkins to Ansible playbook

How can I pass parameters from Jenkins to my Ansible playbook? Eg. I want to take IP address from users and pass it to the playbook so that it will execute only on those machines.
1
vote
1answer
29 views

Database Backup using jenkins

I would like to take MSSQL server db backup. Is there any plugin available for it.
2
votes
1answer
22 views

Using Code Climate for Test Coverage alongside Jenkins

My company is currently trying to implement Code Climate for test coverage. However, I do not have much idea about it and new to using code climate. I tried to integrate code climate with Jenkins so ...
0
votes
0answers
10 views

Is it possible to run testing.xml file with different jenkins jobs using parameterizing?

I have 2 modules lets say A & B, each contain 50 testcases in my testing.xml file and that testing.xml configured in pom.xml file using A B I want to configure in Jenkins using Maven and ...
0
votes
1answer
19 views

How to inject credentials to python virtual env in jenkins?

I am trying to inject my credentials to a Jenkins Freestyle project. The project is building a python project in virtual environment with "behave" created with ShiningPanda plugin can someone help ...
1
vote
1answer
30 views

What is the name of Jenkins plugin for GitHub plugin configuration?

We need below plugin in Jenkins: Currently I have installed below list of plugins: git:latest git-client:latest git-server:latest github:latest github-api:latest github-branch-source:latest Am ...
1
vote
1answer
26 views

jenkins parameter behaves differently from internally defined variable

I set up my jenkins job to take in the parameter payload and set its value to test\ntest. My jenkins script is the following: def hardset = "test\ntest" echo "param:" def cleanParam = jenkinsParam....
1
vote
2answers
84 views

Jenkins and docker login issue

I am trying to create a Jenkins pipeline that will pull a public image from docker hub and build a Vue.js application inside that container. In my Jenkins server I already have other pipelines that ...
3
votes
1answer
160 views

Jenkins Declarative pipeline: Execute stage conditional on execution of previous stage

I have a Jenkins declarative pipeline with several stages. Some of these stages need to be executed based on whether a previous stage has been executed. In pseudocode: pipeline{ stages{ stage('...
1
vote
1answer
36 views

Can Jenkins master connect to a slave node in a private subnet?

We've got a Linux Jenkins master node set up in AWS behind a load balancer and I'm attempting to connect to Windows slave nodes in private subnets. Is this possible? The Jenkins URL is accessible ...
0
votes
2answers
86 views

Issue pushing to ECR using Jenkins

I'm trying to push an image to ECR via a Jenkins pipeline. Currently I have the ECR plugin installed, and a role assigned to my EC2 instance that allows ECR access. I am using correct credentials ...
1
vote
1answer
26 views

Jenkins Cancel (jobs) from Queue by Label

I'm freshman in Jenkins. I would like to cancel jobs by it's own label (hundreds) from my Queue of tasks given to slaves: jenkins.model.Jenkins.getInstance().getQueue() so i then could do: items[i]....
2
votes
2answers
41 views

Jenkins triggered by multiple git repos

I've been looking around to see how to have ~10 different repos all on a git push trigger a single pipeline that does pretty much the same exact thing - build a docker image -except that the different ...
1
vote
1answer
366 views

Issue installing NPM packages on Jenkins

I have a Jenkins build I am using for a Vue.js application. I am trying to install all dependancies as part of the pipeline and am running into some issues. I've included the below output as well as ...
1
vote
1answer
21 views

Jenkins Deployment Issue - Unrecognized SSL Message, Plaintext Connection?

I've been attempting to build and deploy a local copy of a repository, whilst still providing the remote depository to Jenkins, to a Tomcat version 9 server. I have both Jenkins and Tomcat running on ...
0
votes
0answers
49 views

Linux command from Jenkins using SSH

I want to run Sudo command on the Linux machine from Jenkins. Jenkins is configured on the windows server. I have set up an SSH configuration in Jenkins configuration. From logs, I found that Jenkins ...
1
vote
1answer
144 views

Jenkins does not seem to be running inside a container

I am getting an error while running the Jenkins file tp build and push the docker image into docker hub . you can reveiw my code github : https://github.com/iakshaykr/webapp.git (using jenkins_pipe ...
0
votes
3answers
80 views

Jenkins upgrading and plugins ordering

I have Jenkins 2.89 installed with many outdated plugins as well. What is the best path for upgrading both the plugins and Jenkins itself? Should one proceed the other? I am leaning toward upgrading ...
0
votes
1answer
33 views

Jenkinsfile: Pull image from registry endpoint A, push built image to registry endpoint B

I have two endpoints for my registry (Nexus OSS): Endpoint 10500 to pull images from. And Endpoint 10501 to push images to. (I can go into detail what the idea is and why we think Nexus requires ...
0
votes
1answer
26 views

How to create slave jenkins given master jenkins?

Below code snippet, taken from here creates master jenkins that runs in a container: # Create Docker Group with GID # Set default value of 497 if DOCKER_GID set to blank string by Docker Compose RUN ...
2
votes
1answer
111 views

How to mark a step as failed or unstable on timeout, instead of aborting build?

I have a stage in my Jenkins declarative pipeline that looks like: stage('Step Tests') { steps { dir('test') { catchError(catchInterruptions: true, buildResult: 'FAILURE') { ...
0
votes
2answers
222 views

JAVA_HOME error in Sonar Scanner for MSBuild

I have set up a sonar scanner MSBuild in Jenkins, but suddenly I'm getting below error. ERROR: JAVA_HOME exists but does not point to a valid Java home folder. No "\bin\java.exe" file can be ...
1
vote
1answer
45 views

Is there a Jenkins plugin for downloading source code?

Although our own sources are checked out from a revision-control systems, the third-party software we depend on needs to be downloaded from their respective sites. The plugin I'm looking for would ...
0
votes
1answer
29 views

DC Jenkins server to AWS servers connection

We are trying to automate the deployment process for our application, our application has two components (one hosted on DC, one hosted on AWS). Now, we are not sure how do we connect the jenkins from ...
0
votes
2answers
245 views

Jenkins Pipeline - Clean before checkout - git clean -fdx “failed to remove: Directory not empty”

I have my Jenkins build configured to "Clean before Checkout" for its git source: Job Config > Source > git > Behaviours > Clean before checkout This results in Resetting working tree ...
0
votes
1answer
23 views

Secure deployments of on-prem artifacts to cloud

Right now, we have locally hosted (across multiple Datacenters) artifactory and Bitbucket. We're at a halfway point between Jenkins and Bamboo (with Jenkins beginning to make more traction against ...
1
vote
1answer
276 views

Problem with Connecting Jenkins to SonarQube

I have a Jenkins pipeline that periodically pull from gitlab and build different repos, build a multi-component platform, run and test it. Now I installed a sonarqube server on the same machine (...
0
votes
1answer
27 views

Run command from Jenkins to Linux Server

I have a HAProxy server setup in Azure Linux Machine. How can I run a HAProxy start/stop command from Jenkins to multiple Linux server?
3
votes
0answers
38 views

Is it possible to queue multiple replays of a Jenkins pipeline programmatically? [closed]

We have a parameterized declarative Jenkins pipeline which does tests on a java project with maven. The pipeline goes through a lot of stages to ensure that the code works as expected. However, every ...
2
votes
0answers
127 views

Jenkins error using Junit plugin: Test reports were found but none of them are new. Did LeafNodes run?

I'm trying to get our test reports (generated using google test with the xml output switch) into Jenkins, but keep getting the error message: Test reports were found but none of them are new. Did ...
4
votes
1answer
63 views

Trigger Jenkins Job from Azure DevOps

I want to trigger Jenkins Job when anyone pushes the code in Azure DevOps Repository. However, when I set up Jenkins Service Connection in Azure DevOps I am getting the following error: Failed to ...
0
votes
2answers
77 views

How to run Ansible file in Jenkins using Ansible plugin

Please look into this error trying to implement the deploy.yml file with ansible plugin which is installed in the jenkins. In ansible console I can implement the app successfully to the target ...