Re: Updated free cloubbees folders plugin, now folders don't appear, NoClassDefFoundError in log.

2013-09-03 Thread Jesse Glick
On Tuesday, September 3, 2013 2:26:20 PM UTC-4, Haszlakiewicz, Eric wrote: > SEVERE: Failed Loading job zw > java.lang.NoClassDefFoundError: > com/cloudbees/hudson/plugins/folder/properties/FolderProxyGroupContainer$GroupContainerLocatorImpl > > > at > com.cloudbees.hudson.plugins.folder.

Re: How to investigate a build that fails for no apparent reason

2012-07-11 Thread Jesse Glick
On 07/11/2012 09:38 AM, CB wrote: Jenkins spits out, "Build step 'Execute shell' marked build as failure". But no indication of why that is. Perhaps the last command in the script returned a nonzero exit code without printing any further diagnostics. Check it: your-command your args || (echo

Re: Error when having queued up projects waiting to be build siginfo:si_signo=SIGBUS: si_errno=0, si_code=2 (BUS_ADRERR), si_addr=0x00007f8338e6a1d5

2012-07-13 Thread Jesse Glick
On 07/12/2012 09:37 AM, accordeuro wrote: Java frames: (J=compiled Java code, j=interpreted, Vv=VM code) j java.util.zip.ZipFile.getEntry(JLjava/lang/String;Z)J+0 j java.util.zip.ZipFile.getEntry(Ljava/lang/String;)Ljava/util/zip/ZipEntry;+31 j java.util.jar.JarFile.getEntry(Ljava/lang/String;)Lj

Re: Incremental (character at a time) Console output

2012-07-15 Thread Jesse Glick
On 07/13/2012 06:44 PM, Sean DeNigris wrote: Does Jenkins wait for a newline to show new output in the console? Apparently it does. I filed JENKINS-14435 [1] to track this. I do not know of a workaround not involving a custom plugin, other than logging into master and using tail -f on the log

Re: Incremental (character at a time) Console output

2012-07-16 Thread Jesse Glick
On 07/15/2012 04:32 PM, Sean DeNigris wrote: By a custom plugin, do you mean roll-my-own Yes... for example Run.getLogText().readAll() should produce the full current log, including any pending final line, so I think a plugin could add a link like /fullConsole to a build's page which displays

Re: Trigger action just before a build is aborted.

2012-07-17 Thread Jesse Glick
On 07/17/2012 05:02 AM, Michael wrote: What I would like to happen is that a pre-abort action be triggered, for example run jstack on all the java processes. This would be a nice enhancement for the Build Timeout plugin. For example, using [1] it is possible (on JDK 6+) to obtain rich diagnosti

Re: Jenkins as Windows Service; Mercurial.ini

2012-07-17 Thread Jesse Glick
On 07/17/2012 07:56 AM, Andreas Schilling wrote: our jenkins master is set up as windows service using the windows local system account. where are we supposed to put the mercurial.ini with the credentials for the https access? hgrc(5) [1] gives a number of locations where Mercurial looks, or

Re: Error link in github pull request builder configuration after jenkins upgrade

2014-04-09 Thread Jesse Glick
Already filed as: https://issues.jenkins-ci.org/browse/JENKINS-22550 -- 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.co

Re: Can't update plugin list "No signature block found"

2014-04-30 Thread Jesse Glick
On Wednesday, April 30, 2014 5:40:46 AM UTC-4, matthew...@diamond.ac.uk wrote: > > I'm not sure why downloading on the server did not work > Because the server content is broken: https://issues.jenkins-ci.org/browse/JENKINS-21984 -- You received this message because you are subscribed to the

Re: Failed to serialize org.jenkinsci.plugins.workflow.actions.ErrorAction when declaring classes in csp-global-lib

2014-12-17 Thread Jesse Glick
With that change I get an error > No signature of method: chef.Cookbook.sh() is applicable for argument types… meaning that the DSL methods are not accessible from your class. That is because when you define a standalone class, it has no access to the main ‘groovy.lang.Script’, on which DSL me

Re: [workflow-plugin] is it possible to use the stage step to serialize execution of builds?

2015-01-07 Thread Jesse Glick
> I've tried using the 'stage' step, but this will actually abort waiting builds if newer builds enter the queue. That's to avoid successive builds from the same branch, but here I want all builds to run, just in sequence. Right, ‘stage’ is intended for the use case where a newer build would su

Re: Workflow: How to get entire workflow definition from SCM

2015-01-07 Thread Jesse Glick
On Wednesday, December 31, 2014 3:02:38 PM UTC-5, David Karr wrote: > > I get the impression that the script used in a workflow job can be loaded > from SCM, instead of hardcoded into the Jenkins job. How exactly do you > specify that? I noticed the "load" workflow step, but that's not quite th

Re: Buildflow vs Workflows plugins

2015-01-07 Thread Jesse Glick
On Friday, December 26, 2014 10:10:07 AM UTC-5, Arnaud wrote: > > It looks that work-flow need git but I'm using hg :$ > The Mercurial plugin is supported. https://github.com/jenkinsci/workflow-plugin/blob/master/scm-step/README.md#generic-scm-step -- You received this message because you are s

Re: workflow - allocate node(s) for user?

2015-01-07 Thread Jesse Glick
On Wednesday, December 24, 2014 1:16:10 PM UTC-5, LesMikesell wrote: > > Is there - or could there be - a workflow step that pre-allocates and > locks a set of nodes that a given user is allowed to use? The access control aspect can be handled by independent plugins, such as https://jenkins-ent

Re: [WorkFlow plugin] Parameterized Build

2015-01-07 Thread Jesse Glick
On Tuesday, December 23, 2014 6:52:12 AM UTC-5, Capfo wrote: > > in the jenkins workflow plugin all interaction will remains in the output > job console ? we will don't have a UI interaction in the future with > workflow ? > When a flow build is waiting for input, a link is added to its sidepane

Re: Failed to serialize org.jenkinsci.plugins.workflow.actions.ErrorAction when declaring classes in csp-global-lib

2015-01-07 Thread Jesse Glick
On Saturday, December 20, 2014 11:27:11 PM UTC-5, Kenneth Baltrinic wrote: > > all classes get serialized by Jenkins-workflow's state-saving mechanism > that allows for resuming inflight workflows > Yes. > state to be created/managed on the master node yet replicated to slave > nodes for exec

Re: Workflow and ArtifactArchiver?

2015-01-07 Thread Jesse Glick
On Friday, December 19, 2014 1:06:56 PM UTC-5, LesMikesell wrote: > > Is there a way to make [unartifact] address artifacts from build > (other_job) steps https://issues.jenkins-ci.org/browse/JENKINS-24887 > or track their svn revisions and build numbers? > Not quite sure what you are gettin

Re: [workflow-plugin] dependencies between parallel steps?

2015-01-07 Thread Jesse Glick
On Sunday, December 14, 2014 9:26:58 PM UTC-5, Alexander Bertram wrote: > > But it looks like I need to implement a waitFor primitive > JENKINS-25570 is implemented in 1.2 and adds a waitUntil step. -- You received this message because you are subscribed to the Google Groups "Jenkins Users" gr

Re: Workflow Plugin questions

2015-01-07 Thread Jesse Glick
On Tuesday, December 16, 2014 5:15:31 AM UTC-5, Jo Shields wrote: > > How can I change the title of a step in the "Running Steps" page? > "Shell Script" three dozen times is not useful. I'd like to be able to > change this header. > > https://issues.jenkins-ci.org/browse/JENKINS-26107 -- You rec

Re: [workflow-plugin] A couple questions

2015-01-07 Thread Jesse Glick
On Wednesday, December 17, 2014 12:01:23 PM UTC-5, nateswartz wrote: > >node('Slave') { > ws { > The ‘ws’ step is pointless here; ‘node’ already allocates a workspace. ‘ws’ can be used if you need more than one on the *same* node (probably unusual). it looks like firstBranch and > s

Re: Workflow and ArtifactArchiver?

2015-01-08 Thread Jesse Glick
On Wednesday, January 7, 2015 7:16:10 PM UTC-5, LesMikesell wrote: > > A likely scenario would be to trigger a build from polling svn, then > building that same svn revision on several types of nodes - even if > subsequent commits are done to the repository > Covered by: https://issues.jenkins-c

Re: [workflow-plugin] remote node on docker. settings.xml missing

2015-01-08 Thread Jesse Glick
On Monday, December 15, 2014 7:34:05 AM UTC-5, Stefan Lorenz wrote: > > in my build jobs I use the Config File Provider Plugin > for > sharing files like settings.xml with the remote docker jenkins nodes. > > How do I use i

Re: [workflow plugin] is there a way to get workflow node steps to show in node history?

2015-01-08 Thread Jesse Glick
On Tuesday, December 16, 2014 10:39:22 PM UTC-5, Kevin wrote: > > Seems like swapping my RunListener out for an ExecutorListener would work > fine for this use case. > That would help, though it does not handle flows crossing Jenkins restarts. You are advised to use OnceRetentionStrategy from du

Re: [workflow-plugin] Sharing the workspace between nodes in a workflow

2015-01-08 Thread Jesse Glick
On Thursday, December 11, 2014 10:12:23 PM UTC-5, Sean Flanigan wrote: > > Alternatively, if I clone the same git repo to both nodes, how can I > ensure that they both check out the same git revision? > https://issues.jenkins-ci.org/browse/JENKINS-26100 -- You received this message because you

Re: [workflow-plugin] build job gets triggered on any node irrespective of seletion using node

2015-01-08 Thread Jesse Glick
On Tuesday, December 9, 2014 8:50:57 AM UTC-5, Rupali wrote: > > node('master') { > build 'test-build' > } > > Though I have selected node as 'master' for this step, the build job > "test-build" gets triggered on some other slave node. > Is this expected behavior? > Yes. The contextual node (if a

Re: [workflow-plugin]Reading variables in batch script

2015-01-08 Thread Jesse Glick
On Monday, December 8, 2014 4:09:34 AM UTC-5, Rupali wrote: > > But below produces output as *Current directory is: ${myDir}* > node('windows') { > def myDir = pwd() > bat '''echo "Current directory is:" > echo ${myDir}''' > } > > Am I missing some syntax in multiple line batch script? > Groovy qu

Re: [workflow-plugin] Determine current directory

2015-01-08 Thread Jesse Glick
On Monday, December 8, 2014 3:08:12 AM UTC-5, Rupali wrote: > > That worked. > https://github.com/jenkinsci/workflow-plugin/pull/31 -- 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

Re: [workflow-plugin] Error "script.sh: command not found" when running shell script

2015-01-08 Thread Jesse Glick
On Friday, December 5, 2014 6:35:33 AM UTC-5, Rupali wrote: > > So I am concluding that Shell script in in *workflow step* is not working > on Windows slave. > Or more precisely, that shell scripts run via durable-task-plugin (this also includes the CloudBees Long-Running Build plugin) do not wo

Re: Workflow and ArtifactArchiver?

2015-01-08 Thread Jesse Glick
On Thursday, January 8, 2015 at 12:38:30 PM UTC-5, LesMikesell wrote: > > Does this have to be different from build-flow where you could pick up > SVN_REVISION and pass it into subsequent builds > I am not very familiar with the build-flow plugin and have not heard of such an idiom. subversion-p

Re: [workflow-plugin] publish report on workflow build

2015-01-08 Thread Jesse Glick
On Friday, November 28, 2014 at 9:06:10 AM UTC-5, Arek Skalski wrote: > > Is there any way to publish html report within workflow build? > I filed https://issues.jenkins-ci.org/browse/JENKINS-26343 as the most straightforward approach. -- You received this message because you are subscribed to

Re: [workflow-plugin] Passing parameters to triggered jobs

2015-01-08 Thread Jesse Glick
On Monday, November 24, 2014 at 6:19:15 AM UTC-5, James Nord wrote: > > build job: 'yourJobNameToBuild', parameters: [new hudson.model. > StringParameterValue('PARAM1','123'), new hudson.model. > StringParameterValue('PARAM2','345')] > > Though this should be replaced with a more idiomatic form re

Re: [workflow-plugin] no workspace for parallel steps

2015-01-08 Thread Jesse Glick
On Wednesday, November 19, 2014 at 2:16:52 PM UTC-5, Stefan Lorenz wrote: > > Isn't it possible to get the results from inside a "build" step? > https://issues.jenkins-ci.org/browse/JENKINS-25851 -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group.

Re: Workflow and ArtifactArchiver?

2015-01-15 Thread Jesse Glick
On Thursday, January 8, 2015 at 4:06:34 PM UTC-5, LesMikesell wrote: > > b1=build( "some_job") > b2=build( "some_other_job", REVISION: > b1.build.properties.envVars["SVN_REVISION"] ) > (where REVISION is a job parameter, expanded in the svn URL) > Well you can certainly expand variables in the

Re: [workflow-plugin] Readable output for parallel builds?

2015-01-15 Thread Jesse Glick
On Tuesday, January 13, 2015 at 11:14:49 AM UTC-5, Timur Batyrshin wrote: > > Is there a way to separate logs for the branches to make them easily readable? > > https://issues.jenkins-ci.org/browse/JENKINS-26122 would help. -- You received this message because you are subscribed to the Google Gr

Re: [workflow-plugin] can a workflow be defined by stitching together existing jobs (local or remote) in parallel/serial?

2015-01-15 Thread Jesse Glick
On Wednesday, January 14, 2015 at 10:06:49 PM UTC-5, Doug Lethin wrote: > > does the build step return an object as a reference > https://issues.jenkins-ci.org/browse/JENKINS-25851 -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscrib

Re: Extension availability from Workflow Groovy CPS DSL

2015-01-15 Thread Jesse Glick
On Thursday, January 15, 2015 at 3:58:07 AM UTC-5, James Nord wrote: > > Plugins must be aware of the workflow plugin and implement some code for > it. > https://github.com/jenkinsci/workflow-plugin/blob/master/COMPATIBILITY.md There are of course some cases where the functionality of the plugi

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

2015-01-15 Thread Jesse Glick
On Thursday, January 15, 2015 at 10:04:42 AM UTC-5, Rafael Ribeiro Rezende wrote: > > I'm using Rational Team Concert from IBM as SCM, and they provide the Team > Concert plugin > for > this purpose. > > When I use the *Snippet G

Re: [workflow-plugin] Java.lang.NoSuchMethodError: No such DSL method

2015-01-15 Thread Jesse Glick
On Thursday, January 15, 2015 at 1:55:57 PM UTC-5, Daniel Tschan wrote: > > You also need the Git Plugin > 2.3+: https://github.com/jenkinsci/workflow-plugin/blob/master/COMPATIBILITY.md#scms -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. T

Re: Protecting Jenkins from its own pipelines and jobs

2016-04-04 Thread Jesse Glick
On Wednesday, March 30, 2016 at 3:33:50 PM UTC-4, Jason Hull wrote: > > For instance, I can create a freestyle job with a script step that does > something like: > > echo 'my own key' >> /home/jenkins/.ssh/authorized_keys > If you have any executors configured on your master, your system is inse

Re: Pipelines, iterating maps and more headaches

2016-04-27 Thread Jesse Glick
On Tuesday, April 26, 2016 at 7:18:55 PM UTC-4, Norbert Lange wrote: > > There seem to be some arcane rules on how to iterate over some > builtin Groovy/Java Types within a sandbox. I haven`t found a way that > works without manually allowing the function. Which methods did you need to approve?

Re: Pipelines, iterating maps and more headaches

2016-04-28 Thread Jesse Glick
On Thu, Apr 28, 2016 at 3:48 AM, Norbert Lange wrote: > the replay feature isnt mentioned in any of the documents from > https://wiki.jenkins-ci.org/display/JENKINS/Pipeline+Plugin, you should > really mention it there to get people using it Pipeline documentation in general is in a state of limb

Re: Pipelines, iterating maps and more headaches

2016-04-28 Thread Jesse Glick
On Wed, Apr 27, 2016 at 6:00 PM, Norbert Lange wrote: > node { > > for (it2 in mapToList(depmap)) { > name = it2[0] > revision = it2[1] > } > } > @NonCPS > def mapToList(depmap) { > def dlist = [] > for (entry in depmap) { > dlist.add([entry.key, en

Re: Multi-branch pipeline without Jenkinsfile in the repo?

2018-01-17 Thread Jesse Glick
On Saturday, April 29, 2017 at 5:06:32 PM UTC-4, Kaido Kert wrote: > > When i configure a pipeline multibranch build item, there is a Build > Configuration: Mode dropdown in the UI, which frustratingly only offers 1 > option: Jenkinsfile. > I'm guessing there is some plugin or mechanism to get mo

Re: Adding .groovy files to secured script classpath

2017-06-30 Thread Jesse Glick
On Fri, Jun 23, 2017 at 5:07 AM, Oliver Gondža wrote: > I was thinking about migrating out users to secure variant by > consolidating the directory into a single file No, this is not possible. > I would really like to avoid building .jars out of it... Just create a JAR file. (Or, better, a test

Re: more meaningful description of a step

2017-07-17 Thread Jesse Glick
On Monday, July 17, 2017 at 2:15:59 PM UTC-4, Samuel Van Oort wrote: > > A better approach would be to select from a list of credential ids. > Specifically you can either keep credentials associated with the build; or request user-scoped credentials as a build parameter. Failing that, you coul

Re: Getting build cause

2016-08-04 Thread Jesse Glick
On Wednesday, July 27, 2016 at 11:10:34 PM UTC-4, Shade Alabsa wrote: > > I've been trying to write a Jenkinsfile to do different tasks based on > whether it's a PR or a merge in Jenkins 2. I've found the snippet below > which will tell me if the build was triggered by a user or via Github. > No

Re: Branch Indexing/Poll SCM equivalent with the GitHub Organization Folder

2016-08-04 Thread Jesse Glick
On Thursday, August 4, 2016 at 1:32:12 PM UTC-4, R Tyler Croy wrote: > > From my understanding this also means that branch indexing on those > repositories in the organization, in effect, are also "running" once a day > (since the org is reindexed daily). > No, branch indexing is at a different

Jenkins 2.0 Piplines with GitHub Organization Folder Plugin and API rate_limit issues

2016-08-12 Thread Jesse Glick
Probably the plugin needs to be optimized to make fewer requests. I do not believe it has been carefully analyzed in this regard. Ideally GitHub would make your limit proportional to the size of the organization. -- You received this message because you are subscribed to the Google Groups "Jen

Re: Pipelines, github fork models and the Jenkinfile

2016-08-15 Thread Jesse Glick
On Sunday, August 14, 2016 at 1:28:50 AM UTC-4, Arvind Jayaprakash wrote: > > A world wherein the following can happen is god enough >> > >- "jenkins team" is able to offer pipelines with restricted set of >configuration points >- "development team" exercises these configs through a fi

Re: Parametrized MultiBranch Pipeline Jobs?

2016-08-30 Thread Jesse Glick
The first issue is being fixed. The second issue has a possible resolution filed in JIRA. The third issue certainly sounds like a bug. Please file it in `workflow-multibranch-plugin` with a script to demonstrate how to reproduce. -- You received this message because you are subscribed to the G

Re: Parametrized MultiBranch Pipeline Jobs?

2016-08-30 Thread Jesse Glick
BTW I think you are referring to the `properties` step, which takes a list of properties, one of which may be parameter definitions. -- 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

Re: Pipeline : Confused about file access on slaves

2016-10-18 Thread Jesse Glick
On Tuesday, October 18, 2016 at 8:09:56 AM UTC-4, Jonathan Hodgson wrote: > > Did you miss my last post? I tried FilePath, but I get a "unable to > resolve class" error. > Do not attempt to use `FilePath` from Pipeline script. It will not work. I'm in a powerfull object oriented cross platform l

Re: No workspace variable during workflow / pipeline build?

2016-11-03 Thread Jesse Glick
A subsequent plugin update does in fact define the environment variable `WORKSPACE`. But yes you could always use `pwd()` instead. -- 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

Re: [workflow-plugin] asynchronous model to trigger multiple downstream jobs

2015-02-24 Thread Jesse Glick
Probably https://issues.jenkins-ci.org/browse/JENKINS-26123 is what you were looking for. -- 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+unsub

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: [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: [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] 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: 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] 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-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: 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: 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: [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: [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] 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] 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] 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] 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] 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] 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 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] 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] 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: reading DSL script from file for BUILD FLOW PLUGIN

2015-02-26 Thread Jesse Glick
On Thursday, February 12, 2015 at 10:43:28 AM UTC-5, LesMikesell wrote: > > With workflow, if you trigger another build, how do you access that > other build object? For example to find the build number so you can > copy its artifacts into the workflow job.Or find the SVN_REVISION > so you

Re: [workflow plugin] how to block multiple execution?

2015-02-26 Thread Jesse Glick
On Friday, February 13, 2015 at 6:06:37 AM UTC-5, Stefan Lorenz wrote: > > Will this send the job to a queue if it's already running? > No, it will let a new build start, but then pause. Discussion: https://issues.jenkins-ci.org/browse/JENKINS-26860 -- You received this message because you are

Re: High level difference between workflow plugin and dsl plugin?

2015-02-26 Thread Jesse Glick
On Thursday, February 12, 2015 at 7:27:19 PM UTC-5, David Karr wrote: > > I was looking for a short statement that explains the difference between > the workflow plugin and the dsl plugin > It is unclear which plugin you are comparing Workflow to. If the Job DSL plugin, then Baptiste is correct:

Re: [workflow-plugin] aggregate several junit results

2015-02-26 Thread Jesse Glick
On Monday, February 16, 2015 at 8:51:39 AM UTC-5, sebastien@gmail.com wrote: > > the test results from the two configurations are mixed in the > junitResult.xml. All the test results are in the file, but their origin is > lost. > > How could I get this feature back in my workflow job? > TB

Re: [workflow-plugin] JUnit Tests Aggregation

2015-02-26 Thread Jesse Glick
On Monday, February 16, 2015 at 1:08:42 PM UTC-5, Pedro Algarvio wrote: > > I need to be able to trigger builds from GitHub hooks, which is not yet > supported I believe > Not clear if you are talking about JENKINS-26591 [1], for the pull-request builder, or general GitHub push hooks, which wou

Re: [workflow-plugin] clean after checkout in GenericSCM step

2015-02-26 Thread Jesse Glick
On Thursday, February 19, 2015 at 9:03:51 AM UTC-5, Clifford Sanders wrote: > > extensions: [[$class: 'hudson.plugins.git.extensions.impl.CleanCheckout']] > Actually just $class: 'CleanCheckout' should suffice. https://issues.jenkins-ci.org/browse/JENKINS-26619 -- You received this message beca

Re: [workflow-plugin] Exit code from sh call

2015-02-26 Thread Jesse Glick
On Thursday, February 19, 2015 at 5:19:45 PM UTC-5, Scott Armit wrote: > > Does anyone know how to do this? > https://issues.jenkins-ci.org/browse/JENKINS-26133 -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group an

Re: [workflow-plugin] How to reference workflow steps in a class?

2015-02-26 Thread Jesse Glick
On Wednesday, February 18, 2015 at 6:18:03 PM UTC-5, Jos Backus wrote: > > How does one reference workflow steps like sh and build from inside an > instance method? Using them unqualified yields a no method error. If you are using the global class library system, read https://github.com/jenkin

Re: [workflow-plugin] bug? using build parameters to skip builds steps

2015-02-26 Thread Jesse Glick
On Friday, February 20, 2015 at 2:37:21 AM UTC-5, sebastien@gmail.com wrote: > > why is the variable created by a "Boolean Build Parameter" (from the top > of the job configuration page) not a boolean variable in the first place? > > I guess is has something to do with compatibility with non-

Re: unable to abort a build using workflow plugin

2015-02-26 Thread Jesse Glick
On Thursday, February 19, 2015 at 1:11:53 PM UTC-5, Chris Taclas wrote: > > There may have been a problem with the way I had originally configured this > So some bug in Workflow, possibly filed, possibly not. Is there a way to force kill these processes? > See the workaround mentioned here: htt

Re: [workflow] xunit plugin support

2015-02-26 Thread Jesse Glick
On Wednesday, February 25, 2015 at 8:42:40 AM UTC-5, Arek Skalski wrote: > > How can I use XUnit plugin within my workflow? > File an RFE in xunit-plugin with the label workflow, then ask to have it be listed here: https://github.com/jenkinsci/workflow-plugin/blob/master/COMPATIBILITY.md#build-s

Re: [workflow-plugin]

2015-02-26 Thread Jesse Glick
On Friday, February 20, 2015 at 12:41:03 PM UTC-5, Raul Ferriz wrote: > > Are there any existing and compatible checkstyle plugin with workflow? > https://github.com/jenkinsci/workflow-plugin/blob/master/COMPATIBILITY.md#build-steps-and-post-build-actions does not list it, though I suspect this i

Re: Workflow Plugin - Performing a Release

2015-02-26 Thread Jesse Glick
On Monday, February 23, 2015 at 10:43:54 AM UTC-5, RM wrote: > > .6e6a43dd/jenkins-log.txt > > .6e6a43dd/pid > .6e6a43dd/script.sh > > > When i run 'git status' on my workspace using the shell command line, it says > i have no untracked changes. > > This control subdirectory is created for the dur

Re: groovy directory listing strangeness, node tag predicate not being honored.

2015-02-26 Thread Jesse Glick
On Friday, February 20, 2015 at 4:01:35 PM UTC-5, Timothy Wojtaszek wrote: > > new File(root).eachDir { dirs << it.name } > You cannot use java.io.File methods from a Workflow script if you are using slaves, since the script always runs on the master. If you need to inspect files beyond what

Re: [workflow-plugin] stage concurrency not working outside of node scope?

2015-02-26 Thread Jesse Glick
On Tuesday, February 24, 2015 at 12:55:38 PM UTC-5, sebastien@gmail.com wrote: > > I still wonder wether this is a bug, which I should file, or not. > I did recently fix a problem with the `stage` step not honoring `concurrency` in some cases, which will go into 1.3. https://issues.jenkins-

Re: [workflow-plugin] unarchive: Access is denied

2015-02-26 Thread Jesse Glick
On Wednesday, February 25, 2015 at 11:00:11 PM UTC-5, Christoph Vogtländer wrote: > > java.io.FileNotFoundException: > D:\Jenkins\jobs\testjob\workspace\Binary\test.dll (Access is denied) > at java.io.FileOutputStream.open(Native Method) > at java.io.FileOutputStream.(Unknown So

Re: workflow plugin info in running steps

2015-02-26 Thread Jesse Glick
On Thursday, February 26, 2015 at 11:36:27 AM UTC-5, Rudy Gevaert wrote: > > Is there a way to make it more descriptive? Can we pass more parameters > to the 'sh' call in the groovy.dsl? > e.g. > > sh ( command: 'echo hello world', message: 'saying helo') > https://issues.jenkins-ci.org/browse/

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

2015-02-26 Thread Jesse Glick
On Wednesday, February 25, 2015 at 1:02:00 PM UTC-5, Alan Ray wrote: > > Is it possible to define a push trigger via the workflow? > Not sure offhand; it is quite possible that a modest change is needed to the github plugin before this works. Is there a way to (easily) answer this question via d

Re: High level difference between workflow plugin and dsl plugin?

2015-02-26 Thread Jesse Glick
On Thursday, February 26, 2015 at 12:25:42 PM UTC-5, LesMikesell wrote: > > Workflow doesn't give you any access to the internals of the other > jobs it can start, so you can't ensure that that all are building the > same revision https://issues.jenkins-ci.org/browse/JENKINS-26100 https://issue

Re: groovy directory listing strangeness, node tag predicate not being honored.

2015-02-26 Thread Jesse Glick
On Thursday, February 26, 2015 at 1:13:00 PM UTC-5, Timothy Wojtaszek wrote: > > this means that for a node block, the master executing the workflow is > effectively communicating with the slave for each command. > Correct, each `sh` step, etc. means a transaction starts over the remoting channe

Re: Workflow Plugin - Performing a Release

2015-02-26 Thread Jesse Glick
On Thursday, February 26, 2015 at 1:11:23 PM UTC-5, Vincent Latombe wrote: > > Couldn't this be stored directly in a specific metadata folder outside of > any workspace? > Probably yes, so long as it is within the “slave root” folder, so you do not get cross-device issues etc. Please file this s

Re: reading DSL script from file for BUILD FLOW PLUGIN

2015-02-26 Thread Jesse Glick
On Thursday, February 26, 2015 at 2:55:17 PM UTC-5, Baptiste Mathus wrote: > > why aren't both of these just class >> libraries for the groovy plugin with an easy way to add new ones for >> common high-level operations? >> > > Many reasons already given I guess (suspendable, etc.) > Right, the req

Re: [workflow-plugin] stage concurrency not working outside of node scope?

2015-02-26 Thread Jesse Glick
On Thu, Feb 26, 2015 at 3:59 PM, wrote: > Did you test my simple workflow? No, sorry, was just guessing that your issue was a duplicate. > Or is there as way for me to test it on a daily build of the plugin? $ git clone https://github.com/jenkinsci/workflow-plugin.git $ mvn -f workflow-plugin

Re: [workflow-plugin] [script-security-plugin] unclassified methods in sandboxed mode

2015-03-09 Thread Jesse Glick
On Monday, March 9, 2015 at 3:45:07 PM UTC, Javier Delgado wrote: > > org.jenkinsci.plugins.scriptsecurity.sandbox.RejectedAccessException: > unclassified new org.codehaus.groovy.runtime.GStringImpl java.lang.String > java.lang.String[] > > Probably a bug; please file with steps to reproduce in c

Re: [workflow-plugin] [script-security-plugin] binding variable is not available on sandboxed runs

2015-03-09 Thread Jesse Glick
On Friday, March 6, 2015 at 9:51:08 AM UTC, Javier Delgado wrote: > > node { > binding['MYVAR'] = "myvalue" > echo "${binding.getVariables()} " > } > > If ran on a non-sandboxed environment, the output is nice: > > [steps:org.jenkinsci.plugins.workflow.cps.DSL@545c26e4, MYVAR:myvalue] > > Surpris

Re: [workflow-plugin] Recommended way to set Slave EnvVar?

2015-03-19 Thread Jesse Glick
On Friday, February 27, 2015 at 3:10:38 PM UTC-5, Timothy Wojtaszek wrote: > > Just collect them and add them to every sh command? > Yes, though I would suggest a more readable def golang = tool name: 'Go 1.2.2', type: 'org.jenkinsci.plugins.golang. GolangInstallation' def go(cmd) { sh "GOROO

  1   2   >