Getting the following Error (ENOENT: no such file or directory, scandir)

2017-03-06 Thread Muhammad Waqas Javed
Hi All, I am new to test automation and currently encountering the following error. I am stuck and can't move forward with the test automation. I am using Jenkins to develop the test automation framework and after running the SHELL code, I am getting the following error. I have already

Re: Interactive input with new DSL

2017-03-06 Thread Andrew Bayer
Actually, "agent none" on a stage does nothing. I'm still trying to find an effective way to solve this use case in Declarative. A. On Mon, Mar 6, 2017 at 2:25 PM R. Tyler Croy wrote: > (replies inline) > > On Mon, 06 Mar 2017, Travis Camechis wrote: > > > So if you define

Re: Unable to get NodeName in pipelines for WorkflowJob

2017-03-06 Thread Zeeshan Maqbool
Simplified code which is easier to read : def mJenJobs = jenkins.model.Jenkins.getActiveInstance()..getAllItems() def mJenJobsSize = mJenJobs.size() def mResult = [] as Set for (i = 0; i < mJenJobsSize; i++) { def locJob = mJenJobs[i] def running = locJob.getLastBuild().isBuilding()

Re: Unable to get NodeName in pipelines for WorkflowJob

2017-03-06 Thread Zeeshan Maqbool
one more thing to add which is pretty important and where the issue seems to be, if I check class for [locJob.getLastBuiltOn()] it comes out to be [hudson.model.Hudson], whereas it should be Node according to this documentation

Unable to get NodeName in pipelines for WorkflowJob

2017-03-06 Thread Zeeshan Maqbool
Setup - Latest Jenkins with pipeline job set to run from MultiBranch Pipeline (bitbucket) Library Function - Its replacing the block plugin where you can specify when this job should wait for other jobs running on a node I havent seen issues with other functions but I am unable to get NodeName

global option to always build with clean a workspace when using pipelines

2017-03-06 Thread sleipnir
Hi I want to start building with a clean workspace in my pipelines, and I can't find a way to do it globally. I did a bit of research, and saw the step 'deleteDir()' is the proposed way of doing it. My problem with that is I need to add a call to this step for every nodes (I have parralel work

getting variables from a downstream job

2017-03-06 Thread Alexander Drobst
We have a build and deploy process for every artifact(it is not a maven build, and not a maven arifact). If build or deploy for a single artifact fails it should not stop the whole process. We have a separate jobs for build and deploy. Build jobs can work in parallel on a slaves, deploy

Re: Interactive input with new DSL

2017-03-06 Thread R. Tyler Croy
(replies inline) On Mon, 06 Mar 2017, Travis Camechis wrote: > So if you define an agent of none within a stage it will override the > higher level pipeline stage ? Correct, the previously linked documentation has an example of a stage-level "agent" directive. > On Monday, March 6, 2017 at

Controlling a MultiBranch Pipeline Change log

2017-03-06 Thread Brian Weiner
I'm setting up a chain of projects, where when Project A finishes building, I invoke Project B using the "build" command. However, the build command always sync's to whatever HEAD is currently set to on the remote. My Jenkinsfile, later syncs to the hash I want. However, at this point the

Re: Interactive input with new DSL

2017-03-06 Thread Travis Camechis
So if you define an agent of none within a stage it will override the higher level pipeline stage ? On Monday, March 6, 2017 at 2:39:42 PM UTC-5, R Tyler Croy wrote: > > (replies inline) > > On Mon, 06 Mar 2017, Travis Camechis wrote: > > > With scripted DSL your not supposed to ask for input

Jenkins running docker container with uid/gid that do not exist

2017-03-06 Thread Ashok Modi
Hi, I have a Jenkinsfile with the following docker step: agent { dockerfile { filename "Dockerfile" } } steps { sh 'cd sites/all/themes/custom/zen; npm install; gulp' } And my Dockerfile consists of:

Interactive input with new DSL

2017-03-06 Thread Travis Camechis
With scripted DSL your not supposed to ask for input inside a node so you don't tie up an executor while waiting for user input. How is this same thing accomplished in the new DSL ? It seems like everything runs inside a node with the new DSL ? Thanks Travis -- You received this message

Re: Jenkins2 BlueOcean loading jobs fails

2017-03-06 Thread James Dumay
Hi there, I believe you are likely hitting the bug described in JENKINS-40088 . Do you have any exceptions in your Jenkins server log after clicking the "Show More" button? Thanks, James On Monday, March 6, 2017 at 3:55:33 AM UTC-8, GS_L

Re: Error getting the SSL context object

2017-03-06 Thread raghavendra . br436
Thanks for the post steven, I had the same issue i.e. different password for keystore and key. recreating the keystore and key with the same resolved it. On Friday, December 19, 2014 at 2:05:59 PM UTC-5, Steven Erat wrote: > > I encountered the same exception. The short answer is that the

Re: Jenkins2 pileline poll scm

2017-03-06 Thread jerome
You can set your pipeline project configure like the following: Build Triggers Poll SCM Schedule H 22 * * * This will consider the pipeline scripts checkout and the checkout done into the pipeline. The later need at least a single run manually started to register the code checkout with the

Re: Is there any way for a jenkins project to use the Gitlab plugin but only be built periodically and not when a change is pushed?

2017-03-06 Thread Oded Badt
Here is my config xml file Thanks! Oded On Thu, Mar 2, 2017 at 5:01 PM, suresh kumar wrote: > Could you share the full config of Job and Check the Gitlab hooks. > > -Suresh > > On Thursday, March 2, 2017 at 2:47:39 AM UTC+5:30, Oded Badt wrote: >> >> Actually I tried

Jenkins2 BlueOcean loading jobs fails

2017-03-06 Thread GS_L
Hi I installed Jenkins 2.48 and blueOcean beta plugin. When I press the 'show more' button it works only on the first time. Pressing the button the second time or more (to see all the jobs) the button is stuck on loading. It's look like the big amount of the jobs caused that. Is there a work

Pipeline send email to committer

2017-03-06 Thread GS_L
Hi How can I send e-mails to individuals who broke the build? This is my post mail code: post { failure { mail(from: "...", to: "...", subject: "UI build failed!", body: "For more information see the build log.") } } -- You received this

Starting Eclipse in the foreground

2017-03-06 Thread Kev James
Hi all, Running on Windows 10, Jenkins 2.32.2 I'm using Jenkins to automate Jubula tests of an Eclipse Plugin I'm writing. I currently have two issues that I'm hoping someone can help with. Firstly, when I have Jenkins running as a service, when I try to run Eclipse from the ant script that

Re: Jenkins2 pileline poll scm

2017-03-06 Thread GS_L
Hi The triggers - pollscm doesn't work on the checkout step. I want that the pollscm will trigger a build in every push in - checkout([$class: 'GitSCM', branches: [[name: '*/master']], ... This didn't work for me: pipeline { triggers { pollSCM('*/5 * * * *') } agent {

Pass parmas from one stage to anohter

2017-03-06 Thread GS_L
Hi I read environment variables from file. The following works, but there is a code duplication: ( . ${JENKINS_HOME}/jobs/credentials.sh > /dev/null 2>&1 curl -u $GITHUB_USERNAME:$GITHUB_PASSWORD