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
6 views

Jenkins | How to trim (or preferably customise) the console output content that is sent as email content post execution of a build?

I have configured email notification on my jenkins build which triggers email post every build to recipients with the console output content as the email content. Currently it looks something like ...
1
vote
1answer
29 views

Jenkins Pipeline steps that run before Jenkinsfile

I'm just starting to get my toes wet with Jenkins and CI/CD. I've built a set of static analysis tools and corresponding configurations I want to run before a branch's Jenkinsfile is even considered. ...
0
votes
0answers
9 views

How to read array and loop server selection and deployment

I have configured jenkins parameter deployment job using active choices parameterize plugin. In my dev server section have two servers called, 192.168.94.139, 192.168.94.140 I want to read this ...
1
vote
1answer
21 views

Run scripts which are stored in GitLab from Jenkins

I have configured Jenkins Build Jobs and Deployment Jobs from using Jenkins shell. But I put all the commands in Shell to execute. Can I store those commands in GitLab and execute from jenkins?
0
votes
0answers
24 views

Background process not running after executing shell script

When I execute below script from cli it is working and process in background also running. But when i try to execute the same wcript from ansible all the tasks are successfully executing but ...
1
vote
1answer
26 views

Groovy script to show only selected item

I used jenkins Active choices plugin and Mavenmetadata plugin to build above UI. When I click a radio button particular version only should be display. How can I write a groovy script to fulfill above ...
0
votes
0answers
22 views

curl: (6) Could not resolve host error from Gitlab Runner

I'm trying to trigger jenkins job after deploying a pipline I added this part in .gitlab-ci.yml but i got error when running "curl: (6) Could not resolve host" after_script: - echo "Starting ...
0
votes
0answers
10 views

How to spawn on-demand cloud batches with GitLab similar to Jenkins EC2 plugin?

While you need your build agents/slaves just to execute a build, infrastructure as code allows you to get disposable build/test machines which thus require zero maintenance on demand. For example, if ...
0
votes
1answer
42 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 ...
0
votes
2answers
22 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
33 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
23 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
29 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
11 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
19 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
34 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
22 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
12 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
0answers
24 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([...
3
votes
1answer
52 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
40 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
9 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-...
2
votes
1answer
154 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
27 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
24 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
3answers
152 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
89 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
17 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
417 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
43 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
182 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
100 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
30 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
30 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
67 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
121 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
31 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
0answers
99 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
101 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
33 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
48 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
31 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
288 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
107 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
35 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
35 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 ...
1
vote
2answers
126 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
48 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
65 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
814 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 ...