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.

130 questions with no upvoted or accepted answers
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 ...
4
votes
0answers
557 views

API to fetch Quality Gate Failures

In our Jenkins pipeline, we have a step for Sonar analysis (configured with QualityGate profiles) and the current process is: Sonar scanner runs as part of the pipeline step and initiates a task ...
3
votes
1answer
313 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 ...
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 ...
3
votes
1answer
449 views

Globally configuring Gitlab with Jenkins in docker container environment

I have Jenkins users authenticated by OpenLDAP and also gitlab CE instance authenticated by the same OpenLDAP. And all the three are running in three different docker containers in the same network. ...
2
votes
0answers
20 views

Update Service Hooks in TFS2015 through Jenkins Job

Is there a way to modify what branch a service hook is monitoring through a Jenkins job? Our build jobs within Jenkins are triggered via service hooks within TFS. When we branch, inevitably we ...
2
votes
0answers
328 views

Can I use the Jenkins Rest API with user input?

I want my Jenkins Pipeline to have a user input step where it posts to a slack channel and waits for user input then uses the input to user enters (button in the slack message). So at the input step ...
2
votes
1answer
254 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 ...
2
votes
1answer
1k 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 ...
2
votes
0answers
170 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 ...
2
votes
0answers
204 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 ...
2
votes
2answers
4k views

How can a Windows server be a slave to Jenkins running on Linux when there in an error installing the slave-agent.jnlp file?

I want to have a Windows Server 2016 slave node with a master Jenkins (version 2.89.2) running on Red Hat Enterprise Linux 7.x. I am trying to install the slave-agent.jnlp file from the Jenkins web ...
2
votes
0answers
511 views

Duplicate Class Definition when calling library code

I've got a jenkinsfile which is breaking on a second call to a custom library step. These calls are made inside another custom library step. I'm not sure if this is something not supported or what. ...
1
vote
1answer
48 views

Jenkins Email notification for multiple builds

I need suggestion for Jenkins project (multi-conf or pipeline) and plugins that will fit my work. I have 10 "flavors" of the product, so I must build 10 times every time I commit to the repository (...
1
vote
1answer
19 views

How to use comments to trigger rebuilds of Bitbucket pull-requests on Jenkins multi-branch pipeline

I have successfully configured a Jenkins multi-branch pipeline to build my project which is hosted on Bitbucket. I have separate pipeline requirements for the "develop" and "release" branches, and for ...
1
vote
0answers
23 views

Problem with build jenkins on Dokcer Container with Ubuntu

I Have this Dockerfile and I want build container (based on Ubuntu) and install on him Jenkins. FROM ubuntu:18.04 RUN apt-get update RUN apt-get install -y --no-install-recommends \ gnupg2 \ vim ...
1
vote
0answers
11 views

Commit messages from Submodules to Jenkins Change Log

I have a project with 3 submodules that are updated whenever that project is built and the project is built mainly for an installer (which is not in a submodule). Not a lot of changes are made in the ...
1
vote
0answers
22 views

Set global repository access to GitLab via GitLab connections and Gitlab OAuth

I am trying to configure a secured Jenkins server in a company network where GitLab CE is already running. I have set the access control and the authorization system in Jenkins via the GitLab ...
1
vote
2answers
288 views

Jenkins Shared lib not working properly

Recently I tried to add Shared Libraries to my Jenkins instance to make it easier to maintain all code that runs in each project. I have a repo myorg/jenkins Inside of it I have Jenkinsfile and ...
1
vote
1answer
53 views

Best practice for Jenkins docker to deploy to other container

I'm currently experimenting with docker with the potential of using it in future professional projects and am a bit confused about best practices. In my experimental setup I have three docker ...
1
vote
0answers
22 views

jenkins-x with “jx” installer: enforce https instead of http

My current kubernetes setup has no open http port, for security reasons. But https is open and has a valid certificate. Still the jx installer of jenkins-x seems to require http in order to complete ...
1
vote
1answer
55 views

Is there an alternative to setting up the whole project workspace in a Jenkinsfile

I have a ROS project for which I'm looking to use Jenkins to set up a CI system. The project has a large number of dependencies which take a long time to build (they can't be installed on the build ...
1
vote
0answers
15 views

Flow for Confluent Plugins on Kubernetes

Our team is developing Confluent/Kafka Source Connector-plugins. Do you have any ideas on how to install/upgrade the plugins? How is the flow (git -> Jenkins -> running Source Connector) supposed to ...
1
vote
0answers
61 views

Define views in Jenkins Multibranch pipeline jobs

Is it possible to somehow define views in Jenkins multibranch pipelines? I'd like to have a second view (after the Branches (NUMBER)), that shows only enabled branches. But I also want to keep the ...
1
vote
0answers
79 views

Jenkins - IBM UrbanCode - AWS & Azure cloud

For continuous delivery, we do manual deployment after generating binary artifacts from Jenkins pipeline(in an automated process). Further, for continuous deployment, we would like to use IBM ...
1
vote
1answer
105 views

Azure DevOps/Pipelines seed job equivalent?

I'm looking at moving to Azure and using Azure Pipelines (I've used Jenkins before now) - I plan to deploy to Azure Kubernetes Service and store my Docker images in an Azure Container Registry. Using ...
1
vote
1answer
165 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. ...
1
vote
1answer
836 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 ...
1
vote
2answers
87 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
3k 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
126 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 ...
1
vote
0answers
77 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
532 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....
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 ...
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 ...
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
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 ...
1
vote
0answers
133 views

