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 open-source continuous integration server with 300+ plugins to support all kinds of software development.

0
votes
0answers
19 views

Can we run shell scripts which are located in gitlab from Jenkins

I have a Jenkins parameter job to deploy artifacts to the remote server. I wrote a shell script to check whether there is a directoy called backup in /var/www/test.com path if not create a directory. ...
1
vote
0answers
23 views

Jenkins Docker container rights/owner needed to access the jenkins-home

So, I have followed this tutorial to migrate my already configured Jenkins inside a Docker container, this works quite well. At the end of the tutorial, I launched the command: sudo chmod -R 777 ~/...
0
votes
0answers
6 views

Jenkins logs out immediately after logging in

I just installed Jenkins on my Ubuntu 16.0.4 VPS, running Apache2. However, I just can not get it to work. As soon as I log in with correct credentials, it redirects back to the log in page as if I am ...
1
vote
2answers
484 views

Jenkins list user ids using script console

I want to list all users in jenkins, via the console script that jenkins has. So far i managed to list all the users using this: import hudson.model.User User.getAll().each { user -> println ...
0
votes
1answer
358 views

Edit the /etc/sudoers file to provide permission to Jenkins

I need to edit the /etc/sudoers file using the command: sudo gedit /etc/sudoers and add the below: jenkins ALL=(ALL) NOPASSWD: ALL Post adding and trying to save I am getting the error: (...
0
votes
1answer
177 views

Failed to execute child process /snap/bin/jenkins (No such file or directory)

I was trying to install Jenkins from the Ubuntu software , While I click on launch button getting the below error. Error : There was an error creating the child process for this terminal. Failed to ...
0
votes
0answers
33 views

adding relation between git and jenkins

I am new to juju,and i deployed two applications jenkins and git, i am trying to add relation between the two charms,but i am not able to do. i was configured below file in hooks as blow. $cat ...
0
votes
2answers
781 views

Installing jenkins plugins automatically

Im writing the script which downloads jenkins war, skip setup, then install plugins for it. i downloaded batch-install-jenkins-plugins.sh using some link, and also created the plugins.txt file as ...
0
votes
0answers
20 views

Jenkins does not show status of the last build in the status of the last build column

We have a Jenkins server (not configured by myself) where a list of GitHub projects gets built. In the screen that lists all the repositories, the headers of the list have the following names and ...
1
vote
1answer
599 views

How to fix not signed repos which worked before?

on an Ubuntu 16.04 server I get the following messages when running sudo apt-get update: E: The repository 'http://dl.google.com/linux/chrome/deb stable Release' is no longer signed. N: Updating ...
0
votes
0answers
106 views

invalid password after computer is sleep

I have the Ubuntu 16.04 installed on a Virtual machine in windows 10. When the same password is inserted after machine sleeps the login will be failed saying invalid password. But I can login again ...
0
votes
0answers
18 views

allow jenkins to override files owned by www-data

On our EC2 instance, Jenkins uses the user "ubuntu" to copy the file via SSH, but fails to update files owned by "www-data". There is no way to use "www-data" as it has no login. How do I solve this ...
1
vote
1answer
476 views

Angular CLI & Jenkins continous integration permissions

I'm using jenkins for a continuous integration with angular cli, here are my steps : Push to github Jenkins pull the code from my github repository, do npm install and ng build Everything is fine ...
0
votes
0answers
110 views

Error while trying to start jenkins on ubuntu VM

$ sudo systemctl start jenkins Failed to issue method call: Unit jenkins.service failed to load: No such file or directory. See system logs and 'systemctl status jenkins.service' for details. Tried ...
0
votes
1answer
351 views

Find and Grep working properly via prompt but not via Jenkins

I´m trying to filter some files using find and grep via the command below: find . -type f -exec grep -q --exclude=*.{cpp,gradle,java,ttf,txt,xml,md} . {} \; -and -print The funny thing is: via ...
0
votes
0answers
67 views

How can I find out where chef server is installed in my Ubuntu system?

I have installed chef server but I am unable to find the path to it. Where is it installed, or how can I find out where it is installed?
1
vote
1answer
778 views

Jenkins as root cannot create folder

I have a Jenkins instance running that should build an Android project. When I start the task, I receive the following exception: Could not create service of type ScriptPluginFactory using ...
0
votes
1answer
122 views

Ubuntu Jenkins appends windows paths when build

I'm trying to build my asp.net core application using Jenkins which is hosted with Tomcat8 on an Ubuntu 16.04 machine. The first build succeeds but when starting builds after that they fail (without ...
0
votes
1answer
466 views

Configuring GitLab and Jenkins on different URLs

I'm a newbie at configuring servers and networks and I just recently installed Ubuntu Server on an old laptop to work on. The server currently has Jenkins, GitLab and Apache2 installed. I can ...
1
vote
1answer
524 views

Excluding certain folders within a directory from being copied in a copy of the directory

I'm currently using the following shell command to copy the contents of a local directory to another directory: cp -a /var/lib/jenkins /opt/jenkinsbackups Once the files are copied, I am tarring the ...
0
votes
0answers
1k views

cannot run jenkins build job as another user

I want to run jenkins build job as another user. here is what I do, In the build step, I add execute shell as the build step Then here are the commands I run, sudo su luvpreet echo $USER In the ...
-2
votes
1answer
1k views

(Editing a file in the etc repertory ) Cannot edit /etc/sudoers file [duplicate]

I want nopasswd thing for my jenkins user. For that, I have to edit the /etc/sudoers file, But luvpreet@DHARI-Inspiron-3542:/$ sudo vi /etc/sudoers This gives me that this file is readonly and so, ...
0
votes
1answer
682 views

Install jenkins 2.50 on ubuntu 14.04

Our production CI system is an Ubuntu 14.04 box running Jenkins 2.50. We want to reproduce that setup on a different box, so that we will be able to test and prepare for some necessary changes ...
0
votes
2answers
2k views

How to run Perl script in jenkins

I have a Perl script which is running fine on a Linux server, I am trying to execute the same from Jenkins using "execute shell" option. Below is the output: Started by user anonymous Building in ...
10
votes
3answers
57k views

How to get username and password for recently installed Jenkins?

I have recently installed Jenkins on private server. Now when I have rebooted the server, it is asking for username and password. But, I have not given any such credentials. I have turned disable ...
0
votes
1answer
1k views

Syntax error: end of file unexpected

I have a shell script which is use to build a project on jenkins. When i run that script on my local windows machine it runs fine, But when i run that script on my Ubuntu server it gives an error ...
1
vote
0answers
181 views

Ubuntu service starts as root after reboot [closed]

Every time i do a reboot of my Ubuntu machine so autostart starts my jenkins service under root user, is there a way of starting this service under a different user after a reboot ?
0
votes
2answers
2k views

Configure Jenkins CSP for Ubuntu Service

I upgraded to v2.2 of Jenkins on my server and I want to relax the new Content Security Policy configuration. I can successfully run System.setProperty("hudson.model.DirectoryBrowserSupport.CSP", "") ...
4
votes
1answer
8k views

Cannot activate python virtual env in jenkins shell script

I have installed Jenkins on ubuntu 15.10. In a shell build step I am trying to create a Python virtual environment and activate it: But I get the following error when I run the job: /tmp/...
1
vote
0answers
436 views

Restart Upstart Service From Jenkins

I have a jenkins continuous integration service running that manages the automated deployment of our software to a development machine. So far, I have successfully set up the server to copy over the ...
1
vote
1answer
386 views

How to setup jenkins in a ubuntu 12.04 machine?

I have a machine in production which is running Ubuntu 12.04. I need to setup Jenkins on it. I was trying to follow this tutorial - https://wiki.jenkins-ci.org/display/JENKINS/Installing+Jenkins+on+...
5
votes
1answer
8k views

Jenkins Security

What is the location for the Jenkins System Console Output files? I am configuring Jenkins Security on Ubuntu, and have been locked out at the login screen. Tried every account I can remember but not ...
1
vote
2answers
560 views

How do I deploy jenkins and jenkins-slave if they have mismatching series?

Note: I'm running this on 3 Ubuntu trusty VM's on my OS X laptop over VMWare Fusion. I am a juju newbie and having some trouble with setting up jenkins-slave. I have a bootstrap machine, and 2 other ...
2
votes
0answers
2k views

Upgrade Jenkins 1.486 (12.04) to latest build from jenkins-ci.org

I am wondering whether it is possible to upgrade a Jenkins 1.486 installation (on Ubuntu 12.04, official repository) to the latest version offered on jenkins-ci.org. I really need to upgrade because ...
5
votes
2answers
6k views

unable to install/recover jenkins after upgrading from ubuntu 12.04 to 14.04

I did an upgrade of Ubuntu from 12.04 to 14.04 and was surprised to discover that my earlier installed and configured jenkins is broken. To add to the misery, if I do an apt-get install jenkins or apt-...
1
vote
3answers
2k views

Jenkins Git Ubuntu Server

I am trying to install a completely working Jenkins on my old PC with Ubuntu Server 12.04. I think my installation of Ubuntu Server and Jenkins was succesfull. I can access the Jenkins page by ...
9
votes
1answer
24k views

Coruppted Jenkins need to reinstall

My jenkins looks like corrupted. After installing older version I tried to upgrade. When I tried wget -q -O - http://pkg.jenkins-ci.org/debian/jenkins-ci.org.key | sudo apt-key add - sudo sh -c 'echo ...
3
votes
1answer
179 views

Understanding Ubuntu juju installed in Amazon Cloud

I will explain, what I have: I created an instance from Ubintu juju AMI from community AMIs. I connected to this instance using ssh. I would like to deploy a "charms" here, in my instance. But, When ...
1
vote
2answers
324 views

jenkins-common package for latest jenkins builds

I am required to upgrade jenkins due to a bug breaking our builds, I've used the jenkins repository from http://pkg.jenkins-ci.org/debian/ and have come up against a wall. Required Jenkins version is ...
1
vote
2answers
3k views

My jenkins jobs fails to start

When I try to start jenkins on my Ubuntu 12.04.3 LTS I get an error $ sudo start jenkins start: Job failed to start
8
votes
2answers
8k views

Problem in jenkins installation on Ubuntu 12.04.3 LTS

$ sudo apt-get install jenkins Reading package lists... Done Building dependency tree Reading state information... Done The following NEW packages will be installed: ...
10
votes
2answers
46k views

How to start jenkins?

I installed jenkins via sudo apt-get install jenkins. However, it doesn't start up. Tried to start it manually using sudo /etc/init.d/jenkins start. But it shows this message when I try to start it ...