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

0
votes
1answer
18 views

find command fails in jenkins, but not in terminal

I want to export all frames from a lot of video files, automatically in a jenkins build job using ffmpeg. This script is running fine when I ssh into the slave and execute it in the same folder: ...
1
vote
1answer
15 views

How to know if Jenkins is patched on CentOS 7

I've been using rpm -q --changelog package_name to check if a certain cve vulnerability has been patched on my system. However, when I'm doing the same for jenkins, all I got was Sat Apr 19 ...
0
votes
1answer
29 views

Invoke UI from pseudo console

We have some UI test cases which we are currently invoking manually on our Linux machine (with Gnome enabled).  We login to the machine and run the below command: java -jar test_case.jar to invoke ...
0
votes
1answer
125 views

curl in Jenkins,

What i want to do is: The 1st curl command output will be the input of the 2nd curl command... Have a jenkins build which originally runs a curl commands such as: curl -u $user:$PS -h "content-type:...
0
votes
1answer
171 views

JSON on the command line with jq in Jenkins

I used jq -r '.version' package.json command to filter the version from package.json file using the terminal. Can we use jq command in Jenkins shell without locally installing it?
0
votes
1answer
40 views

jenkins can't recognise known_hosts file

I am using Centos 7. I have Jenkins installed on it I have copied ~/.ssh directory to /var/lib/jenkins/ Contents of .ssh directory are authorized_keys id_rsa id_rsa.pub known_hosts Now when I am ...
1
vote
0answers
28 views

Jenkins on solaris operating system

Need to install jenkins server on solaris box, this is the version details, can we get any jenkins package to install? Solaris details: Oracle Solaris 10 8/11 s10s_u10wos_17b SPARC
0
votes
1answer
135 views

can i safely remove /var/log/jenkins/jenkins.log (/var: 100% used) [duplicate]

I am running out of disk space with /var system file and noticed /var/log/jenkins/jenkins.log file is occupied 7 GB. Can i safely remove this log file ?
0
votes
1answer
420 views

Jenkins write permission on linux

I'm having trouble getting Jenkins to write to a directory, however I believe I have set the correct permissions. Jenkins is being run by a user named "jenkins", who belongs to a group called "jenkins-...
2
votes
1answer
79 views

Redirecting output to a file silently? [closed]

So I have this here: echo "$(some docker command that gives output)" > file When I run this from Jenkins, the command’s output is shown in the Jenkins log. I do not want this to happen. How can ...
0
votes
4answers
325 views

Disowning child from parent process

If $PID_PARENT launched $PID_CHILD, how can I detach (disown?) $PID_CHILD from $PID_PARENT so that, when I kill $PID_PARENT, $PID_CHILD keeps running like nothing happened? Concretely, my $PID_PARENT ...
1
vote
0answers
830 views

Unable to execute script on remote host using ssh-plugin - Jenkins

I am trying to test ssh-plugin on Jenkins to execute the shell script on the remote host. I have added the site and the connection is successful. However, when I tested this Execute shell script on ...
0
votes
1answer
73 views

jenkins behind nginx in kubernetes

I have a jenkins server behind a Kubernetes (AWS ELB - NGINX proxy ). When I try to trigger a remote job using curl it fails: # curl -X POST -H "$CRUMB" "https://jenkins:add91b3fefefefefef@jenkins....
1
vote
1answer
430 views

How to set ansible playbook to reboot servers

I want to be able to write one playbook to update all my servers in different environments - stage and prod. I do not want to reboot these servers every time there is an update to the kernel, I only ...
4
votes
1answer
1k views

Ansible - How to mark a tasks as success when it failed actually

We are using some pipelines to build servers using ansible and one of the task is to check if server is online (means a production server in inventory list by accident). We check the port 443 and ...
0
votes
1answer
596 views

how to disable the “CSRF protection ” in jenkins by default

I need to disable the CSRF protection in jenkins, which is enabled by default. The problem is after containerizing this, when ever i spun up a new container with jenkins inside it, it throws a "No ...
0
votes
0answers
7 views

Too many header redirection issue in jenkins container

I have setup kubernetes ingress controller, on AWS, i deployed a POD which is serving jenkins service,, i am able to access to jenkins url over internet servicename.domain,com, but when i try to ...
0
votes
2answers
41 views

