Jenkins is an open source continuous integration server

learn more… | top users | synonyms

1
vote
0answers
23 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
28 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.
1
vote
2answers
146 views

Unable to scp in Jenkins

I'm a new user of Jenkins.I'm trying to run a shell script as part of the build step in Jenkins. This script has a scp command which transfers a .tar file to a remote server. Although when I run this ...
0
votes
0answers
25 views

RHEL Jenkins email notifications failing

RHEL Server release 6.7 (Santiago) I know there have been multiple questions about this on SO (none of which have helped me solve my problem), but I think my problem pertains to Linux more so than it ...
0
votes
1answer
30 views

Jenkins if statment

I am trying to write a simple If statement on the Execute Shell of Jenkins (1.638). I looked on similar issue and it still didn't work (see below the result output). I tried both [[ and [ and ...
0
votes
1answer
88 views

Execute commands without sudo inside jenkins

I've imported a bunch of jenkins jobs and these jobs have a lot of shell script commands.There are no sudo before these commands.Jenkins has its own user.Is there a way so I can execute these commands ...
0
votes
1answer
31 views

KVM Networking Topology

I would like to set up a network on my Server where I run KVM as a hypervisor. The Network will be used for a distributed Jenkins setup. The goal topology is the following: One machine (Jenkins ...
0
votes
1answer
91 views

Output is not getting written in nohup.out while starting the server from jenkins

I have written a shell script to start a server which is mentioned below and this script is executed from jenkins via ssh. nohup ./startWeblogic.sh & The server is getting started alright but ...
0
votes
1answer
86 views

Jenkins, Python and root

I am trying to run Python unittest as part of a Jenkins build. My build was failing as follows: + export PYTHONPATH=/usr/lib/python2.7:/usr/lib/python2.7/dist-packages:/var/lib/jenkins/jobs/...
0
votes
0answers
24 views

why jenkins clones repo on master if job runs on slave

I have a jenkins servers and configured slave nodes. Also I have a multi-configuration job which is configured to run on some slave node. Console log shoes that at first jenkins clones repository ...
1
vote
2answers
191 views

Opening port on IPTables not working

I'm trying to get Jenkins running on a RHEL 6 server. Jenkins is installed but not accessible due to firewall rules. If I stop iptables with service iptables stop, I can access Jenkins in my browser ...
5
votes
1answer
1k views

How to run builds in Docker containers from Jenkins

I am trying to use Jenkins to build a C++ project in a Docker container. I have no problem building in Jenkins, or building in a container outside of Jenkins. Below is what I tried. I am omitting the ...
0
votes
2answers
105 views

scp requirements for batch mode

I'm launching a script from a Jenkins server (on RHEL6) that, among other things, uses SCP with "BatchMode yes" to copy a file from a remote machine. The script runs properly outside of Jenkins, but ...
2
votes
1answer
2k views

if else bash script

I have the following bash script if [[$NODE_NAME = "Node1"]] then dir="../../test" fi that I use in Jenkins execute shell prompt. It gives me an error saying Slave1 command not found. I just ...
0
votes
1answer
198 views

SED find and replace element in filename with incremental values

A sample filename is Sample-0.0.1-SNAPSHOT.jar (result of a maven build in jenkins). My goal is to run a shell script that executes on failure and what that script does it adds incremental numbers to ...
3
votes
4answers
2k views

Which directory is taking up the most space

Jenkins has stopped building and I can see from df: that /var is maxed. Following this I can see the culprit is /var/lib/jenkins 52K alternatives ... 4.0K games 2.3G jenkins <--this ...
4
votes
1answer
4k views

Jenkins does not use system's locales

I got a interesting behavior in Jenkins. Jenkins' shell does not use my systems locales. Jenkins runs as user jenkins on my system. Logged in as jenkins via SSH: locale displayed: LANG=en_US....
0
votes
1answer
2k views

nginx reverse proxy for jenkins returning a 404

I have a vanilla installation of nginx on Ubuntu 14.04 and I am trying to run a reverse proxy in front of a Jenkins installation (running on port 8080 as bellow). I created a conf file to be included ...
6
votes
2answers
11k views

Call sudo from Jenkins

I have one build machine which has a user abc which is has limited sudo access. When I check out the source code and run my build script, it works fine. The build script contains sudo calls for which ...
0
votes
0answers
2k views

Xlib error “extension ”GLX“ missing on display” on VirtualBox guest OS

I have a remote build-machine with Jenkins and I'm trying to run GUI application. In Jenkins I installed Xvnc plugin, which uses TightVNC Server, but each build has failed. Earlier, there was a ...
3
votes
3answers
10k views

“Could not connect to display” in one user account

I have a GUI application written in Qt and I wanted to run tests by ssh (or Jenkins). There is only one user account, which allows to run it in display mode (ofc when I previously do "export $DISPLAY=:...
0
votes
0answers
101 views

jenkins hook up with apache sites-enabled

I am trying to hook in jenkins into my currently configured site. My current site is located at /var/www/aaronlote.com/checkout/ - jenkins is building into /var/lib/jenkins/workspace/aaronlote.com/ ...
-1
votes
1answer
8k views

How do I properly allow user jenkins to write to a specific directory under user minecraft home directory?

I am using Jenkins, I want to copy a file from the Jenkins directory in to the minecraft user directory, but I am not sure how to go about this, as when I run cp build/versions/*.info /home/*...
0
votes
1answer
725 views

Git / Jenkins permission problem

OS: Ubuntu server 10.04 LTS I have a strange issue going on with permissions and can't seem to track down what is causing it. The setup is as follows: Git Repository folders (and files in them) are ...
0
votes
2answers
4k views

Privileges for jenkins at apache's folder

I'm having issue similar to this: How to copy files as Jenkins "post build" action if i don't have privileges to destination directory I'm willing to move/copy/rsync files from jenkins ...
1
vote
1answer
1k views

How to copy files as Jenkins “post build” action if i don't have privileges to destination directory

I have the following users "architecture" : root access is disabled. admin user have access only to its home directory. Apache runs as root service (root is the only one that have access to web-...
9
votes
0answers
3k views

git-upload-pack hangs indefinitely

I have the following call structure: Jenkins runs fab -Huser@host set_repository_commit_hash:123abc. set_repository_commit_hash runs git fetch with pty = False. The child process ssh git@github.com ...