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
0
votes
1answer
3k views

Deploy war/ear to a container' marked build as failure

I have Jenkins installed in my system, on which the following are installed: Maven Integration Plugin Deploy to Container Plugin Ant Plugin Copy Artifact Plugin GitHub plugin GitHub Branch Source ...
1
vote
2answers
103 views

How to trigger Jenkins job by deploying git pipline using webhook?

I have a Jenkins job which I want to trigger after deploying pipeline in Gitlab, Is this possible with webhooks or some other way?
0
votes
1answer
42 views

Push specific changes (defect fix) and not feature changes

I am new to DevOps. I am using Jenkins and GitHub for salesforce deployment. Setup We have a develop branch. Feature branches are created out of it. When merged to develop, the deployment to the ...
0
votes
1answer
363 views

packge.json not found while executing on Jenkins

My Dockerfile looks something like this. FROM mhart/alpine-node:8.11.3 RUN mkdir -p /app COPY ./ /app WORKDIR /app/build RUN yarn global add serve CMD ["serve", "-l", "3000"] EXPOSE 3000 And ...
1
vote
2answers
508 views

How to make a Jenkins API call when using “Log in with Google” as security?

Jenkins API calls are generally made using a username/password combination, or other set of credentials. We have a Jenkins instance using "Log in with Google" authentication, meaning no credentials ...
0
votes
0answers
133 views

Jenkins Code Coverage (Cobertura) overview display

I have a Matrix build A which produces a coverage.xml in cobertura format in one of its child builds, A1. I want to see an overview of the code coverage in the Dashboard View that includes build A and ...
0
votes
0answers
31 views

Configure Jenkins to take Artifact and Deploy Server Information

I have configured Frontend and Backend of a project in Jenkins. Frontend using npm and Backend using maven as build tools. For repository management nexus has been configured. Now I want to do the ...
0
votes
1answer
352 views

Jenkins poll scm issue- Multiple jobs configured in single repo

We configured multiple jobs in single repo and enabled poll scm. The build is not triggerring whenever checkins happened. Let me know is it possible that poll scm will work for multiple jobs in ...
1
vote
1answer
476 views

How to use Jenkins github user credentials to access github api in my script?

I have a Jenkins job foo that works perfectly well. It is authenticated with jenkins_foo_user. It is able to clone the repo and checkout the right branch. In my codebase, I have another script - ...
0
votes
0answers
253 views

trigger a build on a specific branch when a branch is deleted?

Using multibranch pipelines with webhooks. When I delete a branch my jenkins projects immediately update and prune the branch. This is great but could I trigger a build of master branch when another ...
0
votes
1answer
724 views

Jenkins Pipeline project can't when on branch

I want to use when on branch condition. The Jenkinsfile is like this stages{ stage('Checkout project branch master'){ steps{ withCredentials([...
6
votes
2answers
2k views

How to make Jenkinsfile credential visible to many stages

In Jenkinsfile, I want to make an ssh key visible to all stages in the pipeline. From the official document, I learned that: environment directive is used to defy environment variables for used ...
2
votes
1answer
152 views

How to make the Jenkins agent build then start the server?

I want the Jenkins agent to build and start the server. I do this by specifying how to build and start the server in the Build step of the project configuration in Bash echo "Installing dependencies"...
0
votes
0answers
41 views

Jenkins VCS Plug in Snapshot

I have an issue where i make a snapshot of a slave VM after is completed the slave is connected but the workspace is not refreshed in the VM. pipeline{ agent none stages { stage('Pre-...
1
vote
1answer
3k views

Jenkins-Ansible: executing ansible playbook using jenkins pipeline script

We developed declarative pipeline code to execute an Ansible playbook. We tested the playbook from CLI and it is working properly. My playbook actually performs some shell commands on remote server. ...
0
votes
2answers
47 views

Change variable inside of project. Jenkins, docker, kubernetes

Because I am new in the DevOps, I don't know where I need to apply the changes to correctly run the project. The structure: Git → Jenkins → Docker build -> Kubernetes (deploy) Is it better to make ...
0
votes
0answers
115 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 ...
3
votes
3answers
4k 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
1answer
4k 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"){ ...
2
votes
2answers
192 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 ...
8
votes
3answers
10k 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
2answers
89 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 ...
1
vote
1answer
4k 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
6k 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
2answers
145 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
97 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
637 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
834 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
91 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 ...
2
votes
1answer
283 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
473 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
45 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
65 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 ...
2
votes
1answer
2k 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
1k 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
174 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
43 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 ...
3
votes
2answers
1k 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 ...
2
votes
0answers
184 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
5k 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
6k 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
1k 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
69 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
671 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
194 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 ...
4
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 ...
0
votes
2answers
56 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=${...
7
votes
3answers
7k 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
3k 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
19 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?