Is it possible to download and configure jenkins with a script?

I want to develop a continuous integration with one or many scripts locally and then on a server. For that I need Jenkins. I installed jenkins in a docker container, but would it be possible to ...
-1
votes
1answer
198 views

Passwordless ssh does not work with multiple servers

I have a jenkins server that runs a job to ssh (passwordless) out to Server A and runs a script. This works very well and I set it up by doing: ssh-keygen -t rsa on Jenkins Copy over the id_rsa.pub ...
2
votes
3answers
18k views

Where should environment variables be set for Jenkins

I am using Jenkins to automate application builds using Maven on Linux. Where should I set environment variables such as $JAVA_HOME and append items to $PATH so that they are available to Jenkins? ...
0
votes
0answers
176 views

How to diagnose this Kubernetes pod high load

I am executing a Jenkins pod instance in IBM Cloud kubernetes service. I am getting a very high load even though none of the processes has high load. I have read that it has to do with IO requests. ...
0
votes
1answer
255 views

Unable to run Jenkins Slave jobs on AWS EC2 Centos 7 VM

I have Jenkins Master Server running on prem and my slaves are running on AWS. It's Centos 7 EC2 VM. When Jenkins tries to push slave.jar file over scp it fails with the following error message: ...
1
vote
1answer
178 views

jenkins job not waiting defined time

i have a jenkins job that is executing a shell, i want it to wait , if a particular condition is not as per desired state,, but the job executes with 22 sec, where as i have asked it to wait for 30 ...
0
votes
0answers
162 views

unable to load variable value in jenkins build

