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]

Jenkins is an extendable open source continuous integration server

0
votes
0answers
11 views

Jenkins: Some plugin or setting corrupts PATH environment variable

We have Jenkins Master 2.121.2 with 3 Jenkins Slave nodes. Recently we have encountered the following error: ssh: not found in $PATH Failed to connect to repository : Command "git ls-remote -h ssh://...
0
votes
2answers
8 views

Issue running Jenkins Pipeline Steps using Credentials plugin

I have a basic Pipeline that copies a directory to a remote directory. If i have the username and password in plain text it works fine, but when I try to use withCredentials I get authentication ...
1
vote
0answers
22 views

Jenkins Pipeline Syntax: Quoting Pains When Using Multiple Quote Blocks

I have kind of a weird setup that I need to run a command as a docker container in a sh block in a Jenkinsfile. Issue that I'm facing is specifically around the awk command used to trim the output. ...
0
votes
0answers
11 views

What is the best way to run scripts inside a container during deployment?

I often need to run commands inside the one of the containers (tasks) for a Docker Swarm service during deployment. One example of this is drush commands when deploying Drupal sites. I build and ...
-1
votes
0answers
30 views

Master-Slave set up in Jenkins issue

I am trying to set up the node in Jenkins. The setup was successful and the node came online but I am still facing the clock difference of somewhat around 3 days 4 hour on the newly configured node . ...
1
vote
1answer
58 views

Jenkins Pipeline: Using Env Var in another Env Var declaration

I would like to make my long "ssh" command reusable as a simple variable throughout my pipeline. To do this, it would be nice to declare my hostname in a var, then use that var in another var ...
-1
votes
0answers
18 views

Jenkins bitbucket-webhooks Plugin wrong url

I've created a Post Webhook in our bitbucket server to our jenkins server. At jenkins side I installed the Bitbucket plugin and checked "Build when a change is pushed to BitBucket". So now if I push ...
0
votes
0answers
56 views

How should I know what classpath to set on a Gradle build in Jenkins?

I mostly do devops work. I'm setting up Jenkins for a team. They have a Kotlin project that they are buidling on their local machines with Gradle. I have never worked with Kotlin or Gradle, but I have ...
0
votes
0answers
17 views

How to trigger a reconnect for Jenkins EC2-Plugin?

Attempting to resolve an issue with an upstream AMI having a low max-open ulimit. I'm able to fill in the limits files, and if I manually disconnect/reconnect the slave, the new limit applies. I can ...
0
votes
0answers
18 views

Jenkins with nginx on cloudfront

I have setup Jenkins on an EC2 instance with nginx as a reverse proxy. Then I went ahead and setup Cloudfront so I could get SSL and have a nice build.mydomain.com address. now when I go to build....
0
votes
1answer
89 views

Jenkins is asking: do you trust this host, store key in cache

I installed Jenkins in our Windows Server machine and wanted to run some scripts that clones our private repo from bitbucket. In the script, all it does is to clone the repo in the appropiate ...
0
votes
1answer
22 views

Jenkins Ansible: How to get Ansible resources to slaves

we plan to use jenkins and ansible to manage our environment: one jenkins master and a number of jenkins slaves. The slaves have ansible deployt. The ansible playbooks and roles are generated from a ...
1
vote
1answer
51 views

unable to access Jenkins installed on ubuntu 18.10, browser says “ xxxxx took too long to respond”

a question from a beginner. I have just installed Jenkins on: Ubuntu 18.10 minimal - google cloud Platform Java 8 installed UFW configured to allow traffic on port 80 from anywhere when ...
0
votes
0answers
13 views

In Jenkins, how do I handle a complex dependency?

I have a folder with 4 jobs, namely, build-and-test = a multi-branch pipeline job that builds and tests code and, if successful, pushes a docker image to docker repo. So I can have several versions ...
0
votes
1answer
126 views

Jenkins unable to get ssh-agent to work, looks for a missing askpass_*.sh file

I installed the ssh-agent before and had everything working nicely with an ssh key that has all the proper permissions for cloning repos from a github project, but now after setting up another ...
0
votes
0answers
51 views

Jenkins pipeline (multibranch) - run process on branch deletion

I've seen a lot of questions (and answers) about how to delete old build artefacts after a branch has been deleted, but I need to run a custom process when a branch gets deleted. I've got a ...
0
votes
1answer
49 views

How to monitor/performance Jenkins server?

