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
4
votes
1 answer

What are the Jenkins/Hudson key files for?

After I have installed Jenkins (on Windows), the program folder contains, among others, two files: identity.key (28 lines) -----BEGIN RSA PRIVATE KEY----- MIIEow...... ... -----END RSA PRIVATE KEY----- secret.key (64 characters) d6....38 (I've…
Martin
  • 589
  • 4
  • 10
  • 27
4
votes
2 answers

Jenkins Install, Service Start failure

Trying to install Jenkins as the sole administrator user on Windows 7, with UAC turned off, the following error appears: Nothing I have tried has been able to fix this, the system installed fine from the same file (though I did reinstall to check)…
M1ke
  • 175
  • 1
  • 10
4
votes
2 answers

Jenkins installation fails on Ubuntu 20.04 with dpkg: error processing package jenkins (--configure)

I was trying to install Jenkins in my server Ubuntu 20.04 with the following commands wget -q -O - http://pkg.jenkins-ci.org/debian/jenkins-ci.org.key | sudo apt-key add - sudo sh -c 'echo deb http://pkg.jenkins-ci.org/debian-stable binary/ >…
Shahrear Bin Amin
  • 155
  • 1
  • 2
  • 8
4
votes
0 answers

Setup 2FA/MFA on Jenkins

I'm trying to find how to setup 2FA/MFA on users who login to Jenkins, with Google Authenticator. Everything I'm finding is about logins to servers/git/etc, but not for the actual USERS in Jenkins. Does anyone know how to do this?
3
votes
0 answers

What means "Invalid cross-device link" error message inside a Jenkins Docker Pipeline?

I'm trying to setup the software tests inside Jenkins for a legacy project at work. In order to run those tests i need to setup a Docker container based on an old ruby version having several packages installed. (excerpt from the…
3
votes
3 answers

Jenkins Server throws 403 while accessing rest api or using jenkins java client to create job

I am trying to create a job on Jenkins using java client (https://github.com/jenkinsci/java-client-api) by calling .createJob(String jobName, String configXml) . However, Jenkins server throws 403 forbidden error. Sample Code : HttpClientBuilder…
Kumar
  • 211
  • 3
  • 7
3
votes
1 answer

Can Jenkins utilize the user's Kerberos ticket?

I'm setting up a new Jenkins server. It will authenticate users against the corporate AD. Most of the tasks we have in mind require logging-in to other hosts (via ssh). Can Jenkins be configured to, upon a user's login: Obtain a Kerberos ticket…
Mikhail T.
  • 2,338
  • 1
  • 24
  • 55
3
votes
2 answers

Jenkins global AWS credentials not working via `withAWS` step

I have a Jenkins v2.62 instance with the pipeline plugin installed and successfully usable. I have AWS credentials that are tested and working: Now my pipeline job has something like this: node("deploy-staging") { stage('test') { …
scorpiodawg
  • 131
  • 1
  • 1
  • 5
3
votes
0 answers

Use an ECR image as an agent in Jenkins

What I'd like to do is use an ECR image as an agent in Jenkins when using declarative pipeline Current top of pipeline script looks like so: pipeline { agent { docker { image…
3
votes
1 answer

ldapsearch doesn't work wih ldap.google.com via stunnel

Can't get it working. I have to use stunnel to be able integrate Jenkins with Google LDAP service. It works fine without stunnel $ LDAPTLS_CERT=/etc/stunnel/gldap.crt LDAPTLS_KEY=/etc/stunnel/gldap.key \ ldapsearch -H ldaps://ldap.google.com -b…
ALex_hha
  • 7,193
  • 1
  • 25
  • 40
3
votes
2 answers

Convert Jenkins Script to Declarative Pipeline

I have a scripted pipeline which I need to checkout from a repo rather than have locally. However, when I add it to git the job fails instantly. Here is the working script; node { INSTANCE_ID = "" stage('Get Instance Id') { …
eekfonky
  • 309
  • 1
  • 4
  • 14
3
votes
0 answers

Unable to install plugins on Jenkins server

When I try to install any plugin on my Jenkins server, I get below error in the browser. I can see the list of Available plugins. Error occurs when I select any plugin and click on Install without restart or Download now and install after…
Asdfg
  • 109
  • 1
  • 13
3
votes
2 answers

Set up database for integration testing with Jenkins in Docker

Background: I was following Downloading and running Jenkins in Docker to setup Jenkins Server. Used following parameter to run Docker. docker run \ -u root \ --rm \ -d \ -p 8080:8080 \ -p 50000:50000 \ -v…
Shihe Zhang
  • 143
  • 1
  • 7
3
votes
2 answers

Jenkins windows slave unable to connect

Trying to start Jenkins slave on Windows with Java Web start gives me this: >java -jar agent.jar -jnlpUrl https://jenkins.example.com/computer/slave-office/slave-agent.jnlp -secret 74aebde5a38c4f19b0b6c64ee9d3d75571d6cd666e67ebae7d39d8b259d39a0f…
GTXBxaKgCANmT9D9
  • 415
  • 1
  • 7
  • 16
3
votes
5 answers

How to reset Jenkins to its factory settings?

I have installed Jenkins on my Red Hat server following this tutorial. But by mistake I skipped the default plugins part. I tried deleting /var/lib/jenkins/config.xml but this file getting created again and again. How can I get back to the initial…
Raja Anbazhagan
  • 133
  • 1
  • 1
  • 8