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: 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: 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

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

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

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

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 plugin

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 https://wiki.jenkins-ci.org/display/JENKINS/Team+Concert+Plugin for this purpose. When I use the *Snippet

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. To

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 ‘url’

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

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 unsubscribe

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] 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

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 any) is

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 question. Use

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 it,

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 work

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:

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 https://wiki.jenkins-ci.org/display/JENKINS/Config+File+Provider+Plugin for sharing files like settings.xml with the remote docker jenkins nodes. How do I use it in

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 the

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

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 sidepanel

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 execution

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 getting at

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

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

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 group.

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 received

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

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. To

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.

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: [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] Surprising to me.

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

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

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 and

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

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

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:

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] 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: 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 can

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 is

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 duration of

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:

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.

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.init(Unknown

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

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 requirement

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')

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

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 channel

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

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?

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

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 stop

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 and stop

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...

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.

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 https://wiki.jenkins-ci.org/display/JENKINS/Credentials+Binding+Plugin in a workflow? Does this plugin need to be updated to work in a workflow? Update: yes, and it

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

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

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 DescriptorToolInstallation Should extend ToolDescriptor. (Had we foreseen this mistake, we would have override getDescriptor in ToolInstallation to force

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 unsubscribe

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, but

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 stop

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 checkout

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

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, sebastien.barthel...@gmail.com 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

Re: [workflow plugin] Run existing non-CPS and system groovy scripts

2015-03-19 Thread Jesse Glick
On Thursday, March 12, 2015 at 4:47:59 PM UTC-4, Finn Hughes wrote: I can't see how to call my existing non-CPS groovy scripts, especially the system ones, from my workflow. Not quite clear what you are talking about here. If you mean to run plain old Groovy programs in your workspace, like

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

Re: Any plugin to parse XML?

2015-03-19 Thread Jesse Glick
On Tuesday, March 10, 2015 at 4:24:11 PM UTC-4, LesMikesell wrote: Not sure about how the pieces fit together in Workflow. You may have an issue with restrictions on the libraries you can access, either at all or which ones are exposed to things running on the slave nodes. Have not tried

Re: [workflow] how to mark build as unstable inside jenkins workflow?

2015-03-19 Thread Jesse Glick
On Monday, March 2, 2015 at 12:04:20 PM UTC-5, Baptiste Mathus wrote: If some plugin, say the junit one, doesn't support this I do not think it does. You can configure how test failures affect build health, but if there is ≥1 failure then the build becomes UNSTABLE.

Re: [workflow-plugin] Clean workspace

2015-03-19 Thread Jesse Glick
On Tuesday, March 3, 2015 at 9:18:26 AM UTC-5, Daniel P wrote: Or are we forced to use something like sh 'rm -r *' every time we allocate a node? “sh 'rm -rf *'” is shorter than even the name “Workspace Cleanup Plugin”. :-) -- You received this message because you are subscribed to the

Re: [workflow-plugin] Using Closures in workflow scripts not allowed?

2015-03-19 Thread Jesse Glick
BTW this method should be whitelisted by default in the future. -- 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

Re: [workflow-plugin] Access to environment variables in flow.groovy

2015-04-01 Thread Jesse Glick
On Wednesday, April 1, 2015 at 12:55:37 PM UTC-4, Kent Johnson wrote: I think I could just echo $env.BUILD_NUMBER for those who are wondering. I didn't test doing so though I am sure it would work. Either: echo env.BUILD_NUMBER or echo ${env.BUILD_NUMBER} (Not sure whether Groovy gives

Re: [workflow-plugin] unable to create workflow job

2015-06-16 Thread Jesse Glick
On Monday, June 15, 2015 at 8:20:17 PM UTC-4, Steven Holmes wrote: I wonder if there is an easier install. You should not need to do anything beyond asking to install “Workflow: Aggregator” (it is advisable to also restart Jenkins when offered). -- You received this message because you are

Re: [workflow-plugin] build wait for downstream job

2015-06-16 Thread Jesse Glick
On Sunday, April 19, 2015 at 5:05:34 PM UTC-4, Nicolas Labrot wrote: I have two jobs 'Job 1' and 'Job 2'. 'Job 2' is a downstream job of 'Job 1' (Job 1 builds Job 2 as a post build action). 'Job 2' always fails. Even if propagate and wait are set to true, my workflow project never waits

Re: [workflow] Git step to check out a commit instead of a branch

2015-06-16 Thread Jesse Glick
On Wednesday, March 25, 2015 at 10:26:37 AM UTC-4, Lóránt Pintér wrote: Is it possible to check out a particular commit hash, instead of a branch with the git workflow step? No, but it should be possible with some exotic options to GitSCM, run via the generic checkout step. -- You

Re: [workflow-plugin] Dir step : funny way of removing your whole master .jenkins directory

2015-06-16 Thread Jesse Glick
All I can say is that if you set up security on Jenkins, then it would be impossible for a non-administrator to run the above script, because it would have to be sandboxed and the call to the File constructor would have been rejected, perhaps prompting that person to ask for help. -- You

Re: [workflow-plugin] Exposing RunWrapper.getLog() methods for workflow build step (or alternate way to retrieve build-step logs)

2015-06-16 Thread Jesse Glick
On Wednesday, June 10, 2015 at 3:36:43 PM UTC-4, Vizionz wrote: I see that the RunWrapper does not expose any api to retrieve Run.getLogFile(). Did you try wrapper.rawBuild.log? -- You received this message because you are subscribed to the Google Groups Jenkins Users group. To

Re: Does anyone know how to use htmlpublisher with workflow.

2015-06-16 Thread Jesse Glick
On Wednesday, April 15, 2015 at 5:10:30 PM UTC-4, Rinaldo DiGiorgio wrote: It is listed here as working. https://github.com/jenkinsci/workflow-plugin/blob/master/COMPATIBILITY.md No, it is listed here as needing JENKINS-26343 https://issues.jenkins-ci.org/browse/JENKINS-26343 to be

Re: workflow plugin: how to execute shell command with quoted arguments?

2015-06-16 Thread Jesse Glick
On Tuesday, May 19, 2015 at 11:40:32 AM UTC-4, Alexander Uvizhev wrote: To be clear what I try to do is: shmyexecutable 'argument' node { sh echo 'works fine' } Works for me. Without a complete, self-contained script it is hard to say where you got it wrong (or whether there is a genuine

Re: [workflow-plugin] Get environment variables defined in Jenkins configuration

2015-06-16 Thread Jesse Glick
On Monday, May 18, 2015 at 4:24:25 AM UTC-4, Carlos Lucas wrote: I tried with* System.getenv()[myVar],* *currentBuild.getEnvironment(null), env.myVar * and accessing like a normal variable but nothing works. Do you know how can I do it? env.myVar works, so long as you are inside a node {}

Re: [workflow-plugin] How can I get the hostname of the parent node

2015-06-16 Thread Jesse Glick
On Monday, March 30, 2015 at 7:36:23 AM UTC-4, Clifford Sanders wrote: I could write the hostname to a file and archive/unarchive it to read the hostname from there. readFile -- You received this message because you are subscribed to the Google Groups Jenkins Users group. To unsubscribe

Re: Workflow Plugin -- temporary files are created in the workspace directory

2015-06-16 Thread Jesse Glick
On Tuesday, March 31, 2015 at 3:29:24 PM UTC-4, Rinaldo DiGiorgio wrote: Is jenkins actually creating files in the workspace directory instead of some tmp directory. Pending JENKINS-27152 https://issues.jenkins-ci.org/browse/JENKINS-27152, yes. I can't simply ignore all .hidden files

Re: [workflow-plugin] Compatibility with hetero-list and DescribableList?

2015-06-16 Thread Jesse Glick
On Friday, March 13, 2015 at 10:41:43 AM UTC-4, Nicolas Reibel wrote: I am working on a quite complex post-action build, where the user can select which info to display through a hetero-list. First of all, this might better be sent to jenkinsci-dev. For this purpose, I overwrote the

Re: Workflow Plugin -- how to display a summary page

2015-06-16 Thread Jesse Glick
On Wednesday, April 1, 2015 at 7:34:49 PM UTC-4, Rinaldo DiGiorgio wrote: Can someone suggest how to collect the test results to show trends on a single page so that users can go to one page and see all the results for a job that needs to compile on n different platforms and has

Re: [workflow-plugin] JAVA_HOME is not defined correctly

2015-06-16 Thread Jesse Glick
On Monday, March 16, 2015 at 9:27:37 AM UTC-4, Patrick Bateman wrote: env.PATH=${tool 'Maven 3.2.5'}/bin:${env.PATH} Try adding env.JAVA_HOME = tool 'JDK 8' or whatever your preferred JDK installation is called in global configuration. -- You received this message because you are

Re: [workflow-plugin] execute post build step regardless of any errors that occured before

2015-06-16 Thread Jesse Glick
On Thursday, March 26, 2015 at 12:49:49 PM UTC-4, Clifford Sanders wrote: There are UI tests so one of the first steps is to start Xvfb before executing the Maven command and stopping it afterwards. BTW if you can use xvnc instead, that plugin is now compatible with Workflow 1.8+ as a build

Re: [workflow-plugin] getting error: java.io.NotSerializableException: java.util.HashMap$Entry

2015-06-16 Thread Jesse Glick
A variant of https://issues.jenkins-ci.org/browse/JENKINS-27421 I think. -- 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

Re: Call vSphere cloud plugin via Groovy DSL

2015-06-16 Thread Jesse Glick
On Monday, June 15, 2015 at 5:14:25 AM UTC-4, Quang Truong wrote: how we can use workflow Groovy CPS DSL script to run a build step on vSphere plugin instead of using a job? Currently I think you cannot. I filed JENKINS-28930 https://issues.jenkins-ci.org/browse/JENKINS-28930. -- You

Re: [workflow-plugin] Groovy CPS DSL from SCM and Stash notification trigger

2015-06-16 Thread Jesse Glick
On Monday, April 20, 2015 at 6:47:13 AM UTC-4, Tom Deblauwe wrote: I get a notification from Stash with a commit id from the project.git repository(as expected), but jenkins tries to checkout that commit in the workflows.git repository, NOT the project.git repository. I think the root

Re: [workflow-plugin] Limiting a stage

2015-06-16 Thread Jesse Glick
On Tuesday, May 12, 2015 at 11:22:14 AM UTC-4, bo...@seekingalpha.com wrote: The workflow plugin could really clean and parallelize our pipeline, but we have some jobs that cannot be parallelized. JENKINS-26860 https://issues.jenkins-ci.org/browse/JENKINS-26860 -- You received this

  1   2   >