Re: [workflow-plugin] svn credentials problem when running on a remote node

2015-02-25 Thread Ken DeLong
Hi Jesse, I just created a bug the other day: https://issues.jenkins-ci.org/browse/JENKINS-27069 Let me know if there's information missing that you need. Ken On Wed, Feb 25, 2015 at 3:00 PM, Jesse Glick wrote: > On Thursday, January 29, 2015 at 8:24:25 PM UTC-5, Ken DeLong wrote: >> >> jav

[workflow-plugin] unarchive: Access is denied

2015-02-25 Thread Christoph Vogtländer
Hi, when trying to unarchive artifcats with the command unarchive mapping: ['Binary/' : '.'] the step fails with: java.io.FileNotFoundException: D:\Jenkins\jobs\testjob\workspace\Binary\test.dll (Access is denied) I think this is because the file already exists. Removing the "Binary" fo

Re: [workflow plugin] unarchive() question

2015-02-25 Thread Jesse Glick
On Wednesday, February 11, 2015 at 8:23:27 AM UTC-5, Christoph Vogtländer wrote: > > Does archive "merge" the results (is it a big common data storage)? > Yes. -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group an

Re: [workflow plugin] Accessing info about a SCM operation

2015-02-25 Thread Jesse Glick
On Wednesday, February 11, 2015 at 7:16:41 PM UTC-5, Christopher Barnes wrote: > > With the workflow plugin, after you've performed a SCM step (e.g. with > "git" or "checkout"), is there an easy way to get information about the > revision that was just checked out? Specifically, I'm doing a chec

Re: workflow-plugin Serialisation issues when iterating over a list of strings

