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

JIRA plugin on jenkins not set the JIRA_ISSUES variable

I have jenkins job for with GitHub Pull Request Builder. In build, I added first step to set the JIRA_ISSUE variable. JIRA: Add related environment variables to build Extracts JIRA information for ...
1
vote
1answer
7k views

when does currentBuild.changeSets in Jenkins gets filled?

Some background: The project I'm working on is in SVN. Very very large. A lot of tests are running on Jenkins. I want to implement a new tests which should be executed only if files in certain ...
4
votes
1answer
7k views

Jenkins Pipeline “Build when a change is pushed to GitLab”

I have a Jenkins declarative pipeline that is ran via a webhook from GitLab whenever a change is pushed to my repo. In Jenkins, I have the following trigger option selected: Is there a way for me to ...
0
votes
3answers
2k views

System monitoring and reporting with Jenkins

Are there any plugins that would enable me to distribute system monitoring and reporting via Jenkins, if I provided it with data in a required format. E.g. I would like to write a simple script that ...
3
votes
2answers
81 views

How to use Jenkins to manage a repository from Github with a submodule from Bitbucket?

For my Jenkins build, I need to manage a Github repository to automate building a project. However, the issue is that this repository needs to pull a submodule from Bitbucket. This requires two ...
1
vote
1answer
788 views

Jenkins Pipeline GitLab API Credentials Management

I have a Jenkins pipeline that executes a build whenever a change is pushed to the appropriate branch. Jenkins uses an API token to authenticate with the GitLab server and checkout the repository. ...
1
vote
1answer
263 views

Jenkins slave not able to find dotnet

When I check for dotnet version it is throwing an error D:\jenkins\workspace\csharp-windows-test>dotnet --version 17:58:06 System.ArgumentNullException: Value cannot be null. 17:58:06 Parameter ...
6
votes
1answer
2k views

In Jenkins, how can parameters that contain spaces be referenced?

Google has failed to even lead me to a proper answer as to why spaces are permitted in names of Jenkins parameters, let alone how to reference them. Assuming it's not just a major oversight, how does ...
1
vote
2answers
66 views

Docker build not picking up built jar?

I am new to the DevOps world but I am trying to build a pipeline using Jenkins and Docker. I have Jenkins building the docker image by: docker build -f Dockerfile --build-arg jenkins_jar_file=${...
9
votes
3answers
9k views

Best Practices for a multi environment deployment using Jenkins

I have 3 environments, each on their own Virtual Network with their own configurations. Do I need to have 3 separate instances of Jenkins if I am to do Continuous Deployments on each of the ...
3
votes
1answer
5k views

Jenkins Job vs Jenkins Pipeline

BACKGROUND : We have one Selenium automation project which is shared in BitBucket repository. Project is maven project. we have 10 testng.xml files for all modules OVERVIEW: Now we want to trigger ...
1
vote
1answer
210 views

Jenkins Node Image at Kubernetes Plugin

I'm working on huge pipeline with different development environment (python, node, java). For manage this CI pipeline our teams using Jenkins at Kubernetes environment. I want to give PipeLine node ...
2
votes
1answer
354 views

Jenkins Pipeline job - remember previous values

I have a Jenkins Pipeline which uses Terraform and create a compute environment in GCP. There are like 5 questions in the build i.e. 1) GCP Project Name 2) Number of RHEL Servers 3) RHEL Server names ...
1
vote
2answers
2k views

Aggregating JUnit test results from multiple projects

We have a Jenkins setup which utilizes multiple projects for running various suites of tests for our application. There is one 'parent' project, which is triggered by Git commits. This project in ...
1
vote
0answers
690 views

Running a powershell script via Jenkins on a Linux host [closed]

I have a powershell script cloned into my workspace from a bitbucket repository. If I login to the Jenkins server cli I can run it by doing cd /var/lib/jenkins/workspace/powershell pwsh ./psscript....
3
votes
1answer
380 views

Jenkins hangs on Windows CMD build that has GUI

I am attempting to automate imports and exports of Oracle's PeopleSoft Application Designer. It is a GUI program but it can operate in the windows command line for certain tasks. This project has ...
2
votes
1answer
2k views

jenkins fatal: ambiguous argument, unknown revision or path not in the working tree

In jenkins pipeline, execute git command : git log --format=%B --no-merges origin/master..origin/${currentBranch} jenkins output error : fatal: ambiguous argument 'origin/master..origin/XOPS-...
0
votes
1answer
43 views

Advice needed - automate everything or only new/current projects

I watched Klaus Ita Keynote on FreeCodeCamp YouTube channel about devops and got inspired. In previous job we had very good deployment system. We begun with Jenkins and pulling source from SVN, and ...
2
votes
0answers
248 views

Using docker cloud from jenkins running on local osx docker

Hopefully someone can help, I've found lots of information online but as I'm brand new to both jenkins and docker, I'm having a hard time sorting out which suggested solutions happen on the what ...
2
votes
1answer
1k views

Should I run CI on merge state or HEAD of branch in a PR?

I'm using Jenkins Pipeline with Github for our CI purposes and I'm trying to think what the strategy should be for what is checked out to run. Jenkins provides three options when discovering pull ...
8
votes
1answer
227 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
8k 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 ...
2
votes
1answer
41 views

Alternating VC branches to build deployment artifacts for different environments

We use Jenkins for CI. The app is written in Java, built with Maven (invoked manually in local dev environments and by Jenkins), deployed on various Tomcat servers. Nothing unusual about the ...
1
vote
1answer
6k 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
217 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: ...
8
votes
2answers
8k 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 ...
2
votes
1answer
4k 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
515 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
442 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
2k 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
444 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....
6
votes
1answer
8k 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
196 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 ...
5
votes
1answer
109 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
48 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 ...
2
votes
0answers
40 views

Jenkins GitHub Organization Metrics [closed]

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
3k 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
928 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
2k 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
963 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
134 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
370 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/[...
2
votes
0answers
254 views

jenkins - gitparam jobdsl - branchFilter [closed]

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
272 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 ...
3
votes
2answers
2k 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 ...
6
votes
2answers
2k 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
77 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
1answer
6k 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
366 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:...