Questions tagged [jenkins]
Jenkins is an open-source continuous integration server with 300+ plugins to support all kinds of software development.
67
questions
0
votes
0
answers
7
views
I am unable to get the path where the push are stored in the Jenkin
I have setup Jenkin application on Ubuntu Server 20.04 and integrated it with GITHub (Screate key). I can successfully build the project, but I want to check the path of the files where it is stored ...
0
votes
0
answers
50
views
I'm trying to integrate github with jenkins but this is what I get
Failed to connect to repository : Command "git ls-remote -h -- git@github.com:ifeoluwashola/web_cicd.git HEAD" returned status code 128:
stdout:
stderr: No ECDSA host key is known for github....
0
votes
0
answers
26
views
cannot create extract-cd/casper/filesystem.size: Permission denied
I tried to create a customized ubuntu iso image file using Jenkins pipeline. When i try to execute these command I'll be getting the above permission error.
%sudo su
%sudo printf $(du -sx --block-size=...
1
vote
1
answer
2k
views
Installing Jenkins, Service fails with result "timeout"
I am trying to install jenkins on my raspberry pi running Ubuntu Server 22.04. I am following the directions from Digital Ocean but I am getting a timeout error when installing Jenkins
> apt ...
0
votes
0
answers
24
views
Jenkins builds instantly aborts whenever I try to build it. Ubuntu 22.04
I am having an issue with my jenkins server where some projects just don't build at all. When I click build now nothing happens, I tried refreshing and still nothing about a new build. It was working ...
1
vote
2
answers
10k
views
stderr: No ECDSA host key is known for github.com and you have requested strict checking
[enter image description here]
1Failed to connect to repository : Command "git ls-remote -h -- git@github.com:yeni/jenkins-terraform.git HEAD" returned status code 128:
stdout:
stderr: No ...
0
votes
0
answers
730
views
How to solve Jenkins npm command not found error?
I'm trying to run a vue project on jenkins.I have installed nodejs on my server.But I got an error below:
SSH: Connecting from host [manager.cweap.eap] SSH: Connecting with configuration [10.168.1.222]...
0
votes
0
answers
85
views
Why can't I use any docker commands inside Jenkins Docker container?
In my EC2 instance, I created a docker image from a running Jenkins container to get the existing jobs to the new image. Then I ran the new image with a different port mapping. Then when I enter ...
0
votes
0
answers
39
views
How to deploy application from Jenkins in Linux Ec2 instance to Windows Ec2 Instance?
I have a requirement to deploy applications from Jenkins in Linux to Windows Ec2 instance. I'm able to deploy it in Linux instances using SSH and SCP but to deploy it in windows, I don't know how to ...
0
votes
0
answers
103
views
Port 8090 seems closed even though it's open
I installed Jenkins on port 8090, tried disabling ufw and doing ufw allow 8090.
yougetsignal.com is still showing that port as closed, and trying to open the jenkins webapp results in a timeout error.
...
0
votes
1
answer
2k
views
How to pass json parameters for Jenkins using CURL?
I'm trying to build a job by passing JSON parameter for Jenkins through Linux CLI. But I'm not able to pass the parameters in JSON. I have used -g to turn off globbing. Still the issue persists. Any ...
1
vote
2
answers
3k
views
Changed Jenkins port doesn't applied
I have Ubuntu 20.04 and Jenkins 1.3.3
I need to change the local Jenkins port from 8080 to 8888.
I tried to change the config file sudo gedit /etc/default/jenkins in the string
#port for HTTP ...
0
votes
1
answer
1k
views
EOF: command not found in Jenkins Pipeline
I'm trying to launch Datadog agent in Jenkins pipeline, but I'm getting below errors:
line 7: warning: here-document at line 2 delimited by end-of-file (wanted `EOF'). EOF: Command not found Error.
...
0
votes
1
answer
4k
views
jenkins.service: Failed with result 'exit-code'
I'm trying to install Jenkins using this tutorial:
https://phoenixnap.com/kb/install-jenkins-ubuntu
but I get:
root@server:~# sudo apt install jenkins
Reading package lists... Done
Building dependency ...
0
votes
0
answers
39
views
Trying to upgrade but getting certificate error due to Jenkins [duplicate]
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
1
answer
166
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 ...
1
vote
2
answers
3k
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
1
answer
675
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
1
answer
1k
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
0
answers
3k
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
0
answers
2k
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
0
answers
285
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
1
answer
837
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
0
answers
79
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
0
answers
48
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
1
answer
2k
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
3
answers
4k
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
1
answer
849
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
1
answer
11k
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
1
answer
4k
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
1
answer
2k
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/...
9
votes
4
answers
17k
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
0
answers
185
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
1
answer
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
0
answers
1k
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
2
answers
10k
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
1
answer
7k
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
1
answer
646
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
3
answers
8k
views
Installing jenkins plugins automatically
I'm writing a script to download 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 mentioned....
1
vote
1
answer
5k
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
1
answer
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
1
answer
3k
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
0
answers
689
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
1
answer
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
1
answer
149
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
1
answer
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
1
answer
2k
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
1
answer
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
1
answer
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
2
answers
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 ...