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
0answers
19 views

JAVA home give me wrong value on Jenkins node

I have Jenkins node with below configuration for JavaPath: /usr/java/jdk1.8.0_131/bin/java I wrote a simple Jenkins job which does the following: #!/bin/ksh echo "JAVA_HOME=${JAVA_HOME}" echo $PATH ...
0
votes
1answer
16 views

Using Jenkins declarative when conditions in scripted pipelines

Jenkins declarative pipelines offer very convenient when directive with conditions like changeset. Is is possible the this changeset and other when conditions in a scripted pipeline?
0
votes
1answer
10 views

Is it possible to set role in FreeIPA to use for applications as Jenkins, Github?

LDAP in FreeIPA, it can create groups, roles and set permissions. Applications such as Jenkins, Github also has roles feature. 2 questions: Can roles feature be used in every application? (At least ...
1
vote
0answers
22 views

Is it possible to apply HTML CSS on Jenkins System Message thought curl command?

following this link: Stack overflow issue - 52521178, I used the curl command, but I was wondering how can I add the tag inside the command. for example: <h1 style="color:#1a1aff;font-size:"5";">...
1
vote
2answers
20 views

Using Jenkins gitlab token to make an API call

From inside a Jenkins pipeline, I want to create a merge request on gitlab def toJson = { input -> groovy.json.JsonOutput.toJson(input) } def body = [ private_token: "...", ...
1
vote
1answer
14 views

Unable to Trigger Downstream Jenkins Job Based on the Promoted Builds Plugin

I have a request from a user who is currently using the Promoted Builds plugin for Jenkins. This user would like Job_B to be triggered when a build from Job_A has been promoted. In Manage Jenkins > ...
0
votes
0answers
10 views

Jenkins Extensible Choice using system groovy Choice parameter to get ec2 instance not working

While I am trying to get the instance-ID list from aws account using Extensible Choice using system groovy Choice parameter it gives no error also there is no output. Below is the script that was ...
-1
votes
0answers
34 views

Is there API to add to update Jenkins title

we have a DB table which stores a description for each Jenkins server. Is there any API or CLI which I can use to update "System Message" in the Jenkins system configuration?
0
votes
0answers
29 views

Jenkins job failing for sql backup

I was trying to automate the database backup from jenkins. I have a powershell script which will take care of the backup activity. From command line i was able to execute the script and it was working ...
1
vote
2answers
36 views

Download an artifact from Nexus to Jenkins

I use ssh username and private key auth to download sources from Git, build the artifact and deploy it to my nginx server. Now I need to download an artifact as a zip file to Jenkins agent, prepare it ...
0
votes
0answers
20 views

Geting and put all secret in an env file on jenkins from Hashicorp vault

Currently we are building a jenkins deployment pipeline. On those build, for secret management we are using HashiCorp Vault. For getting secrets we use the hashicorp-vault-plugin. The problem is we ...
0
votes
0answers
15 views

Pipeline for deploying WordPress instance with a custom plugin from Github actions

I'm not a dev ops expert so I mat mixing up some basic terms. I want to setup a pipeline that on creation of a pull request in GitHub on my WordPress plugin repo, GitHub action will create a ...
1
vote
1answer
20 views

Jenkins view is getting duplicate every container restart

I'm using Jenkins container and facing an issue that each container restart, the RunningJobs getting duplicate: Any idea what is the root cause and how can I avoid it?
1
vote
2answers
30 views

Jenkins - load scripted parameters from a SCM repo

I am using all kind of parameters like "Active Choice Parameter", "Active Choice Reactive Parameter", "Active Choice Reactive Reference Parameter" that have a lot of Groovy code within them. My ...
1
vote
0answers
27 views

Jenkins trigger build if shared library changes

I have Jenkins Pipeline job define in my git repo as. // File: deployment/jenkinsfiles/staging/Merge @Library("my_shared_lib") _ import com.company.myteam.Constants pipeline { agent { label "...
0
votes
0answers
19 views

Docker login to nexus repository within docker stack under Docker Desktop for Windows

I have a docker stack which contains jenkins master, jenkins slaves and nexus repository. This is managed by Docker Desktop for Windows. My jenkins build job must build some docker image and push it ...
1
vote
1answer
33 views

Jenkins deploy static web with Apache2

I have a static website that I would like to deploy to my Apache2 server using Jenkins. I think of 2 solutions: Should I change the workspace dir of Jenkins to /var/www/? Or should I copy all files ...
0
votes
0answers
16 views

Master Jenkins becomes non responsive while a job runs on slave node

I have a Jenkins master and a Jenkins slave node. I have a job that uses all resources to build some binaries. The problem is when I run the job (job uses slave node) the master Jenkins GUI becomes ...
0
votes
0answers
5 views

Build and Push Ruby binaries to Nexus

Within my company, we would like to promote gems (version them) that we utilize for product deliveries into hosted repositories (push them to Nexus hosted in our Infrastructure). Is there a simple ...
0
votes
1answer
28 views

Jenkinsfile handling an expected job failure

I've got two types of failures to account for within a Jenkins job. The job genuinely failed The job failed because of a certain bit of info hasn't been published. Nothing is actually wrong here. ...
1
vote
1answer
22 views

Active directory integration issue with Jenkins

The active Directory login is not working for us on DMZ server since the request is going to multiple domain controllers servers (which cause us slowness in login- almost 10 minutes). how can we limit ...
1
vote
1answer
75 views

how to checkout only specific folder from git repo((monorepo)) and build

Hey folks I need some help on the jenkinsfile. Below is my usecase This is the strcuture of my GIT repo: root |->app1 | |->jenkinsfile | |->dockerfile1 |->app2 |->...
0
votes
1answer
16 views

windows 10 vs windows server 2016 as jenkins slave

The builds are running locally in my Windows 10 OS successfully. Can I run the same builds in Jenkins slave with Windows Server 2016? Will there be any issues during the build or should I go for ...
0
votes
1answer
25 views

Which Jenkins file is responsible for Enable cache setting

I want to know how can I modify the below setting from Jenkins server and not UI: http://XXXXX:YYYYY/configureSecurity/
0
votes
2answers
32 views

How to check minimum code coverage in pull request changes?

I want to force the developers to write unit tests for all new code they wrote. The code is written in python. I want to do it in the Jenkins pipeline. And here is a question. Is there any available ...
1
vote
1answer
15 views

Jenkins file that uses docker-compose gives ambigous error

I'm new to Jenkins and I want to automatize my current workflow a little bit. Right now I push it to the raspberry. Then via SSH I pull the changes, run docker-compose build and docker-compose up ...
0
votes
1answer
19 views

exponential backoff for git pushes?

We've got a ton of jobs in our Jenkins that all do git pushes, sometimes simultaneously. Unsurprisingly, if two jobs try to push at the same exact time, one will succeed while the other fails. My knee-...
1
vote
0answers
17 views

Connection refused when CURLing to docker container from within Jenkins pipeline

I have a situation with a CI Pipeline I'm trying to implement using Jenkins and Docker . Inside my pipeline I want to: download a python uwsgi web app, build it in a docker container, run it, then ...
0
votes
0answers
24 views

How tansfer double from jenkinsfile to remote target host via ansible ssh?

I have jenkins ansible and remote host jenkinsfile code def CONSUL_HCL_FILE_CONTEXT(name,port,target_host){ def CONTEXT=""" service { name = '${name}' port = ${port} enable_tag_override = false ...
0
votes
1answer
64 views

Jenkins-Deployment failure, Build successful

I have been trying to work on Jenkins and I'm able to Build the code but unable to deploy on to the Tomcat server. Have checked the users.xml file and Started by user nakul Running as SYSTEM ...
1
vote
1answer
125 views

Schedule Jenkins Job with Active choice Reactive parameters and Reactive reference parameters

I have created a Jenkins job which have Choice Parameters, Active Choice Parameters, Active choice reactive params and Reactive reference params. This job needs to be scheduled with parameters. As ...
0
votes
0answers
8 views

Github Actions Last Build API

I'm looking for an option similar to Jenkins where I can view the last build, last successful build, last failed build, etc. with a simple api call. The Jenkins example would be: jenkins_url + /job/${...
1
vote
1answer
24 views

Minimal CMake Jenkinsfile failing

Why is this Jenkins build failing? How can I write a Jenkins file just to test the building of this simple project? DisplayImage.cpp #include <stdio.h> #include <opencv2/opencv.hpp> ...
1
vote
1answer
122 views

Running Jenkins in docker with custom uid / gid

I have the following Dockerfile: FROM jenkins/jenkins:latest I'm build a Jenkins container as follows: docker build -t my-jenkins --build-arg uid=1003 --build-arg gid=1003 . I then run the image ...
0
votes
0answers
45 views

restart from stage is missing from Jenkins declarative pipeline 1.3.1 version

I am having declarative pipeline with 1.3.1 installed on production environment, but restart from stage (feature) is missing. As per documentation this feature is enabled from the version 1.3 i don't ...
0
votes
0answers
15 views

What does the architecture look like when building inside a docker container with Jenkins?

Obligatory 'I'm new to DevOps' disclosure. I'm trying to configure a lot of the CI/CD pipeline for my team, and I haven't been able to understand what's going on beneath the surface when you build ...
1
vote
1answer
68 views

How do i connect docker pipeline on jenkins to kubernetes cluster

I am trying to setup a pipeline on jenkins that uses docker containers to execute tasks like for example deploy an helm charts using a docker image with helm here is what my Jenkinsfile looks like ...
0
votes
1answer
169 views

Getting permission denied with docker pipeline on jenkins

I have jenkins deployed via helm charts on kubernetes cluster Now i want to be able to run helm to deploy helm charts applications on my kubernetes cluster and have the following in my jenkinsfile ...
0
votes
0answers
65 views

Jenkins build is success but deploy fail on tomcat

Jenkins build is success but the deploy fails on tomcat, with following output. ERROR: Step ‘Deploy war/ear to a container’ aborted due to exception: java.lang.InterruptedException: [DeployPublisher]...
1
vote
1answer
43 views

OpenShift fails to deploy jenkins - connection refused

I am using the GitHub project elio/openshift-vagrant. vagrant up and then the script oc-up.sh gives me a master and two nodes. Ansible provision runs without problems. After provision I can login to ...
0
votes
1answer
19 views

Mail logs with Jenkins

I am deploying my software on different OS ( Red hat & suse) and I need to know if my latest version of the software will work. In order to check if the installation works it's enough to check ...
2
votes
1answer
50 views

How to schedule a Jenkins Job dynamically based on the time value in database

I have a situation where there is a database in which a table consists of scheduled time to build. This schedule time to build may vary from day to day. Say for example, Today the entry in db is 09/...
1
vote
0answers
29 views

Unable to install both Bitbucket Branch Source and GitHub Branch Source plugins

So, we have projects spread across multiple git hosting platforms. Namely Bitbucket and GitHub. We will migrate them to a unified platform in the future, but we're stuck with things the way they are ...
0
votes
0answers
22 views

How to “killSoftly” a particular Jenkins job?

From SO: My Jenkins build hangs between build and post-build steps. The console output shows there is a 6-minute wait (but I've seen waits of up to one hour): 10:53:26 BUILD FAILED in 1m 7s 10:53:...
0
votes
2answers
354 views

Unable to run `conda activate` from Jenkins pipeline

I'm running Conda 4.6.14 on Ubuntu 16.04. I thought about using virtual environments with Conda in my Jenkins pipelines that needed Ansible, by having all nodes use the same environment, ansible-env ...
1
vote
0answers
23 views

https - How to enable users to have secure connection with Jenkins via ELB?

Below is the cloud formation template that creates Eastic Load Balancer as public facing to jenkins(jenkins:ecs docker) running in VPC subnet: { "AWSTemplateFormatVersion": "2010-09-09", "...
1
vote
0answers
25 views

How can I modify Jenkins Configuration Global Security from linux server?

In Jenkins UI, I have the below section under http://XXXXXX:YYYY/configureSecurity/ where can I find this definition in Server (Linux RHEL)? I tried to grep for it in jenkins-production folder but ...
1
vote
2answers
61 views

Jenkins Plugin Install Failed

I am trying to set up new Jenkins. When I download Suggested Plugins OR try to install any plugin I am getting below error. I am using Jenkins Latest Version 2.204.1. I have set up this on VM. I am ...
1
vote
1answer
38 views

nginx for dummies? How to enable Jenkins over https

I'm running Jenkins on an Ubuntu machine bare metal, and as I'm only experimenting and learning how the ops of it all works, I now want to learn how to enable https (with a nominally valid certificate ...
1
vote
1answer
37 views

Store data in Jenkins job description

I have a job which I run with a boolean parameter called "BUILD_CLEAN=true", and it defaults to false. I can store this flag in the job ID currentBuild.displayName . Simple enough. But for my purposes ...

1
2 3 4 5
10