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
2 answers

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 I have is that I cannot get old builds deleted.…
Nagev
  • 580
  • 1
  • 6
  • 10
2
votes
1 answer

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 a 401 at the end of it. Here are the steps I…
Husk Rekoms
  • 217
  • 1
  • 4
  • 15
2
votes
1 answer

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 restarted to pick the change. But "apply"-ing the…
user6317694
  • 131
  • 3
2
votes
1 answer

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 run the deploy.sh script in each server one by…
Cyberzinga
  • 35
  • 2
  • 6
2
votes
0 answers

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 runs then we have run it manually. This is what I…
rsjethani
  • 169
  • 1
  • 1
  • 5
2
votes
1 answer

securely connect jenkins and github

we have a Jenkins server running on an ec2 instance. The security groups are very restricted in this server, they only allow traffic from the company office, and the slave nodes. we want to setup github hooks, so everytime someone pushes code to…
2
votes
0 answers

Jenkins on Windows: How to encrypt the httpsKeyStorePassword in jenkins.xml?

I'm running Jenkins, currently 2.89.3 on Windows, and have managed to configure SSL (...hooray!...). Problem now is that I want to encrypt the -httpsKeyStorePassword defined in jenkins.xml, but despite all my Google-skills, I have not been able to…
rhellem
  • 295
  • 1
  • 5
  • 14
2
votes
1 answer

jenkins CI and GIT plugin - "detached head" state at some point

Can some "GIT guru" please have a short look here? We use jenkins CI for simple deployments. Most jobs make use of the "GIT plugin", and there is some issue with this. Even, if we set the plugin to track the "master" branch. At some point we end up…
2
votes
1 answer

Jenkins, git-plugin and Bitbucket under Windows: Authentication failed

I have setup a private Bitbucket repo which can be accessed fine by the Jenkins Git-Plugin. When I switch the repo to require authentication Jenkins complains with stderr: fatal: Authentication failed for 'https://bitbucket/scm/test/test.git' I…
papanito
  • 381
  • 4
  • 20
2
votes
0 answers

Using PhangomJS in Docker Alpine

I am trying to use Jenkins as a docker container. For this purpose, I use the official docker image. As we have some integrations tests based on Selenium (Vaadin Workbench really), I need to run phantomjs as headless. The tests are executed…
King Midas
  • 141
  • 7
2
votes
1 answer

jenkins - return something from child job

There is a jenkins pipeline job ("parent"). From it - on one stage there is called another pipeline job ("child" - using build job command). Is there any way to return something (for example short text) from child to parent job without using…
undefine
  • 1,046
  • 9
  • 21
2
votes
2 answers

Jenkins EC2 Plugin HTTP error 404

I have an EC2 instance on my AWS account with Jenkins installed don Amazon Linux. The AWS credentials, roles etc. and SSH keys exists so as that the instance has EC2 access and I can SSH to any instance created in the security group etc. I have…
eekfonky
  • 309
  • 1
  • 4
  • 14
2
votes
1 answer

Jenkins Docker build slave - npm cache not working

I have a Docker image, let's call it frontend.image, that I use for a Jenkins build slave. The Jenkins Docker plugin will spin up a container from this image and build artifacts inside the container. This all works great. In this case, the…
Brian
  • 321
  • 3
  • 5
  • 15
2
votes
1 answer

How to get data from Jenkins to Confluence (Cloud)

I'm trying to write from jenkins into confluence, but I am having some issues either getting a particular solution to work (configuration? plugin bugs?), or having issues finding appropriate information to implement. Sample end result: A Jenkins…
Ryan
  • 65
  • 2
  • 7
2
votes
1 answer

Why is PATH different when launching Jenkins slave via launchctl?

I have a Jenkins slave running on macOS via ssh slave, then screen, then launching following script, which makes sure to reconnect the server if it goes down: #!/usr/bin/env bash function startSlave() { java -jar /Users/user/slave.jar -jnlpUrl…