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
7
votes
0answers
184 views

Force Jenkins to reschedule parallel pipeline step as soon as node goes offline

Exactly this. In our environment, we're using GCE preemptible nodes and the Jenkins GCE plugin. As a consequence of this, it's highly likely (even expected) that a node will go away during the course ...
3
votes
2answers
6k views

Passing a jenkins credential (global) to a python script

I have a global jenkins credential and a config script that includes the line API_TOKEN = "Token XXX" For security reasons we can't keep the token in the script itself as its in version control. Is ...
0
votes
1answer
30 views

Alternating VC branches to build deployment artifacts for different environments

First of all, I apologize for the lengthy title -- by all means change it if you can think of a briefer one. We use Jenkins for CI. The app is written in Java, built with Maven (invoked manually in ...
1
vote
1answer
4k views

Jenkins shows “No changes in any of the builds.”

Description Jenkins job was made and configured to build release branch which already existed and had changes on it before first build. Job also monitors for push on BitBucket and starts building if ...
0
votes
1answer
186 views

Jenkins “internal” pipeline script producing errors when running sh steps

I've been experimenting with creating a new pipeline, using the built-in pipeline editor (i.e. not from SCM). The strange bit is that, when I run any sh step, I receive the following error: sh: 1: ...
7
votes
2answers
5k views

Triggering specific pipeline builds for monorepos in Jenkins

I'm in the process of converting multiple repositories into a single repository, our CI tool of choice is Jenkins due to the conversion of multiple repository structures into a single one 2 main ...
0
votes
0answers
77 views

Jenkins in Docker: How to manage project dependencies in an immutable server pattern implementation

I am planning to run Jenkins in a Docker environment, as part of a more complex SDLC pipeline. The expected benefits of running Jenkins in this environment is to have a canonical environment (...
2
votes
1answer
3k views

How to revert the Jenkins setup if plugin/Jenkins updates went wrong.

I would like to upgrade my Jenkins version(From 2.60.2 to 2.121.1) and some of my plugins. Currently, there are some jobs configured in it. I know there are some configuration changes needed for jobs ...
3
votes
1answer
312 views

Monitor Jenkins node/slave health

For a project i'm working on we need to create a Jenkins node in an AWS environment. For this we will work with the docker image which is available on https://github.com/jenkinsci/docker-ssh-slave ...
1
vote
1answer
260 views

Trigger a job and get the job log on the same page in Jenkins

I would like to trigger the job in Jenkins and also get the log on the same page. E.g. Kind of IDE where we can run the code in one side and get the output on the other side. Are there any tools ...
0
votes
1answer
1k views

Jenkins fails to start after a restart with “hudson.util.HudsonFailedToLoad: org.jvnet.hudson.reactor.ReactorException”

A week ago I had to restart our Jenkins, I did so via "jenkins url"/restart At first it was stuck on "please wait while Jenkins is restarting" for like...1.5 days, so I figured something was wrong. I ...
2
votes
1answer
350 views

How does jenkins publish over ssh store passphrases?

When I look in jenkins.plugins.publish_over_ssh.BapSshPublisherPlugin.xml I can see several entries, that have secretPassphrase populated with a string 44 characters long. By using hudson.util.Secret....
4
votes
1answer
5k views

How not to break Jenkins Pipeline when adding new parameters (declarative pipeline)

An Issue I have been struggling with is whenever I add a new parameter to a Jenkins Pipeline, the next job will not correctly get this parameter. This is especially an issue if those parameters are ...
5
votes
1answer
131 views

Jenkins: make a credential available to all users

I'd like to allow all of our organization's users to create new pipelines in Jenkins, via Blue Ocean... This requires a Github access token, meaning I have to either require each user to use their ...
3
votes
0answers
96 views

How to properly automate CM based on log events?

Let's say I have a number of tools like Docker bench security, some static security scanners, etc. Now I have let's say free Ansible edition (no expenses are considered). I have lots of logs, but not ...
1
vote
2answers
47 views

Code coverage versus functional coverage

We are working on a big Java project where we use JUnit tests. Our Jenkins helps us to monitor the code coverage and shows us the progress we make with this. But there seems to be something lacking ...
1
vote
0answers
33 views

Jenkins Github Organization Metrics

I am using Jenkins with the Github Organization item option. On Jenkins with freestyle projects or others I am able to get build metrics: success, failure, date, node and so forth. On the Github ...
6
votes
3answers
2k views

Where should we keep application properties file while doing build promotion using Jenkins?

We are using spring boot to develop Java backend services. application.properties file has the database configurations. We are deploying in 4 different environments (dev, test, UAT, and production). ...
5
votes
3answers
625 views

DevOps SOX Compliance

I'm coming from the dark side, compliance, and am looking to gain better knowledge on DevOps & how to implement SOX controls on these processes. I'm hoping to build a good knowledge base in order ...
0
votes
1answer
1k views

Jenkin - Monorepository build only changed folder

My Organization is keeping only one git repository in bitbucket, that hosts multiple projects under same branch, Now I have to automate build process using Jenkin. I configured a webhooks that invoke ...
0
votes
1answer
705 views

Run JMeter Test in Jenkins with Parameters

I have a JMeter test I would like to run in JMeter that have some parameters. I installed the performance-plugin for Jenkins to enable JMeter testing as described here: http://jenkinsci.github.io/...
0
votes
1answer
95 views

How do I achieve Continuous Integration and Continuous Delivery (Ci-Cd) via JMeter?

I have prepared the JMeter test script for my project and it tests (both functionally and performance wise) various Rest Apis. I have even coupled it with Jenkins on my local machine and also ...
2
votes
1answer
326 views

Jenkins Artifactory Integration - Custom Maven plugin creating dynamic version/build

I am currently working on a custom Maven plugin that generates a build artifact in the form of a zip file with a dynamic version or build number. The format of the file is something like target/[...
1
vote
0answers
200 views

jenkins - gitparam jobdsl - branchFilter

I want to fill branchFilter automatically on Jenkins using JobDSL plugin and language. This is the url of Jenkins Job DSL plugin: https://jenkinsci.github.io/job-dsl-plugin/#path/javaposse.jobdsl....
1
vote
1answer
221 views

CI/CD free for hobby side projects. Jenkins on Heroku as alternative, with ephemeral dyno

I have four side projects which are my hobby (NOT A JOB! NOT A WORK!). I work on that at night, when I have time and when I want to. All projects are javascript backend and frontend. Just ...
0
votes
1answer
235 views

Issue with parametrized pipelines during deployment by seed job

I use "seed plugin" for automatic deployment pipeline changes into Jenkins. Most of my pipelines which are being deployed by seed plugin job have build parameters (parametrized jobs). When seed job ...
3
votes
2answers
1k views

Enabling Github webhooks for multibranch jobs?

I'm setting up a CI scheme for a few projects, on Jenkins, using the multibranch plugin. Everything is working pretty nicely, but the obsessive in me always wants a bit more. Current situation: The ...
2
votes
1answer
2k views

Trigger downstream pipeline job via generated variable in upstream freestyle job

I have an upstream freestyle job and a downstream pipeline job. The freestyle job is triggered via a Bitbucket hook to run whenever code is pushed to Bitbucket. The freestyle job should capture ...
5
votes
2answers
1k views

How do I replicate a Jenkins setup via automation?

I have a Jenkins setup running in production. I want to automate the Jenkins setup (installation) along with all the jobs that are set up in Jenkins. One crude way I can think of is to copy the whole ...
3
votes
2answers
74 views

Deploy two independently hosted services in production at once without any downtime

I have two different services. Let's say Service A and Service B. Service B is dependent on Service A. Both code bases are hosted in separate repo in Bitbucket and code bases are maintained by ...
4
votes
2answers
5k views

Trigger jenkins pipeline job with Bitbucket hook

I'm missing something obvious here. Is there no way to trigger a Jenkins scripted pipeline job via Bitbucket hook? There's a bug out about it but it's been around for years with apparently no fix. ...
1
vote
1answer
328 views

Linking VSTS build with jenkins artifacts

So I have a local jenkins server building artifacts. I trigger this build through VSTS. When browsing through the logs when uploading the artifacts to VSTS from the local jenkins server I found this:...
0
votes
1answer
211 views

Running Docker images as Jenkins slave

I have a Jenkins Master running in Windows as Local system. I have Jenkins slaves running as Docker containers in a VM in the same Machine. Everything is working OK, I just want to know are there any ...
2
votes
2answers
4k views

Does Jenkins support cloning git submodules with “git@” (not “https”) URLs?

Had some issues with Jenkins when trying to checkout a project with Git nested submodules. It failed with a permission error when cloning the submodules: hudson.plugins.git.GitException: Command "git ...
3
votes
2answers
200 views

How do I autostart Jenkins agent machines?

To save money, I would like a large number of agent machines to be stopped and started up only when needed. Better yet, a single VM should be copied and launched on demand. I am using Google Cloud ...
1
vote
3answers
2k views

Jenkins declarative pipeline: use branch if it exist

I'm currently trying to atopt my declarative pipeline in the following way: I have multiple stages, some apply for all branches, some only for specific names. What I'm now searching for is a way to ...
0
votes
0answers
146 views

Is it possible to connect Jenkins Groovy Pipelines with Artifactory?

I have a Groovy Pipeline with Jenkins 2.32.1 I can read Pipeline definition from Pipeline script Pipeline script from SCM (Git, Mercurial or Subversion) Is there any method or plugin to read from ...
0
votes
0answers
916 views

Build Breaker plugin on SonarQube version 7.0?

It seems build breaker plugin is not supported in SonarQube versionn 7.0. Ref: https://github.com/SonarQubeCommunity/sonar-build-breaker So What are the alternatives I can use for this plugin ...
2
votes
1answer
381 views

Github plugin triggering to push event only for changes in specific branches

I am using Jenkins2 and GitHub plugin for triggering Push events. I have the next service (Jenkins Github): http://myjenkinsmaster/github-webhook/ I also have 3 branches: dev, stage, master which ...
1
vote
2answers
142 views

Is there a reason not to use Bamboo to run repetitive tasks instead of cron?

Is there a reason it would be a bad decision to use Bamboo ( or Jenkins ) to execute a scheduled task ( say every 15 minutes ) rather than using a cron job?
1
vote
1answer
796 views

Should Jenkins apply round robin if nodes have the same label?

In Jenkins it is possible to assign labels to nodes, e.g. somenode to nodes and then one could call somenode in the pipeline and then Jenkins will run the build on some of the nodes. Problem The ...
3
votes
1answer
3k views

How can I push multiple containers, created with docker-compose, to a registry

I am using Jenkins pipeline and run a shell command to bring up my linked containers for testing. Once the testing is complete, I want to push the containers to a registry (I would prefer AWS ERC, but ...
4
votes
1answer
348 views

How many builds does jenkins need to run before it has estimated times?

We just updated our Jenkins to v2.207.1 and our build estimation times on pipeline jobs have stopped showing up. Rather than a blue bar that when hovered over shows an estimate, we are now seeing the ...
0
votes
2answers
2k views

How to use Jenkins Pipeline and choose triggers for email notifications?

Before Pipeline, I used Email-ext plugin to define triggers for sending emails (on first failure, and when back to success). But in the Pipeline version, I can't control the triggers, I can only "...
0
votes
1answer
107 views

Jenkins, Jenkins SSH Plug-In, EC2, “ubuntu” user and “www-data”

I am trying to install Jenkins to achieve a Github -> EC2 instance folder pipeline. So far everything works well when I target an empty folder... however, when I target my production folder owned by ...
1
vote
0answers
81 views

aws ecs jenkins on-demand agents not terminating after use

Looking for help troubleshooting an intermittent issue; We run an Ubuntu version of Jenkins on AWS infrastructure using on-demand spot ECS instances. I've noticed that while most agents spin down and ...
6
votes
1answer
12k views

sshagent and jenkinsfile

I am new to Jenkinsfile. I have previously configured my Jenkins job from GUI, and we are now upgrading our server to use Jenkinsfile. My job contains a section which needs to SSH to another server. ...
1
vote
1answer
3k views

Jenkins returns 502 gateway error and (104: Connection reset by peer)

So my server got maintenance schedule from cloud provider, after maintenance process, the server rebooted, then my jenkins cannot be accessed from the web anymore, I am using nginx and checking the ...
1
vote
1answer
2k views

Jenkins pipeline + Docker integration

I have a CI server which has Jenkins installed in the host it self, and I want to run builds and tests inside Docker containers. Until here it works like it should, but I also want to deploy ...
7
votes
1answer
5k views

Jenkins Health Check URL

I'm planning to supervise services by periodically checking if they are up and running, Jenkins is our central orchestration tool and must be running with near zero downtime. How can I check health ...