How to monitor Jenkins server and check the performance of the server. is there any tool to check regular or anything else.
0
votes
1answer
11 views

jenkins: can one project handle multple nodes/commands?

I'm looking for a way to do the following: I'd like a Project, or Pipeline, whatever it's called, to have a list of severs and a different command run on each. Example: server1 command1 server2 ...
0
votes
1answer
70 views

Jenkins folder propery: Is it possible to use a folder defined property on SCM section?

I have a bulk of Jenkins jobs for each release we issue. I want to be able to easily define a new release, and was happy to find Folder properties Pluging I defined a folder property for the version: ...
-1
votes
1answer
121 views

How to use SonarSwift(Sonarqube) plugin in Jenkins in Ubuntu 16.04?

I have installed lizard but I'm getting this error when I build my job in Jenkins: 11:00:22.363 ERROR - Lizard Report not found /var/lib/jenkins/workspace/xxxxxxxx/sonar-reports/lizard-report.xml ...
0
votes
1answer
115 views

How do you get SonarQube Scanner for Jenkins to use a web proxy?

Before you leap to answer: This is about the plug-in in the Jenkins Web UI. I have the proxy working for sonar-scanner in my pipelines. I need a fix for the plug-in in the web UI. I'm getting blank ...
0
votes
1answer
19 views

Should I bake the Jenkins config file for each Jenkins master into our custom Jenkins Docker image?

It's a bit uncomfortable for us to have a Jenkins Docker image that is used for 4 different Jenkins Master Servers with a different Jenkins configuration. We use an environment variable that loads ...
0
votes
1answer
39 views

Jenkins API intermittent authentication errors

I'm using Ansible's jenkins_job task to set up some Jenkins jobs. I'm authenticating with a username+password which is authenticated as a Linux user on the Jenkins machine. - name: Install my job ...
0
votes
0answers
9 views

Jenkins stops executing timed and automatic jobs

I have a Jenkins server running on an EC2 instance with a number of workers running in containers in our data center. Most of my jobs are either triggered on a timed schedule or are triggered by the ...
0
votes
1answer
495 views

Jenkins behind nginx reverse proxy in subdirectory

I am struggling setting up Jenkins in a subdirectory behind nginx. There are 2 apps running on localhost. One of those is jenkins, which should be accessible by visiting foo.com/jenkins. The other app ...
0
votes
1answer
548 views

Jenkins - environment variable not setting up from pipeline

