Podcast #128: We chat with Kent C Dodds about why he loves React and discuss what life was like in the dark days before Git. Listen 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
1answer
23 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
28 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
59 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('...
0
votes
1answer
17 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
0answers
17 views

Jenkins- pending—‘anonymous’ lacks permission to run on ‘Jenkins’

I'm getting "pending—‘anonymous’ lacks permission to run on ‘Jenkins’" error when running Jenkins Job with a specific user. I have added this user to credentials. I have configured Access Control for ...
0
votes
2answers
17 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
19 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
28 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 ...
0
votes
1answer
31 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 ...
0
votes
1answer
12 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
35 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 ...
0
votes
1answer
45 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
55 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
27 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
22 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
38 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
42 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
26 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
26 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
0answers
30 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
14 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
52 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
17 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
32 views

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

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
36 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
38 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
63 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 ...
2
votes
1answer
59 views

Best solution for code develop

What is the best git solution for java code development? Make my own git server? Developers (Linux, Mac, Windows) are working on their local computers, then they are using my own git server. Would ...
0
votes
0answers
9 views

Safari test automation using Robot Framework via Jenkins

I spent about one week trying to make my Robot Framework tests work for Safari browser in MacOS, when launched by Jenkins via ssh. The main issue was that Robot couldn't open a browser when executed ...
0
votes
0answers
11 views

Jenkin - Step 'Associated JIRA' aborted due to exception

Can anyone help me with on below issue? after yum update in Jenkin server, all the jobs getting failing with the below error message. ERROR: Step ‘Associated JIRA’ aborted due to exception: java....
1
vote
1answer
15 views

Is it possible to send email notification for Input (GO/NOGO) from a pipeline

There is User input functionality in the declarative pipeline which prompt on the Jenkins console but it's a headache to login every time on console and select the appropriate action. So I want to ...
1
vote
1answer
32 views

How to deploy SQL Script in DevOps culture and Rollback situation too?

How we can manage database part in DevOps environment/CICD pipeline, Here taking about the SQL Script. For Example any deployment where Insert and Update SQL's, If we setup in CICD pipeline then I ...
0
votes
1answer
46 views

jenkins credentials not used as expected when cloning git repo

I am trying to setup a jenkins pipeline for my IaC code validation, for this I'd like jenkins to clone a gitlab (hosted) repository, for this purpose I setup a credential using username / key type, i ...
1
vote
0answers
20 views

Recommended Design - Communication among Jenkins + Vault + App

Design A: CD tool communicate with Vault to fetch App secrets on its behalf Jenkins ( CD tool ) computes the Vault path according to the app/project & according to which environment the app will ...
1
vote
1answer
18 views

Kubernetes and Jenkins

I started building CI/CD pipeline using two Kubernetes clusters and one Jenkins. Two clusters are totally isolated as one is in the test environment and other in production. After searching from many ...
1
vote
1answer
114 views

jenkins stuck “Please wait while Jenkins is getting ready to work”

I've been trying to get a simple jenkins master node to start but it keeps getting stuck at the "Please wait while Jenkins is getting ready to work". My setup is nothing exotic: jenkins is installed ...
1
vote
1answer
20 views

Is there a Radiators for Jenkins and Bamboo?

I need to bring our companies rather old build radiators upto standard so it reflects what our current toolstack looks like. However, we're currently inside a weird limbo between using both Jenkins ...
1
vote
2answers
32 views

Dev-Ops with bitbucket

I want to improve my current dev CI workflow, I would like to create a server with ISPConfig and some kind of CI tool like Jenkins The catch is It has to all sit on 1 server, I see folks saying ...
-2
votes
1answer
25 views

How do I convert xml to a Jenkins Job?

I want to restore a deleted Jenkin's job. I had the JobConfig history plugin installed, but it does't have a restore option for that job. It only shows the xml file. I'm wondering how I can restore a ...
1
vote
1answer
50 views

Why does Jenkins safeRestart not wait for job to finish?

I have a simple pipeline job with a single stage: timestamps { node ("jenkins-slave-small") { stage('Stage 1') { sh "echo 'stage2 echo'; sleep 500s" } }...
1
vote
1answer
64 views

Jenkins Git Client Plugin Issue

Git Client plugin previously was version was version:3.0.0-rc(beta) which has security vulnerabilities so upgraded to latest version:2.8.6 (latest). But unfortunately all the dependency plugins were ...
4
votes
1answer
39 views

How to handle availability zones and failover with ansible? Is it even within the scope of ansible?

I am only getting started with ansible. I want to set up a new development infrastructure with the infrastructure as code principle. First thing I'll have to prove is a Jenkins instance with a few ...
1
vote
1answer
22 views

How to enable shallow clone using JCAC?

Another question that is related to this one. We try to configure the shallow clone using Jenkins Configuration As Code (JCAC). Although a configuration section is available, shallow clone seems to be ...
0
votes
1answer
14 views

How to set a shared-library globally using the JCAC plugin?

This Q&A is related to this one and is slightly different.
0
votes
1answer
46 views

How to set git-lfs as an additional checkout behavior using the JCAC plugin?

We are using the Jenkins Configuration As Code (JCAC) plugin to automate the jenkins configuration. One of the challenges is to set git-lfs as an additional checkout behavior. GitLFSPull has to be ...
0
votes
0answers
17 views

Jenkins - squish plugin error “could not connect to Squish server”

I am experiencing randomly the following issue when Squish tests are run on Jenkins: [...] Fri Sep 13 11:21:33 CEST 2019 Fatal Connecting to Squish server Detail: Could not connect to Squish server ...
1
vote
0answers
46 views

Anonymous “Agents can connect” Jenkins health check url?

I have a situation where I would like to spin up a distributed Jenkins build server with docker-compose (as part of local testing before deploying to OpenShift). Unfortunately the agents spin up, ...
1
vote
2answers
81 views

docker build throws UnknownHostException with jenkins dind slave + kubernetes plugin

So Jenkins is installed inside the cluster with this official helm chart. And this is my installed plugins as per helm release values: installPlugins: - kubernetes:1.18.1 - workflow-job:2.33 ...
0
votes
0answers
12 views

How to know event type in Jenkins Github Pull Request builded plugin?

I enabled the Github Pull Request Builder plugin from my jenkins, and there was jobs which trigger when new PR created. My current selection in GitHub enterprise are I selected for issue comments ...
0
votes
0answers
8 views

Provisining side containers for jenkins using ECS

We are successfully using the Jenkins ECS plugin to run many of our builds and tests. However, we have some jobs which require unit tests using mocks, which are often implemented using docker-compose ...