Suggestions needed

2016-10-26 Thread Jeffrey Harris
I'm trying to figure out a way to automate submitting a test to our hardware testbed and waiting for the test to complete so that the Jenkins job can report its status. Are either of the ideas below possible? Create a Jenkins job that submits the test (this is the easy part), waits until the

Cannot launch slaves now I'm using an Apache proxy

2016-10-26 Thread Jonathan Hodgson
Hi, Does anybody have a working example apache conf running jenkins on a different machine to apache? Things were working fine whilst I was accessing jenkins directly, but I need to do it through Apache. Jenkins is running on a different machine to Apache. Access to Jenkins works, with a redi

Re: [Jenkins-infra] Scheduled infrastructure maintenance Oct 27 00:00 UTC

2016-10-26 Thread R. Tyler Croy
I am pleased to report that the maintenance window has completed, and outside of some Docker annoyances everything went fairly well. I will continue to keep an eye on services for the next couple hours just in case, but please continue your regularly scheduled Jenkins hacking :) - R. Tyler Croy

How to clone a git repo with a different branch than master on Jenkinsfile

2016-10-26 Thread Mario Rodriguez
Hi, I have a very simple Jenkinsfile pipeline that uses "checkout scm" but I'm looking for a way to specify this command to use a different branch than master. any ideas ? thanks -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscrib

Limit time a job can spend waiting for an executor in the Queue

2016-10-26 Thread eborgstrom
Hi, We are using Jenkins with the GitHub Org Folder plugin to allow our users to leverage Jenkinsfiles for job definition. One thing we have run into is when a user uses a label that does not exist for their node block then the job ends up waiting in the Build Queue forever. We would like to

discard old build

2016-10-26 Thread Eddú Meléndez Gonzales
Hi, Jenkins is working with Bitbucket Branch Source Plugin, "Discard old build" is set when "Bitbucket Team/Project" job is created. So, branches and PR configuration should inherit these values. Actual behavior: is not working as expected. Jenkins version: 2.19.1 Cheers, -- You received t

Need to add Suse 9.2 - 32bit jenkins slave to Jenkins master running Jenkins version: 2.19.1

2016-10-26 Thread bgee
Hi, Has anyone been able to add a Suse 9.2 slave to a recent version of Jenkins like 2.19.1? Suse 9.x comes with java 1.6 but it appears that Jenkins require java 1.7 and recommends 1.8. I'm trying to install java 1.8 but it requires gcc 4.2 and glibc 2.4 but I can't find these packages anywher

Re: Troubleshooting reverse proxy setup

2016-10-26 Thread Jonathan Hodgson
I should probably add that although I can access jenkins through the browser from my slave machines, connecting them as slaves no longer works. It was fine when I accessed jenkins directly, but now I've set up the proxy, neither the launch button (which I use with my windows slave) nor the "jav

RE: permission denied error when copying files in jenkins

2016-10-26 Thread John Mellor
‘/var/www/html directory normally requires root privileges to update. Doing so as user Jenkins is not going to work unless you have altered the directory permissions (highly non-advisable) to match. From: jenkinsci-users@googlegroups.com [mailto:jenkinsci-users@googlegroups.com] On Behalf Of D

Re: bitbucket & jenkins integration

2016-10-26 Thread Eddú Meléndez Gonzales
Hi Michael I'm using Bitbucket Cloud. Cheers, On Wednesday, October 26, 2016 at 8:20:54 AM UTC-5, Michael Kobit wrote: > > Are you using Bitbucket Cloud or Server? > > On Tue, Oct 25, 2016, 20:57 Eddú Meléndez Gonzales > wrote: > >> Hi, >> >> I am working with Jenkins 2 and Bitbucket Branch Sou

Re: permission denied error when copying files in jenkins

2016-10-26 Thread David Hohl
I have actually the same problem, if I run: su -l jenkins -s /bin/bash -c 'cp /var/lib/jenkins/workspace/xxx/index.php /var/www/html/tmp/' the result is: cannot create regular file ‘/var/www/html/tmp/index.php’: Permission denied What can I do? On Friday, April 22, 2016 at 2:29:11 PM UTC+2,

Quiet Period in MB Pipelines?

2016-10-26 Thread Michael Lasevich
Is there a way to enable quiet periods via MB Pipeline and properties command? The option is not there in the pipeline syntax codegen and I am wondering if there is a reason for that... Thanks, -M -- You received this message because you are subscribed to the Google Groups "Jenkins Users"

Troubleshooting reverse proxy setup

2016-10-26 Thread Jonathan Hodgson
Hi, I'm currently getting a "It appears that your reverse proxy set up is broken." message on the Manage Jenkins Page. I'm using Apache as a proxy to Jenkins (which is on another machine). My proxy setup looks like thsi ProxyPass /jenkins http://192.168.0.6:8080/jenkins nocanon ProxyPa