2015-02-25 Thread Jesse Glick
On Monday, February 9, 2015 at 8:48:11 AM UTC-5, Robin Tegg wrote: > > java.io.NotSerializableException: java.util.AbstractList$Itr > Indeed this class in the JRE, which is used for JDK 5-style for-loops, is not serializable and so this idiom cannot be used from a flow build (which must survive

Re: [workflow plugin] Retrieving sh output

2015-02-25 Thread Jesse Glick
On Tuesday, February 10, 2015 at 7:03:06 AM UTC-5, Chris Jay wrote: > > get ahold of console output code inside the workflow > https://issues.jenkins-ci.org/browse/JENKINS-26133 gives the workarounds. -- You received this message because you are subscribed to the Google Groups "Jenkins Users"

Re: [workflow plugin] inject environment variables or using parameters to prepare the run

2015-02-25 Thread Jesse Glick
On Thursday, February 5, 2015 at 4:30:11 AM UTC-5, Christoph Vogtländer wrote: > > I want to use the workflow plugin and together with the "Prepare an > environment for the run" feature provided by the EnvInject plug in. > EnvInject is probably useless for Workflow. Are there other possible sol

Re: [workflow plugin] set build display name

2015-02-25 Thread Jesse Glick
On Monday, February 9, 2015 at 9:46:05 AM UTC-5, rginga wrote: > > build.setDisplayName() > Would require: https://issues.jenkins-ci.org/browse/JENKINS-26834 -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and st

Re: [workflow-plugin] Technical limitations for a workflow Groovy script

2015-02-25 Thread Jesse Glick
On Saturday, February 7, 2015 at 2:57:08 AM UTC-5, Baptiste Mathus wrote: > > I guess we'll need feedback of Jesse or Kohsuke as to where they want to > go about that: filing JIRAs for classes to be whitelisted? > There are so many obvious candidates that JIRA issues would be less than helpful,

Re: [workflow plugin] CPS groovy member declaration bug in intended behavior?

2015-02-25 Thread Jesse Glick
On Sunday, February 8, 2015 at 9:44:40 AM UTC-5, Kenneth Baltrinic wrote: > > If I put similar code in a regular groovy console I don't have this > problem, it only seems to be in the CPS version of groovy, but I am no > groovy expert, so I must ask, is this intended behavior and if so why, or >

Re: [workflow-plugin] how do you access job output parameters?

2015-02-25 Thread Jesse Glick
On Wednesday, February 4, 2015 at 10:44:56 AM UTC-5, Andy Piper wrote: > > I want something like: > > def thejob = build('myjob'); > build job: 'nextjob: parameters: thejob.P4_CHANGELIST > Reasonable but not yet supported: https://issues.jenkins-ci.org/browse/JENKINS-25851 -- You received this

Re: [workflow plugin] loop stops at first iteration as it seems...

2015-02-25 Thread Jesse Glick
On Friday, February 6, 2015 at 2:20:53 AM UTC-5, Shane Kim wrote: > > Is this an expected behavior? > No: https://issues.jenkins-ci.org/browse/JENKINS-26481 -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and st

Re: [workflow plugin] list files in workspace

2015-02-25 Thread Jesse Glick
On Wednesday, February 4, 2015 at 5:28:49 PM UTC-5, Shane Kim wrote: > > maybe it's simple thing but I just couldn't find or get it working. How > would I get the current workspace directory path? > pwd() returns a String (not an ArrayList as you claim!) of the current workspace path. env.WORKS

Re: Using git hook with Workflow Plugin with 'computed' repository url?

2015-02-25 Thread Jesse Glick
On Tuesday, February 3, 2015 at 1:47:14 PM UTC-5, Kenneth Baltrinic wrote: > > My only remaining question is, is this documented anywhere? > Yes; but apparently not well enough. :-/ -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscri

Re: Access current "build" instance from within Workflow Script?

2015-02-25 Thread Jesse Glick
On Wednesday, February 4, 2015 at 2:59:02 PM UTC-5, Kenneth Baltrinic wrote: > > I need to access the build object (something that implements AbstractBuild > and Run) for the current, in-flight build, so that I can get the current > result and the previous build result. > https://issues.jenkins-

Re: [workflow-plugin] svn credentials problem when running on a remote node

2015-02-25 Thread Jesse Glick
On Thursday, January 29, 2015 at 8:24:25 PM UTC-5, Ken DeLong wrote: > > java.lang.ClassCastException: > sun.reflect.generics.reflectiveObjects.ParameterizedTypeImpl > cannot be cast to java.lang.Class > > at > org.jenkinsci.plugins.workflow.structs.DescribableHelper.coerce(DescribableHelp

Re: [workflow-plugin] Exception using the 'tool' feature

2015-02-25 Thread Jesse Glick
On Wednesday, January 28, 2015 at 6:27:28 AM UTC-5, Rafael Ribeiro Rezende wrote: > > @Extension public static class DescriptorImpl extends >> Descriptor > > Should extend ToolDescriptor. (Had we foreseen this mistake, we would have override getDescriptor in ToolInstallation to force the return

Re: Workflow and publishers

2015-02-25 Thread Jesse Glick
On Wednesday, January 28, 2015 at 1:19:01 PM UTC-5, Jason Swager wrote: > > Is there a way to use these publishers from the workflow? > > Or are updates to these plugins necessary before they can be used? > https://github.com/jenkinsci/workflow-plugin/blob/master/COMPATIBILITY.md#build-steps-and-p

Re: [workflow-plugin] Bug in the Snippet Generator for "General SCM"?

2015-02-25 Thread Jesse Glick
On Wednesday, January 28, 2015 at 6:09:09 AM UTC-5, Rafael Ribeiro Rezende wrote: > > By previous experience I learned that the best way to involve IBM on this > is to create an enhancement in their own jazz.net platform. So that's > what I did... > > https://jazz.net/jazz/web/projects/Rational%

Re: [jenkins-workflow] How to inject a password in an "sh" step? Credentials Binding Plugin?

2015-02-25 Thread Jesse Glick
On Monday, January 19, 2015 at 5:59:18 PM UTC-5, Cyrille Le Clerc wrote: > > Is it possible to use the Credentials Binding Plugin > > in a workflow? Does this plugin need to be updated to work in a workflow? > Update: yes,

Re: [workflow-plugin] unarchive fail to create file on slave

2015-02-25 Thread Jesse Glick
Not sure what you are seeing here but I would suggest narrowing it down to a minimal reproducible test case and filing a bug report in JIRA. -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving ema

Re: [workflow-plugin] Unable to get NODE_NAME variable during the build

2015-02-25 Thread Jesse Glick
NODE_NAME is defined for AbstractBuild (freestyle, etc.), not Workflow currently. It could not be defined using the same system by which flow builds pick up general build variables (BUILD_URL) etc. because there is not a unique node for a flow build. You could open an RFE for ExecutorStepExecut

Re: How to set "Environment variables" in "Global properties" of global Jenkins configuration programmatically?

2015-02-25 Thread Victor Volle
Final solution: instance = Jenkins.getInstance() globalNodeProperties = instance.getGlobalNodeProperties() envVarsNodePropertyList = globalNodeProperties.getAll(hudson.slaves. EnvironmentVariablesNodeProperty.class) newEnvVarsNodeProperty = null envVars = null if ( envVarsNodePropertyList == nul

Re: How to set "Environment variables" in "Global properties" of global Jenkins configuration programmatically?

2015-02-25 Thread Victor Volle
I have a partial *solution, *when I have already enabled Global Properties: the following script works for me: import jenkins.* import jenkin

Re: Learning Jenkins Groovy with Jenkins API

2015-02-25 Thread Les Mikesell
On Tue, Feb 24, 2015 at 2:52 AM, Sverre Moe wrote: > I have been using "Execute Groovy Script". Then it looks like I should be > using "System Groovy Script" instead. > Would a groovy script with Scriptler also have access to the Jenkins > internals? > I haven't used scriptler so I don't know wha

Re: Hiring-Oracle Pl/SQL with Unix Shell Scripting@Boston MA [Please send resumes to r...@technotalent.com]

2015-02-25 Thread Brent Atkinson
> > Note: This email is not intended to be a solicitation. It is targeted to > recruiting and consulting professionals. If you have received this in > error, please accept our apologies and to be removed from our mailing list > reply with "UNSUBSCRIBE" in the subject heading and your email address

Hiring-Oracle Pl/SQL with Unix Shell Scripting@Boston MA [Please send resumes to r...@technotalent.com]

2015-02-25 Thread Rene Mickey
Hi, Hope you are doing great... (*If you are not interested or not available Please refer this position)* [Please send resumes to r...@technotalent.com] *Position :* *Title :* *Oracle Pl/SQL with Unix Shell Scripting* *Location : **Boston MA * *Duration : 6Months +* *Type of position:

Re: SVN post commit hook - no subversion consumers for UUID

2015-02-25 Thread Mark Lewis
So our problem was with the post-commit hook. We've got our hooks running a PHP script so we can easily manage them in a DB, and we had recently switched from using exec calls of wget to PHP's curl. We thought this had been working but it had not. For anyone reading at home, PHP's curl doing PO

Re: Push-button task functionality

2015-02-25 Thread George Sakhnovsky
We ended up abandoning the batch task plugin in favor of parameterized builds. On Tuesday, February 24, 2015 at 5:04:26 PM UTC-5, George Sakhnovsky wrote: > > We're currently implementing push-button task functionality (such as > release) via the batch task plugin. It works with no major issues

[workflow-plugin] Replacing "When a change is pushed" Build Trigger Functionality

2015-02-25 Thread Alan Ray
I'm trying to create my first workflow (we've been using freeform jobs), and I'm struggling to figure out how to get the commit hook running. Normally in the freeform job, there is a option that says "Build when a change is pushed to GitHub". But in the workflow, that option doesn't exist (prob

Re: Clean up after build using build flow plugin

2015-02-25 Thread Katie Outram
So what I have done so far is cleanup=bParent.build.properties.environment('GIT_TREE') println "find ${cleanup} -maxdepth 1 -not -name images -type f -exec rm -f {} +".execute().text However, the println "find ${cleanup} -maxdepth 1 -not -name images -type f -exec rm -f {} +".execute()

Areas of dashboard are inaccessible in Jenkins 1.599 from IE11

2015-02-25 Thread David Aldrich
Hi I am not raising this in Jenkins JIRA because I know that there are various existing issues for IE11 and the dashboard there. I thought I would ask here first. When using IE11 with 1.599, I see the names of running jobs extend from the 'Build Executor Status' column into the main area of th

Re: SVN post commit hook - no subversion consumers for UUID

2015-02-25 Thread Mark Lewis
Daniel, I had set logging to ALL globally, and it didn't print anything for SubversionRepositoryStatus when I triggered the post-commit. Weird. Following your instructions, I can see it is getting triggered. Thanks for helping me rule that out. On Wednesday, February 25, 2015 at 4:18:26 AM UTC

Re: Conditional BuildStep Git Tag Token Macro

2015-02-25 Thread Sverre Moe
I got what I wanted. Perhaps it's not an elegant solution: 1) The build begins by first running a Groovy script. It checks if a Git tag exists. It then puts the property TAGGED=true/false into a properties file. 2) Then I use "Inject Environment Variables" from this properties file. 3) I use thi

[workflow] xunit plugin support

2015-02-25 Thread Arek Skalski
How can I use XUnit plugin within my workflow? -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. To view this discus

RE: Clean up after build using build flow plugin

2015-02-25 Thread John Mellor
Ø Either try to use the workspace cleanup plugin and/or some groovy step to do that and retrieve that variable? We use git, so ymmv. Rather than cleaning up at the end of a build, I just leave it all there and check the “Wipe out repository & force clone” selection in the “Additional Behaviou

Re: Problem with Jenkins and install plugin

2015-02-25 Thread Daniel Beck
Could be a timing issue since Jenkins does not appear to flush the output stream explicitly before checking the file length, and checks the file length a second time just to print the error message. Could you file an issue against core and assign it to danielbeck? https://wiki.jenkins-ci.org/di

Re: Problem with Jenkins and install plugin

2015-02-25 Thread Fabien Sechi
Someone could help. > > best regards -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on th

Re: SVN post commit hook - no subversion consumers for UUID

2015-02-25 Thread Daniel Beck
On 25.02.2015, at 00:39, Mark Lewis wrote: > The OP set logging to FINE. For the wrong logger. Quoting: > I looked at the code for SubversionSCMSource.onNotify and setup a logger at > level 'FINE' for that class. Nothing interesting. Make sure to create a log recorder for the logger hudson