Here is my script. Im trying to set up variables in pipline shell script: node { anyconnect = docker.image('anyconnect:1').run("--cap-add NET_ADMIN --cap-add SYS_ADMIN --device /dev/net/tun:/dev/...
0
votes
0answers
137 views

How to connect jenkins to a gitlab which required a client ssl?

I need to work with a self hosted gitlab repository protected by 2 way ssl authentication. So to connect aside git's own credentials, the request to git should come with a client ssl. From the ...
1
vote
0answers
57 views

Jenkins (and other apps) user authentication in a K8s cluster

I have Jenkins running in a pod, in an on-prem Kubernetes cluster. My company uses AD, and my Jenkins instance outside the cluster (I'm migrating from this to the cluster instance) uses LDAP for ...
0
votes
1answer
171 views

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 = ""...
0
votes
1answer
27 views

Jenkins ajax calls are using the wrong port

I installed jenkins, and wanted to change the default port from 8080 to 443. I've got that working, but when going to the Jenkins settings, the system is complaining that the reverse proxy is not ...
0
votes
1answer
81 views

Jenkins failing to run after attempting to implement AD login

I have a jenkins instance that I tried to set up with Active Directory. None of the users could log in with any credentials after, so I went onto the server and removed the Active Directory plugin in ...
0
votes
0answers
9 views

Jenkins Maven job has no “Maven Installation” option

We run two separate instances of Jenkins and are in the process of migrating all jobs from the older one to the newer one, and at the same time converting these to DSL. Recently the newer Jenkins ...
0
votes
1answer
252 views

git clone hangs during clone when using sshpass

Has anyone found sshpass works to set a phassphrase for ssh or git clones? I have a github repo with a deploy key and a passphrase This results in prompt for passphrase as expected and clone upon ...
0
votes
1answer
18 views

What variables (besides HOME) determine from where terraform expects to find the git key for modules with github as a source

What command line option and environment variables control how terraform finds keys for downloading modules from git? When using terraform modules from a git repo I'm running into problems when I ...
0
votes
1answer
96 views

How to migrate from Jenkins week Ubuntu package to LTS?

I'm currently running the Jenkins weekly Ubuntu package from https://jenkins.io/download/ on Ubuntu 14.04. Specifically I'm on Jenkins 2.138 (the latest) from https://pkg.jenkins.io/debian/. I'd like ...
2
votes
2answers
623 views

Jenkins web server not responding to HTTP requests in Ubuntu/Dell PowerEdge R640

I have a system (the "host") that runs several containers, using LXC (i.e. the "guests"). I've installed Jenkins inside the guests and they appear to be working as intended, except that they don't ...
0
votes
0answers
191 views

Jenkins Slave installed as service on Windows Server no admin rights

I installed a jenkins slave version 2.107.2 on a Windows Server 2012 R2. Master is a Linux Debian server. I'm trying to install this slave as a windows service and encounter a problem with the ...
0
votes
1answer
621 views

How to delete old Jenkins builds on repository branches

I have used the Blue Ocean plugin to create a Jenkins job that automatically uses the Jenkinsfile (declarative pipeline) to build and report the status back to GitHub. That all works fine. The issue ...
0
votes
0answers
16 views

How to set node usage property for jenkins

I have looked many places for how to set the usage property in jenkins using python. I looked at the create_node but there is no parameter for the usage. I also looked at reconfig_node but looking ...
0
votes
1answer
1k views

Jenkins pipeline script - become self aware - need directory of Jenkinsfile

I am one short step away from being able to replace numerous customized Jenkinsfiles with one. All I need to get is the directory containing the Jenkinsfile under execution. I am using the Declarative ...
0
votes
2answers
36 views

Is there any way we can write in a Dockerfile the -v command used on docker cli?

Say, I have a local dir structure of /var/lib/jenkins and on the resultant container i have the same dir stucture. Now, i need that the jenkins user created through Dockerfile should be able to access ...
0
votes
1answer
19 views

Where to safely store SSH/AWS/etc. keys for infrastructure provisioning from Jenkins?

I have already moved out all passwords and aws_access/secret_keys, out of the Git repositories. Some access_keys/secret_keys have now been made available as environment variables so that the ...
0
votes
0answers
101 views

ansible choco module fails to install / update choco

When we run this task, we sometimes fail with the following error: An exception occurred during task execution. To see the full traceback, use -vvv. The error was: ReadTimeout: HTTPSConnectionPool(...
0
votes
0answers
149 views

Artifactory plugin in Jenkins: Connection Refused

Introduction I'm trying to set up Jenkins and Artifactory v6.0 according to this guide. Next configure the Artifactory server (or servers) that will be used for artifacts resolution and for ...
0
votes
0answers
44 views

Multiple Java installations on the same Jenkins slave

I need to have 2 version of Java on the same Docker image: Java 7 for the developers Java 8 for running a Jenkins-slave Because we're running quiet old software, the solution was: RUN echo deb http:...
0
votes
0answers
178 views

Jenkins “Build Triggers” shows UTC instead of local or server timezone

When configuring jobs to run periodically, Jenkins is showing UTC time. I expect Jenkins to show the timezone as America/New_York. Jenkins version 2.121.2 is configured to run using timezone America/...
0
votes
0answers
14 views

Is there a Jenkins plugin to see server configurations centrally?

For my various Jenkins jobs, I keep information like number of desired servers, service discovery parameters, ports, Dockerfile parameters etc. in Jenkins. Is there a way to manage and view this kind ...
0
votes
0answers
209 views

Jenkins occasionally fails to clone/fetch

I am running code hosted on Gitlab on regular basis in Jenkins. From time to time, Jenkins GIT plugin failes to fetch the remote repository. It works fine when I just run it again. Any idea? I have ...
1
vote
1answer
57 views

In Jenkins pipeline, using Groovy DSL, how do I spin up a Docker image in the background?

We had a Jenkins build system, using the Groovy DSL, that worked well for us. But then we recently hired a new developer who is supposed to be very good. He decided to rewrite the way our tests work....
1
vote
0answers
101 views

Jenkins PWAuth doesn't work after process restart

I am running Jenkins (currently v2.134, always up to date from Jenkins Debian/Ubuntu repo) on a Ubuntu 18.04 server. It is configured to use the pwauth plugin for authentication against system ...