Jenkins' Android Emulator Plugin cannot find the JDK that it installed itself

I'm trying to use the Android Emulator Plugin to automate the installation of the Android SDK, for the purpose of building Android apps. The plugin supports this capability and it would allow for ...
1
vote
1answer
2k 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
1answer
13 views

Is there a way to set build parameters outside of the pipeline directive?

My build parameters are defined in my jenkinsfiles All builds run on container slaves on google kubernetes engine cluster This means users need to wait for a container to start before anything ...
0
votes
2answers
23 views

Jenkins pipeline running using containers on an orchestration platform

I have a specific implementation of jenkins on docker. My requirement is to start slave containers on demand and only when they are needed and then stop them after the pipeline has ran. I have the ...
0
votes
1answer
35 views

Can/should I use Jenkins to monitor whether a website is up and send out an email if it's down?

I'm trying to set up a way to constantly monitor a website that is built and deployed via Jenkins. A simple curl command would tell me if everything is OK, but how I would set up a job to do this ...
0
votes
1answer
21 views

Is it possible to pass environment variables to multibranch pipeline job in a time of generating it via DSL?

I want to pass some environment variables in the time of generating the multibranch pipeline, so upon the build start, it will already have these variables. The only thing I found was this envInject ...
0
votes
0answers
7 views

Execute a step after an approval step, using “Promoted Builds Plugin”

In my work, jobs and promotion steps are configured as follows: As a first case, Development requests a deployment of a new version of an application. After that, comes the approval stage, which is ...
0
votes
0answers
14 views

Prevent replay of old builds

I have a Jenkins job that is triggered whenever there is a push of any branch with a new git tag satisfying a particular pattern. What I have found is that when I delete old builds (using the Jenkins ...
0
votes
0answers
22 views

Pushing to bitbucket from within container using ssh in Jenkins declarative pipeline

I am working on a project where the build generates a file that is needed to keep some ids consistent, therefor I need to be able to make a commit and push it to a Bitbucket repo from within the ...
0
votes
0answers
20 views

How do I run a SonarQube Google Cloud integration?

In my current project with a client, I am building a staging system. For the static test I have planned SonarQube as a corresponding solution. Unfortunately the customer is using his system within the ...
0
votes
0answers
5 views

Running COM object from Jenkins as a Windows service

I am trying to set up a Jenkins slave running as a Windows service, so that it starts automatically and can be managed remotely for updates, restarts, etc. This works well but I am not able to build ...
0
votes
1answer
21 views

How to clean up old images in docker registry with jenkins

I have a jenkins multi branch project, that builds on every commit and pushes the image to our private registry: docker-reg:5000/<project>/<branch>:latest docker-reg:5000/<project>/&...
0
votes
1answer
27 views

How to add my own columns to Jenkin's Dashboard

I want to add my custom columns, and I also want to add some popups on those columns in Jenkins dashboard. How does one add new columns, which are not present in job's configuration page?