Questions tagged [jenkins]
Jenkins is an extendable open source continuous integration server
650
questions
0
votes
1
answer
2k
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
1
answer
307
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
1
answer
1k
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
1
answer
5k
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
1
answer
860
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
1
answer
43
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 ...
1
vote
1
answer
3k
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
1
answer
664
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
1
answer
2k
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
1
answer
97
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
1
answer
2k
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
...
2
votes
2
answers
10k
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 ...
1
vote
1
answer
12k
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
0
answers
3k
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
0
answers
151
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 ...
3
votes
2
answers
6k
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
1
answer
231
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 ...
6
votes
1
answer
8k
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 ...
2
votes
2
answers
3k
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
1
answer
171
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
1
answer
517
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 ...
5
votes
2
answers
12k
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 ...
2
votes
2
answers
14k
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 ...
6
votes
3
answers
25k
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
2
answers
65
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
1
answer
59
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
1
answer
2k
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/...
4
votes
1
answer
10k
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
1
answer
476
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
2
answers
608
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 ...
0
votes
1
answer
2k
views
Communication error with Jack server (77) causing Jenkins build to fail
I am creating a CI build for compiling our custom Android ROM / OS and I am receiving an odd error in Jenkins when trying to do an automated build. The issue doesn't take place when I build manually ...
0
votes
1
answer
2k
views
Jenkins Slave Remote FS root configuration not taking effect
I am trying to change the work space folder in which my jenkins build runs on. From the documentation and other resources I have set this in the node as shown below:
When I run the build it's still ...
4
votes
3
answers
18k
views
Jenkins build happening on master instead of slave
I have been working on an android OS build automation through Jenkins and the repository is massive and the build itself takes a fair amount of time. Therefore, I need to to run on my slave that has ...
3
votes
0
answers
2k
views
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 ...
0
votes
2
answers
1k
views
Jenkins Build Failing with limited error output
I have recently setup a gogs server to connect with Jenkins (previously we were using SVN). The connection is working but the build fails when retrieving objects from the gogs server around 41%-43% (...
2
votes
1
answer
595
views
SSH error between gogs and Jenkins
I am trying to setup an automated pipeline between Jenkins and Gogs and am having some issues with connecting the two together. I feel like I have followed the process correctly but am still receiving ...
0
votes
1
answer
85
views
Deploy Node project locally on ec2 machine
I have a ec2 Linux-16.04 machine, and Jenkins is installed on it.
I would like to have a Jenkins job to deploy my Node server on the same machine under another user.
What would be the best approach?
3
votes
2
answers
8k
views
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 \
-...
0
votes
1
answer
1k
views
dockerized jenkins failed building dockerfile work dir issue
I have a jenkins container and a pipeline which consist of building docker images. I have mounted the necessary mounts (/var/run/docker.sock, /var/run) for jenkins to use docker commands. I also bind ...
3
votes
2
answers
10k
views
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 ...
0
votes
1
answer
3k
views
Jenkins jobs get killed randomly once a day at a fixed time
I've got a Jenkins server with 140 clients that execute compilation and test jobs. Since some days, up to roughly a quarter of the jobs got killed at 21:38 +0200 with SIGTERM. Each day at the same ...
8
votes
2
answers
17k
views
Jenkins: Using Parameterized Trigger Plugin via Pipeline Script
I need to trigger a Jenkins job from another job and pass various values to it for later conditional logic. It seems the Parameterized Trigger Plugin will do exactly what I need. (https://plugins....
2
votes
1
answer
114
views
How to do continuous delivery with Kubernetes?
I am trying to run Kubernetes namespace setup and application deployment as part of a pipeline. Normally "apply" commands work with idempotency. Now, if I change a ConfigMap, the pods need to be ...
3
votes
5
answers
18k
views
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 ...
2
votes
1
answer
4k
views
Jenkins build email notification by parsing log
I am using Jenkins to deploy in multiple servers. There are 4 backend servers are running. I have a script called deploy.sh in each server. At the time of deployment, Jenkins create a ssh session and ...
2
votes
0
answers
868
views
Automate jenkins slave node cleanup
So here is the scenario:
Currently to cleanup space on Jenkins slave we have a job(a jenkins job itself) scheduled to run every day to do the cleanup. But many a times disk get full between scheduled ...
0
votes
2
answers
3k
views
Jenkins container on Linux with powershell
I am running docker on a Debian 9 machine, and a Jenkins container in it. I installed the PowerShell plugin in Jenkins and I am trying to run a PowerShell script, but I get a message saying that it ...
0
votes
1
answer
113
views
Jenkins: How to resolve resolve plugin errors?
I have a server on which Jenkins(2.12) is installed.
There are no plugins are installed(actually I uninstalled every plugin from the plugin manager), though I get the error messages complaining about ...
1
vote
3
answers
454
views
Access a linux server without being on the sudoers file
I have my Jenkins installed on a windows server and I have created a Jenkins user on the server now I need to push the WAR files to my Linux server to a particular user root (myrootuser) who is there ...
1
vote
1
answer
519
views
leader_only is not working in Elastic Beanstalk
We are doing CI/CD for drupal site using Jenkins. Now, we need to run drush commands which we should run only in single instance.
For this, we have created elastic beanstalk config script with ...