Stack Exchange Network

Stack Exchange network consists of 174 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
4 views

Jenkins Kubernetes Rancher, how to do a CI with these tools

I'm new with Rancher and Kubernetes and I have some know how of Jenkins. The point is that I don't know how to do a continuous integration of my apps with Rancher and Kubernetes. Is good to use ...
1
vote
2answers
24 views

post jenkins build console output to slack

I know how to notify build status using the slack notification plugin. I can seeproject - #buildnumber Success after 1 min 18 sec (Open) in my slack channel. But I want the console output to be sent ...
1
vote
0answers
11 views

Passing variables between scripts in a Jenkins Pipeline

I have a declarative jenkins pipeline that looks like the following: pipeline{ agent { ... } stages { stage("Provision EC2 Instance and Set ENV Variable"){ ...
0
votes
0answers
9 views

Jenkinsfile equivalent in Azure repos

We have our source code in GitHub. We use Jenkins for CI. We had written a Jenkinsfile in the Github repos and used GitHub plugin for Jenkins. The plugin would scan the repos and then Jenkins would ...
0
votes
0answers
30 views

Jenkins vs Azure DevOps Pipelines

I've been doing some research on the Azure DevOps solution that Microsoft recently unveiled. Some background, I've been using Jenkins for years, and recently started exploring the containerisation ...
1
vote
1answer
28 views

Manage Docker images and their child images in a pipeline

I have various Jenkins agents images and I am trying to add automation to it. I have a base java image called agent-base and those who inherit from that one. Eg: agent-ansible, agent-terraform and so ...
0
votes
1answer
35 views

Parallel stages running on same agent in Jenkins declarative pipeline

I've been using a Jenkins pipeline with a parallel step for testing like this: pipeline { agent { label 'php' } stages { stage('build') { steps { ... ...
1
vote
2answers
47 views

Is there an alternative to the Jenkins dir() to change to a directory on a Docker container?

Here's my current set-up: Jenkins Master running in Docker on an Ubuntu 18.04 host. A Node running Ubuntu 18.04 with Docker installed. Desired job spins up docker containers on the node which build ...
1
vote
1answer
17 views

Always execute post statement in a jenkins pipeline when a conditional statement is met

Although it seems counterintuitive, I would like to execute an always statement when a conditional is met. In my pipeline, my post statement should always destroy my AWS CloudFormation Stack if a ...
0
votes
1answer
13 views

Pass parameters to jenkins job with the help of userContent

I am trying to create a so-called proxy page which will accept user parameters in Jenkins and then pass them to url for running pipeline with specified parameters. I am trying to achieve it with the ...
0
votes
2answers
36 views

Jenkins pipelines vs matrix vs multiple jobs for multiple branches across multiple platforms

I've never done any CI work before, so I'm struggling to decide how to set up Jenkins as my first project at my new job. From what I (sort of) understand: Jobs are the generic work unit Pipelines ...
-1
votes
1answer
95 views

Jenkins executes Selenium test in headless mode while use `Jenkins as Service`

I have recently installed the Jenkins on Windows 10 Machine (Jenkins as Service) and configured one Maven Project (Selenium project which open chrome browser and executes some testcase). If i build ...
1
vote
0answers
29 views

Prevent new jenkins job scheduling builds for previous branches

I have a job set up to build when a change is pushed to Bitbucket. The first time the job runs, it'll get kicked off by a new push. The log will then state that it's seen X number of branches in the ...
1
vote
0answers
89 views

In Jenkins when to use SSH site and when to use a node?

What are the advantages of each option? What are the disadvantages? Is there a best practice in this? I fail to see any critical differences between them. In my current place of employment we use ...
0
votes
0answers
37 views

Use Traefik with Jenkins don't work

I'm trying to use Traefik with a Jenkins container, but it does not work. This is my docker-compose.yml: version: '2' services: jenkins: image: bitnami/jenkins:latest # ports: # - '...
3
votes
1answer
31 views

Bamboo equivalent to Jenkins color

I'm currently building out a radiator screen to bridge a few different areas of our CI\CD pipeline, pulling in metrics as well as build statuses. We're also migrating from Jenkins to Bamboo In ...
0
votes
0answers
20 views

How to run script from python virtual environment via Jenkins server?

I am using tavern coupled with pytest to automate restful apis. I have configured jenkins on my local machine but the jenkins build fails when I try to replicate the same steps using which I ...
0
votes
0answers
42 views

Best alternative to deploy/update docker using Jenkins for CI/CD

I'm running Jenkins as a docker image, and I'm looking for the optimal way to deploy new (or update existing) docker images (example staging and prod environment). I've founded this example : https://...
0
votes
0answers
22 views

Managing Cloud Formation Templates in SCM and S3 Buckets

I have multiple projects with a CFT stored in Git. However, these CFT files are too large (exceed Amazon's 51k byte limit) and have to be stored in S3. What is an effective method that would allow ...
1
vote
0answers
124 views

Jenkins input pipeline step - Give submitter as a group

I could find that “submitter” parameter accepts individual user IDs and external LDAP groups. But “Jenkins-local” groups defined by any authorization strategy are not working. I have a limitation not ...
1
vote
1answer
43 views

How to access environment variable in post-build access for jira plugin

I installed JIRA Plugin for the jenkins. It add some action in Post-build Action menu. One of the action is JIRA: Update relevant issues. When I try to access Environment Variable, it gives error. ...
0
votes
0answers
33 views

Can't access jenkins in AWS EC2 server

I installed jenkins on a AWS EC2 server, it can be accessed by curl at local host: but cannot be visited from remote. I'm sure that 8080 port had been added in firewall policy both aws console and ...
1
vote
1answer
33 views

Does anyone have resources, tools, ideas, for automating database create, update, modify, delete

I've been tasked to find a way to automate promotion of database creation, changes and other modification related to application changes in a devops world. My databases include MS SQL, Oracle, MySQL ...
0
votes
1answer
57 views

Restart agent for each build

How do I configure jenkins to restart the agent for each build? I tried to use "launch method: launch agent via execution of command on the master" in combintation with "availability: take this agent ...
1
vote
0answers
34 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 ...
0
votes
0answers
27 views

setting PATH variable in jenkins global tools configuration

I am trying to add an ansible installation to the Global Tool Configuration using the shell auto installer option to pip install it. Is it possible to add the tool home path to the PATH variable for ...
1
vote
1answer
270 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 ...
2
votes
1answer
204 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
67 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 ...
1
vote
1answer
34 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
57 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
35 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 ...
3
votes
1answer
40 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 ...
0
votes
0answers
11 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=${...
1
vote
3answers
196 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 ...
0
votes
0answers
23 views

Jenkins Fatal Exception

I have installed my jenkins on Linux machine with 2.73.1 version. Now my most of the jobs are getting failed due to same reason. AU bin/jobs/Sync.class A .settings A ....
0
votes
0answers
102 views

Mono Repo Structure with Codegen and CI

I would like to create a monorepo example as a demo for my boss with several frontend and backend projects. Currently we have mostly Spring APIs and Angular on the front-end. We are using Swagger-...
0
votes
0answers
13 views

Jenkins Custom Configxml

I'm building a custom Jenkins docker images , so I need some custom configuration at config.xml of Jenkins master . For example ; <docker-registry-url> <url>https://registry....
3
votes
1answer
83 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 ...
0
votes
0answers
86 views

How to lock resources when a Jenkins agent has multiple executors

At work we are transitioning from Bamboo to Jenkins. Currently we have multiple agents (Windows and macOS) each having a number of mobile devices attached (Android and iOS). Historically, Bamboo ...
0
votes
0answers
12 views

Kubernetes Plugin on Jenkins - Is there a way to set the number of slave pods to maintain?

I know that I want to always have n number of slave pods available using the Kubernetes plugin with Jenkins. Is there a way to set this?
1
vote
1answer
47 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 ...
1
vote
1answer
67 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
135 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 ...
0
votes
0answers
92 views

Running a powershell script via Jenkins on a Linux host

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

How add Dependencies without DEP?

I did create go project. I did test on local developer PC: all did work. Did upload src to GitLab. After I did want to create CI_CD (gitlab/Jenkins/Artifactory) with putting on target server. Go App ...
3
votes
1answer
146 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
180 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
35 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 ...
1
vote
0answers
68 views

Stuck! 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 ...