Re: jenkins ssh-agent ansible

2016-10-26 Thread AC
I think this actually has to do with the ssh-agent not running in the same session. If this is the case is my only option to use the Jenkins ssh-agent plugin? On Wednesday, October 26, 2016 at 2:16:37 PM UTC-4, AC wrote: > > Hello, > > I have Ansible installed on my Jenkins master. The Jenkins A

jenkins ssh-agent ansible

2016-10-26 Thread AC
Hello, I have Ansible installed on my Jenkins master. The Jenkins Ansible plugin was working and completing jobs until I switched over to using ssh-agent to encrypt my private key. However, I can still run Ansible commands from the Jenskins Master CLI but not from the Jenkins Ansible Plugin. D

Get jenkins prefix in pipeline groovy

2016-10-26 Thread Jonathan Hodgson
Hi, My jenkins instance is accessible on http://MyWebsite.com/jenins with "jenkins" being set by --prefix=jenkins in the jenkins defailt file. Standard. Since I'd like my scripts to be portable, I don't want to hardcode the "jenkins" into paths in the script, so how can I get this value from

Scheduled infrastructure maintenance Oct 27 00:00 UTC

2016-10-26 Thread R. Tyler Croy
I am scheduling a maintenance window for later today (17:00 PDT / 00:00 UTC) for 60 minutes to apply some new kernel patches to the project's infrastructure. The ticket to track this work can be found here: This will be a simple update and re

RE: Jenkins upgrade from 1.608 to 2.9-1.1 version on CentOS release 6.8 (Final).

2016-10-26 Thread John Mellor
Kaushal ran: Ø #cp -r jenkinsnbackup /opt/jenkins I assume from the prompt that you ran this as the wrong user, and the permissions and ownership are all now messed up. Correct? From: jenkinsci-users@googlegroups.com [mailto:jenkinsci-users@googlegroups.com] On Behalf Of Eric Pyle Sent: Oc

shell script to restart windows machine using jenkins job

2016-10-26 Thread Mayank Raghuwanshi
Hello All, I am trying to automate windows machine reboot using jenkins job. I created small shell script to restart windows machine in jenkins but when shell script runs from jenkins job it fails due to access permission. I want to know at what level or how i can provide access to Jenkins or j

Re: Jenkins upgrade from 1.608 to 2.9-1.1 version on CentOS release 6.8 (Final).

2016-10-26 Thread Eric Pyle
I'm assuming your new Jenkins version is installed in the same location as the old one. Have you looked at the Jenkins logs to see if there are some errors reported which may be preventing your jobs from loading? Eric On 10/26/2016 12:11 PM, Kaushal Shriyan wrote: Hi, I have installed jenki

Re: Constructor or equivalent for "Global Variables" in libraries

2016-10-26 Thread Michael Lasevich
Yeah, I would expect it to work as well, but it simply does not. It is probably something to do with either the way this is loaded or CPS, we have already seen that CPS has hard time handling some basic Groovy concepts like getters/setters - I was just hoping I was missing something obvious :-

Jenkins upgrade from 1.608 to 2.9-1.1 version on CentOS release 6.8 (Final).

2016-10-26 Thread Kaushal Shriyan
Hi, I have installed jenkins-2.9-1.1.noarch on CentOS release 6.8 (Final). I have imported the jenkins folder from the old server which is running jenkins-1.608-1.1.noarch. I have restarted the jenkins 2.9-1.1 version, But i do not see the workspace,jobs,users and nodes which i populated it fr

Declarative Piepline: conditional execution of stage/steps depending on branch

2016-10-26 Thread Eddard
I recently been introduced to declarative pipeline me and my team would like to use this model on most of our CI Jobs. The problem we are trying to solve right now is to find a way to execute certain stages or steps only on certain branches (master) is there a declarative way to do that? best

Re: Constructor or equivalent for "Global Variables" in libraries

2016-10-26 Thread Martina
In a big standalone groovy I have class myClass { List myList = [] public myCall (item) { myList.add(item) } } I am pretty sure I have used it without the class stuff in smaller snippets. Martina On Wednesday, October 26, 2016 at 8:54:59 AM UTC-6, Michael Lasevich wrote

Re: Jenkins 2.0: Turn off Setup wizard

2016-10-26 Thread Mike Albert
Setting Djenkins.install.runSetupWizard=false doesn't seem to be working correctly for me with more recent Jenkins releases. Setting that flag for Jenkins 2.1 works fine, but that same flag doesn't work with the latest release (2.27) or stable release (2.7.4). Is there a different flag that I

Re: Best practices for develop/release branch model with pipeline

