Questions tagged [jenkins]

Jenkins is an open-source continuous integration server with 300+ plugins to support all kinds of software development.

Filter by
Sorted by
Tagged with
0
votes
0answers
24 views

Trying to upgrade but getting certificate error due to Jenkins

I am upgrading an old 16.04 LTS machine (yes, I know I'm stupid for waiting this long when it is EOL) It seems to be a problem with Jenkins and/or its repositories sudo apt-get update gives me: Err:...
0
votes
0answers
14 views

Jenkins returns 403 when monit tries to access

jenkins is running on port 8085 and accessible via browser. Monit always gets 403 when trying to access. Remote Host 'jenkins' status Connection failed monitoring status ...
0
votes
1answer
68 views

problem in installing Jenkins: Sub-process /usr/bin/dpkg

when i try to install Debian-stable version of Jenkins in Ubuntu : Errors were encountered while processing: jenkins E: Sub-process /usr/bin/dpkg returned an error code (1) i do this instructions and ...
0
votes
1answer
148 views

Trying to install/startup Jenkins in Ubuntu Server - hudson.util.AWTProblem

I am trying to install/startup Jenkins (2.303) in Ubuntu, but now for Server (for Desktop there is no problem) JAVA_HOME and JENKINS_HOME environment variables defined on the .profile file About Java ...
0
votes
0answers
19 views

Show parameters only if Copy scenario specified (Jenkinsfile)

trying to create a jenkinsfile with dynamic parameters. Need to show string parameter only if Copy DEPLOY_ENV is specified. Tried to do it with Active Choice Plugin, as it is done for REGION, but didn'...
0
votes
1answer
247 views

Jenkins sudo password

I have install jenkins in ubuntu OS. when i build a project and run some executable shell script then it doen't access the file. how to add sudo password in shell script.
1
vote
0answers
804 views

How to uninstall Jenkins war packages completely from list

Long back I have installed Jenkins and later uninstalled also, now I am tring to reinstalling it but could not login localhost:8080 and also even though I have uninstalled Jenkins still I could see ...
0
votes
0answers
602 views

Jenkins: sudo: a terminal is required to read the password; either use the -S option to read from standard input or configure an askpass helper

While studying Jenkins tool, I am trying to execute a simple command on my private Ubunto machine, and I get the error message in subject. So far, all my attempts failed: sudo -S ps -ef | grep ...
0
votes
0answers
187 views

Jenkins apt upgrade error /etc/default/jenkins: --httpListenAddress=127.0.0.1: not found

I have Jenkins runnind on Ubuntu 20.04. Jenkins has config file /etc/default/jenkins which contains directive --httpListenAddress=127.0.0.1 which according documentation set Jenkins to listen only on ...
0
votes
1answer
446 views

Ubuntu 20.04 + Jenkins - access denied and directory does not exists

I have VSP with Ubuntu 20.04 and Jenkins installed on it. Also have a Java Maven test project which should run as Jenkins job. Few hours ago everything worked well. Then I added one new feature to the ...
0
votes
0answers
483 views

Jenkins gives Permission denied for sshpass while running sshpass command

I have installed sshpass on my server where Jenkins is running using sudo apt-get install sshpass I also have restarted the Jenkins and exported the Path to sshpass using export PATH=$PATH:/usr/bin/...
0
votes
0answers
68 views

How to create ubuntu server in ubuntu 18.04 operting system?

I want to install the docker for learning purposes.But most tutorials mention that we have to use the Ubuntu server for that.Currently I am using the Ubuntu 18.04 OS.How can I create the Ubuntu server ...
1
vote
0answers
42 views

Ubuntu user access rights for Jenkins

I have Two users on Ubuntu setup user : kmb and user : dev where user kmb has installation of Qt, Qt for webassembly and Jenkins server also where as dev has nothing installed in it so when i login to ...
0
votes
1answer
786 views

Jenkins installation failing

Can someone help me with Jenkin installation on Ubuntu I am getting following log Reading package lists... Done Building dependency tree Reading state information... Done jenkins is already ...
0
votes
3answers
3k views

Trying to install Jenkins on Ubuntu 18.04

@Kulfy As advised tried installing the key in source list, got following error: ~$ wget -q -o pkg.jenkins.io/debian/jenkins-ci.org.key | sudo apt-key add - wget: pkg.jenkins.io/debian/jenkins-ci.org....
0
votes
1answer
543 views

How to Execute Build command in jenkins(Ubuntu)

I need to integrate a simple selenium script with Jenkins. Can someone please help me to get a shell script code to update in the build section. Currently, I am tried with run.bat file which returns ...
5
votes
1answer
8k views

Bash script if condition not working when called from Jenkins Pipeline

The below is my Jenkins Pipeline stage stage ('Import') { steps { sshagent([sshCredentials]) { sh ''' #!/bin/bash ...
1
vote
1answer
3k views

How to configure Java for Jenkins on Ubuntu

I have a VM with Ubuntu 18.04 with JDK 12 as default java in it. I want to setup a Jenkins server on it and as it do not support JDK 12 yet, i have installed JRE 8 in it to support Jenkins. How to ...
1
vote
1answer
1k views

How to enable a logrotation with Jenkins

I need to enable the logrotate service with Jenkins in order to rotate its log files (/var/log/jenkins/jenkins.log). So, I configured a script in /etc/logrotate.d with right permissions: /var/log/...
7
votes
3answers
10k views

Jenkins error "Incorrect Java version" for Java11. After removing Java11 and installing Java8. java is not found anywhere

I tried to install latest stable Jenkins version which supports Java 11. So after installing Java 11(JDK) I got the error from Jenkins that incorrect java version was found. So uninstalled the Java ...
1
vote
0answers
175 views

Is it safe to permit using sudo to application-created users?

I have a jenkins setup on my server that has automatically created the jenkins user, which is used for its os-operations. However, I need Jenkins to stop and start a service (via systemctl) after a ...
1
vote
1answer
1k views

password for jenkins: jenkins is not in the sudoers file. This incident will be reported

I have added jenkins as a sudo user in my build node: $ sudo usermod -aG sudo jenkins This also works on the build node. However, in my build log there is: [sudo] password for jenkins: jenkins is ...
1
vote
0answers
949 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 ~/...
3
votes
2answers
8k 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 -> ...
1
vote
1answer
6k 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
594 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
2answers
7k 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 ...
1
vote
1answer
4k 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 ...
1
vote
1answer
1k 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
1answer
2k 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
571 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?
2
votes
1answer
3k 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
146 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
1k 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
1k 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 ...
-1
votes
1answer
5k 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
2k 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
3k 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 ...
17
votes
3answers
136k 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
3k 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 ...
0
votes
2answers
3k 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", "") ...
5
votes
1answer
18k 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
587 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
481 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
9k 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
603 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 ...
8
votes
2answers
21k 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-...
2
votes
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 ...
10
votes
1answer
34k 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 ...