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

Empty reply from server when trying to redirect HTTP to HTTPS in nginx as a reverse proxy for jenkins

I’m running Jenkins behind Nginx and I use Let’s Encrypt for the SSL Certificate. If I access the site via https://jenkins.mydomain.de/, everything works fine. But when I access it via http://jenkins.mydomain.de/, Firefox says “Connection was…
Gorgor
  • 51
  • 1
  • 2
5
votes
2 answers

Jenkins 2.x disable initial admin setup

we're using Jenkins as a cron server adding/starting crons via api. We created a vagrant box installing the jenkins. Since version 2.0 jenkins require to create an admin account (link) before disable the security in config.xml. If no admin is…
torsten
  • 61
  • 1
  • 1
  • 6
5
votes
2 answers

Jenkins Slave goes offline during the build

A Jenkins 1.651 master and slave have been installed on a Windows Server 2012. The slave is dedicated to run Selenium tests, but most of the time it goes offline: Build step 'Execute Windows batch command' marked build as failure ERROR: slave-tester…
Sim1
  • 113
  • 1
  • 8
5
votes
2 answers

Bash commands run at terminal but not in Jenkins/Bash Script

I'm using Jenkins to build and deploy HTML documentation to a local Apache web server for our devs to use. When I run the commands in the terminal, everything installs properly (Proving the server is setup properly). However, when run the same…
5
votes
1 answer

msdeploy via jenkins & service account: connected but "could not authorize"?

Background / Goal The moving parts: I have a service account, let's call it MyDomain\svcMyService. I have a remote server, let's call it MyDomain\MyServer. I have a Jenkins server, let's call it MyDomain\MyJenkins. In Jenkins, I have a deployment…
SeanKilleen
  • 1,083
  • 8
  • 25
  • 38
5
votes
1 answer

Jenkins CI Master-Slave setup with docker for slave server

So I have setup up two Ubuntu AWS Instances (a small t2.medium and a big r3.large). The t2.medium has Jenkins CI installed on it and the r3.large has docker engine installed on it. The intention here is to have a Master (t2.medium) server and a…
Fadi
  • 170
  • 10
5
votes
0 answers

Blue-green deployment for Jenkins itself

When I tinker with my live Jenkins instance, I risk down time. Thus I want to run blue and green Jenkins master instances. This way, I can work on one while the other is live and stable. As expected, searching on this topic tells me how to use…
John McGehee
  • 225
  • 3
  • 10
5
votes
2 answers

Jenkins publish over ssh success to connect the server but failed put file

I have a problem that when I do build to my job, its cannot put my file on the server directory in console output i get the message "ERROR: Exception when publishing, exception message [Permission denied]" i have the following log output: SSH:…
Cuzi
  • 151
  • 1
  • 1
  • 2
5
votes
5 answers

How to access Jenkins remotely on Ubuntu 12.04 server?

I have installed Jenkins and opened port 8080 on Ubuntu 12.04 server but still can't access Jenkins remotely. Below is the procedures I took. # Install Jenkins, enable UFW and open port 8080 sudo apt-get install jenkins sudo ufw enable sudo ufw…
ezraspectre
  • 151
  • 1
  • 1
  • 4
5
votes
2 answers

Optimal way to build and deploy a website as a .deb package

I've been battling with deploying (mainly PHP) websites as .deb files for some time and wonder if there's a better way than my rather convoluted method. My goal is continuous integration on my staging server and one-click deploys to the live server…
DanForys
  • 51
  • 1
  • 3
5
votes
1 answer

Run shell scripts as root though Jenkins

I have a EC2 instance running. How can I run commands with sudo through Jenkins? When I try sudo touch /home/ec2-user/foo.bar, I get the following error: sudo: no tty present and no askpass program specified. What am I doing wrong?
whirlwin
  • 183
  • 1
  • 1
  • 5
5
votes
1 answer

Jenkins slave fails handshaking on windows

I have a win2k8 machine used as our CI master server (Jenkins) I have various other servers running as slaves The master is listening for slave connections on port 2000 SlaveA - can connect to master on 2000 SlaveB - is unable to connect to master…
DannyT
  • 235
  • 3
  • 7
4
votes
1 answer

How to handle certificates in Dockerfile

I am writing a Docker image based off of maven:3.6.0-jdk-11-slim to integrate with our Jenkins Pipeline. I am working in a corporate environment that's behind a pretty tight firewall, and I need to add certificates in order to download the necessary…
Emma Kelly
  • 53
  • 1
  • 3
4
votes
2 answers

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 respond to requests. (I've made several successful…
code_dredd
  • 156
  • 1
  • 1
  • 11
4
votes
1 answer

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 notifications for failed builds and it drives me…
Blaskovic
  • 181
  • 1
  • 5