Questions tagged [jenkins]

Jenkins is an extendable open source continuous integration server

It is built in Java and has many plugins to support,build and test projects.

More info on the official website.

654 questions
2
votes
0 answers

Jenkins cannot run ssh-agent, but local container can

I'm trying to configure an SSH key on my Jenkins instance with the SSH Agent Plugin. Jenkins is using Kubernetes containers as workers. My worker container image is alpine based, and just installs ansible and sshd. If I run a container locally, I am…
jackwise
  • 259
  • 1
  • 3
  • 9
2
votes
1 answer

How to fix python module not found error with jenkins?

I ran pip freeze command with my jenkins job and below is the output pip freeze fpdf==1.7.2 textfile==0.1.4 pip install textfile Requirement already satisfied: textfile in c:\python39\lib\site-packages (0.1.4) But when I ran the python script as…
Sara June
  • 451
  • 1
  • 9
  • 28
2
votes
1 answer

Not able to access groovy variable inside shell script in JenkinsFile

def NAMESPACE = "Dev" def BODY= sh( script:'''body=$(cat <<-EOF { "name": "${NAMESPACE}", "type": "regularwebapp" } EOF ) (echo $body)''', returnStdout: true ).trim() The above doesnt work, output is as follows: { "name": "", …
Sidd
  • 21
  • 1
  • 2
2
votes
1 answer

Jenkins - Run job if other multiple jobs are successful

How can I start a job if all 3 other jobs are successful? Here is the scenario: job1 - build module 1 job2 - build module 2 job3 - build module 3 job4 - main program Run job4 (main program) if all modules build are successful (Job 1,2 and 3) so the…
user630702
  • 495
  • 10
  • 32
2
votes
1 answer

How to make Jenkins agents port available with an Ingress controller on Kubernetes?

I'm trying to setup Jenkins in a Digital Ocean Kubernetes cluster. I'm using a NGINX ingress controller as I want to access my server from a subdomain (jenkins.example.com). Everything is working fine so far, I have my UI on said domain secured with…
greg_wss
  • 23
  • 4
2
votes
1 answer

Escape characters in systemd ExecStart fail

I have the following snippet to extract a value from a jenkins server jnlp config file. It works out of the box in the terminal but not as a unit. I want a unit so I can put the value somewhere and use it as an environment variable. However I keep…
eignhpants
  • 129
  • 2
  • 7
2
votes
1 answer

How to redirect port 80 and 8080 to 443 using nginx for a Jenkins server

I am try to redirect anything going to port 80 and 8080 to 443 (https) using nginx. This is for a Jenkins server. I am using ubuntu. This is the nginx config I have at the moment: server { listen 80; server_name jenkins.mydomain.com; location…
nealous3
  • 131
  • 1
  • 1
  • 5
2
votes
1 answer

Jenkins tool installation fails with message: Installer "Run Shell Command" cannot be used to install "" on the node ""

I have configured Jenkins using Jenkins > Manage Jenkins > Global Tool Configuration to ensure that agents have the required tool chain installed before they work on builds. Why is a pipline build's tool-installation stage failing with the following…
JasonAzze
  • 851
  • 10
  • 15
1
vote
1 answer

How do I use AWS EKS with the Jenkins Kubernetes Cloud plugin?

I have found essentially no documentation about how to use the Jenkins Kubernetes Plugin with Amazon EKS. The documentation mentions aws-iam-authenticator and a java setting to change a cache timeout, but doesn't explain how to configure…
papercrane
  • 133
  • 2
  • 6
1
vote
1 answer

How to change linux default scheduling method

I've a jenkins server and running a lot of CPU bound compilations. I want to change the scheduler from SCHED_NORMAL to SCHED_BATCH. I know it can be done with chrt but I want the system to use it by default for all jenkins jobs (and perhaps all…
iveqy
  • 111
  • 1
1
vote
1 answer

How do you make use of the Same Jenkins Slave already being used by Parent Job for the Child Job as well?

Say I have Jenkins Job "abc_job" which calls another jenkins job "xyz_job" depending on certain conditions. Now for some reasons, both of the jobs are suppose to run on the same jenkins slave which results in a deadlock condition as job "abc_job"…
1
vote
0 answers

Permission not granted when delete file

I am trying to run clean jenkins workspace with rm -rf /var/lib/jenkins/workspace/* but I get permission denied for /var/lib/jenkins/workspace/* I see jenkins jenkins when I execute ll to check which user is owner of these file Where is my mistake?
J.dock
  • 11
  • 1
1
vote
1 answer

Jenkins slave unable to clone from Gitlab

I have an autoscaling Jenkins cluster on AWS, which spawns & runs agents via JNLP. Both Master & Slaves run on Ubuntu. I don't quite understand where Jenkins actually stores the SSH keys for Gitlab, or if/how the slaves are expected to use…
Mcar49
  • 113
  • 1
  • 3
1
vote
0 answers

Jenkins Failed To Start

Jenkins failed to start after disk space going out. After deleting data start the Jenkins but it start for few seconds and down again. jenkins.service - Jenkins Daemon Loaded: loaded (/etc/systemd/system/jenkins.service; enabled; vendor…
vish
  • 156
  • 5
1
vote
2 answers

Jenkins Build on Workspace Change

Due to security concerns we have two Jenkins instances, One that lives in a secure area and only deploys jars that have been built (cannot connect to GIT). The other lives outside the really secure area and builds the jars. The JenkinsBuild instance…
flareback
  • 111
  • 2