2016-10-26 Thread Michael Lasevich
I am not sure the stages you are talking about are same as what Jenkins Pipelines calls stages. Jenkins, at its core, is a job server. In Pipelines, a stage is a segment of a job. Stages of a build job would be something like "Build Binaries" or "Upload Build Artifacts" - something that is part

Re: Constructor or equivalent for "Global Variables" in libraries

2016-10-26 Thread Michael Lasevich
No dice, groovy.lang.MissingPropertyException: No such property: myList for class: myListTest -M On Wednesday, October 26, 2016 at 7:42:19 AM UTC-7, Martina wrote: > > Try the following: > > myList = [] > > > def call(item){ > myList << item > } > > Martina > > On Wednesday, October 26, 2016

Re: Constructor or equivalent for "Global Variables" in libraries

2016-10-26 Thread Martina
Try the following: myList = [] def call(item){ myList << item } Martina On Wednesday, October 26, 2016 at 12:24:48 AM UTC-6, Michael Lasevich wrote: > > So, what is the proper way to initialize the fields in the "Global > Variables" found in the /vars dir in library code? > > I know it is s

Re: bitbucket & jenkins integration

2016-10-26 Thread Michael Kobit
Are you using Bitbucket Cloud or Server? On Tue, Oct 25, 2016, 20:57 Eddú Meléndez Gonzales wrote: Hi, I am working with Jenkins 2 and Bitbucket Branch Source Plugin and I have followed the following steps: 1. Create a new Item "Bitbucket Team/Project" 2. Set "Scan Credentials" (tested with cr

Re: Multibranch Pipeline: GCC errors does not stand out

2016-10-26 Thread Baptiste Mathus
Hi, you have to understand a bit more how things work to enable that. On the CLI, this is generally done through ansi escape codes. So, to enable that on Jenkins, you "just" have to enable "something" that would translate those to something a web browser can understand: https://wiki.jenkins-ci.org

Re: Logging to the console output from a trusted global pipeline library

2016-10-26 Thread Baptiste Mathus
Hi, IIUC you try to call a step (echo) from nonCPS, this is not supported. See https://groups.google.com/d/msg/jenkinsci-users/1BIPH5FrktE/3N02pUNDAgAJ and more explanations here on a previous answer of mine https://groups.google.com/d/msg/jenkinsci-users/1BIPH5FrktE/p9Ys5gJEAgAJ HTH 2016-10-22 1

Basic Terminology

2016-10-26 Thread Ziv Margolin
Hi everyone I am trying to teach my new colleague Jenkins from the *basics* and it seems like I am really need some basic terms explanation. Is there anywhere or maybe someone have a "dictionary" with basic Jenkins terminology ? It will really helpful Thank you -- You rece

Re: Pipeline & GH pull requests

2016-10-26 Thread Graham Hay
The answer was to tick this box: [image: Inline images 1] under Project Sources -> Repository Sources -> GitHub Org -> Advanced in the folder configuration. I then got PR builds, with a branch named as "PR-${prNumber}". I think the fork PR version was ticked by default, but that's not our workflow

Best practices for develop/release branch model with pipeline

2016-10-26 Thread Sathyakumar Seshachalam
New to Jenkins pipeline. My process is that developers work off of develop branch (Feature branches and merges of-course). At any point in time, a release branch is branched off of develop and then deployed to a stage environment, Once Accepted/approved, the same release branch is deployed int

Re: Problem with runnig Jenkins Slave using ssh key

2016-10-26 Thread Александр Калюжный
Hello. I have the same problem(also checked keys/jce), did you find solution? On Friday, May 6, 2016 at 1:40:10 PM UTC+3, Stefan Gehrig wrote: > > Hi > > I can't manage to run a slave jenkins job on SUSE SLES 12. I got the error: > > [05/06/16 11:51:12] [SSH] Opening SSH connection to pnsapp01-x:

Re: Config.xml of the job gets lost/deleted randomnly on jenkins restart or saving the configuration after changing it

2016-10-26 Thread touseef yousuf
Even in some cases jenkins doesnot allow me to change the name of already existing job? On Thu, Oct 6, 2016 at 11:04 AM, touseef yousuf wrote: > Im currently facing an issue where the config.xml of my created jobs gets > deleted randomly on Jenkins restart and the job is no longer available on

Re: Reload configuration from disk

2016-10-26 Thread Daniel Beck
> On 25.10.2016, at 20:23, ELIASSAL wrote: > > I am not able to reach the reload page There is no such page. Jenkins tells you to "Please wait" because it's already reloading. -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe

Re: Is there a way to make jenkins serve up script generated pages?

2016-10-26 Thread Michael Lasevich
I clearly did not read the original post carefully enough I would examine your XSLT, as it should normally perform pretty fast, if written right, but if you really want to do this ahead of time, but still be able to redo it whenever XSLT changes, your easiest way to go is to write a separate jo