ok i have situation my in current jenkins build. Build steps are like this sh new_script.sh $USER helm package $USER container_name=`helm install $USER-0.1.0.tgz | grep ContainerCreating | awk '{...
1
vote
1answer
1k views

branch name in Jenkins regular pipeline job

For a Jenkins pipeline job having web-hook trigger in Git/Bitbucket, each repo push triggers pipeline job. How we can know branch name in pipeline job on which push/change is committed. I need this ...
1
vote
1answer
1k views

Connecting to a docker host!

Does any one how to connect to a docker host uri?? i need to setup jenkins to perform task on a docker host?? This is the docker host info. This is Ubuntu based machine. root@node1:~# netstat -tulnp |...
1
vote
1answer
240 views

Running a script through jenkins [closed]

I need to run a script through jenkins, the script is located, at a user x home directory, /home/x/script.sh This script should only run through user x only as it will pull config settings from ....
0
votes
0answers
83 views

Jenkins nginx config 'not secure' two subdomains

I am getting a not secure on the website and I can't figure out why, here's the nginx config; upstream jenkins-av-server { server jenkins.audience-view:8080 fail_timeout=0; } server { listen 80; ...
0
votes
0answers
163 views

Jenkins in Docker doesn't have access to /dev/vboxnetctl for VirtualBox

I'm trying to set up Jenkins (runs in Docker; official image) which runs as user "jenkins". And Jenkins should start a virtual machine using docker-machine and virtualbox. I bind-mounted /dev/...
0
votes
1answer
611 views

Trying to restrict Jenkins access to specified group in FreeIPA

========== IPA config ========== ========== Jenkins config ========== ========== Jenkins warning (user in "jenkins-usergroup") ========== ========== Jenkins warning (user not in "jenkins-usergroup")...
0
votes
1answer
440 views

Apache mod proxy does use a different charset then proxied server

I'm running jenkins, a java web application, on port 8080 behind an apache2 server using mod_proxy. +---------------+ +----------------+ | apache2 | -----> | jenkins:8080 ...
1
vote
1answer
3k views

Permission denied in jenkins [closed]

I am trying to run a shell script in jenkins and have given all permissions on the file. On the run, jenkins mentions the below error Started by user admin Building in workspace /var/lib/jenkins/...
0
votes
1answer
221 views

Incompatible character encoding in Jenkins can't resolve

I am attempting to run a Cucumber (Ruby) Test Suite from Jenkins that tests whether or not 2-4 byte UTF-8 characters are valid names for groups. I have tried a number of solutions and have been ...
0
votes
1answer
337 views

Keep docker containers beyond jenkins job execution

is there a way to keep docker containers until after jenkins build finishes. I would like to restart and attach and bash into it.
0
votes
1answer
1k views

How to connect to local host 8080 using terminal's hostname in mac?

I have been using docker through direct installation of Community Edition. Can anyone please let me know how to connect to local host after creating a docker container using my machines hostname? ...
0
votes
1answer
374 views

Can I skip specific file from “**/*.xml” rule in jenkins?

So, the requirement is, consider all .xml files(which is the original pattern) except one specific file(example: test/special.xml)
1
vote
0answers
143 views

Jenkins deploy doesn't pass variable to java

Problem that I ran into is that when we deploy our Java application via Jenkins hostname variable is not passed to it. Inside the script somewhere we define HOSTNAME=$(hostname -f) variable, which we ...
1
vote
1answer
2k views

How to launch jenkins?

I am on Ubuntu 16.04.My java is here which java /usr/bin/java Next cat /etc/init.d/jenkins #!/bin/bash # /etc/init.d/jenkins # debian-compatible jenkins startup script. # Amelia A Lewis <alewis@...
0
votes
1answer
126 views

configuring jenkins 2.32 on centos7

i have installed jenkins 2.32 on centos7, and created two users 1=admin 2=sanjeev problem i am facing is that when i logged in from normal user sanjeev, he can go to the configure link and is able ...
1
vote
1answer
256 views

Icon next to the build job list not showing up in jenkins

I have a problem with one of my coworkers is not able to see the build icon next to each job. I already tried to make the permissions in Manage Jenkins -> Configure Settings -> Project-based ...
2
votes
1answer
4k views

Jenkins pipelines, sh, quotes and spaces

I am trying to setup sh command as part of my Jenkins pipeline. This command has one parameter where list of values is supplied. Those values have spaces in them. I have tried so many things, arrays, ...
1
vote
1answer
997 views

Jenkins permission to build in home dir

I am trying to build a Git project using Jenkins on an ec2 instance. The custom workspace address I want to keep is /home/ec2-user/xyz. I get the following error: java.io.IOException: Failed to ...
1
vote
2answers
329 views

How to use Git merge drivers with Jenkins

I recently searched for a way to merge pom.xml-s automatically with Git merge driver. Got it working locally, but now I'd like to add this solution to Jenkins -- no luck so far. What I did: 1) I ...
0
votes
1answer
364 views

Hosting Jenkins and Web App on tomcat server at the same time

I have a web app running on one tomcat server on 443 port. I want to set up Jenkins on same tomcat server and that too on same port i.e. 443. Is it possible to have Jenkins and Web on the same server?
1
vote
0answers
500 views

How to switch the user and to pass the password along in Groovy script?

How to switch the user and to pass the password along in Groovy script? As I am working in Jenkins Pipeline plugin, wanted to execute some commands with root privilege, but default user is jenkins. ...
2
votes
2answers
6k views

What is exactly is going on with my jenkins user?

I have installed Jenkins and I have jenkins as a user in my /etc/passwd: jenkins:x:995:993:Jenkins Continuous Integration Server:/var/lib/jenkins:/bin/bash nginx:x:994:992:Nginx web server:/var/lib/...
8
votes
2answers
55k views

Using “su - ” to change user given “No passwd entry for user”

Specifically, I am trying test something on my build server by switching to the "jenkins" user: sudo su - jenkins No passwd entry for user 'jenkins'
0
votes
1answer
115 views

Scaling Jenkins setup using Apache-Mesos and Marathon

I need some high level recommendations/steps from those who have already done this work. I need to scale my Jenkins to handle large number of jobs with minimal effort and configuration. I came to know ...
1
vote
0answers
382 views

Abort pipeline build if no new commits

In a Jenkins pipeline script, I am using the checkout function with class "GitSCM", as in the following example: checkout( [ $class: 'GitSCM', branches: [[name: '*/<branche>']]...
-3
votes
1answer
593 views

Not able to get value of parameterized variable in jenkins by perl

I'm not able to get the value of parameterized variable in jenkins using perl , I am using ex. $GIT_BRANCH=$ENV{"Git_Branch"}; but no value is passed to the $GIT_BRANCH variable.