Re: Adopting the ruby-runtime plugin

2021-10-13 Thread 'Jesse Glick' via Jenkins Users
I think you meant to post to the dev list, not the user list, but anyway please read: https://jenkins.io/jep/7 -- 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: 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

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

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.

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

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

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

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

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

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

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

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

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

Re: Using environment variable SVN_REVISION_n in a workflow build

2015-10-09 Thread Jesse Glick
On Wednesday, October 7, 2015 at 11:54:49 AM UTC-4, Peter Marcoen wrote: > > Am I doing something wrong here? > No, just JENKINS-24141 . The workaround is to get the revision number yourself . --

Re: [workflow-plugin] Sample script for deleting a workflow workspace?

2015-10-01 Thread Jesse Glick
On Tuesday, September 29, 2015 at 4:51:09 PM UTC-4, Craig Rodrigues wrote: > > It might be worth it to take the deleteDir() example from > DeleteDirStepTest.java and put it in help.html > I am not seeing anything in the test not covered by the help; maybe I am missing something? I would

Re: Workflow : how to send a basic "build failed" mail

2015-09-14 Thread Jesse Glick
On Monday, September 14, 2015 at 7:42:13 AM UTC-4, Michael Neale wrote: > > is there no way to have an on failure handler (perhaps for all steps) vs a > per node or global catch/print writer? > JENKINS-28119 -- You received this message

Re: Workflow Jobs and SCM Polling

2015-08-12 Thread Jesse Glick
On Tuesday, August 11, 2015 at 6:14:43 PM UTC-4, Gregory Symons wrote: The only thing I can think of for what's happening is that the change isn't getting recorded as having been built before the next polling cycle runs, because the top-level build hasn't finished. Possible. I do not

Re: [workflow] preemting older builds in throttled stages

2015-08-12 Thread Jesse Glick
On Friday, June 19, 2015 at 9:26:24 AM UTC-4, Olve Hansen wrote: I don't understand how to structure the flow to be able to answer yes/no to only the newest build and make an older build 'exit early'. If I move the input message before the stage start the newest build just waits to enter

Re: Approve workflow script from Job DSL plugin

2015-08-12 Thread Jesse Glick
On Tuesday, July 21, 2015 at 4:17:51 PM UTC-4, David Resnick wrote: How can I have the workflow job script updated via Job DSL without having to approve the script each time it changes? If the Job DSL plugin supports setting sandbox=true here, use that. However it would be a nice

Re: [workflow-plugin] ClassCastException on brand new project

2015-08-12 Thread Jesse Glick
On Thursday, July 23, 2015 at 2:07:24 AM UTC-4, Brantone wrote: what am I doing wrong? Using the Build Blocker plugin, which apparently makes a “blind cast” that now fails. Report a bug for that plugin, add the `workflow` label. -- You received this message because you are subscribed to

Re: [workflow-plugin] SBT job complete succesfully but the job failed

2015-08-12 Thread Jesse Glick
On Saturday, August 1, 2015 at 1:18:00 PM UTC-4, Filippo De Luca wrote: Recording test results Running: Allocate node : Body : End Running: Allocate node : End Running: End of Workflow Finished: FAILURE Why? how can I investigate more? Normally the failure cause should be printed to the

Re: [workflow-plugin] Using workflow in same SCM as code

2015-08-12 Thread Jesse Glick
On Tuesday, July 14, 2015 at 1:16:35 AM UTC-4, Michael Lasevich wrote: I want to keep my workflow script in same git repo as rest of my code and want to avoid hard-coding URLs or branch names into the workflow. Multibranch workflow, in beta. -- You received this message because you are

Re: git-server plugin and security

2015-08-12 Thread Jesse Glick
On Wednesday, July 8, 2015 at 1:10:15 PM UTC-4, Gregory Symons wrote: I've discovered what I think is a bug/missing feature when trying to access the git repo over https JENKINS-26537 https://issues.jenkins-ci.org/browse/JENKINS-26537 -- You received this message because you are

Re: [workflow-plugin] Running Steps shown twice

2015-08-12 Thread Jesse Glick
1. JENKINS-29326 https://issues.jenkins-ci.org/browse/JENKINS-29326 -- 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: [workflow-plugin] EXECUTOR_NUMBER

2015-08-12 Thread Jesse Glick
File an RFE blocking JENKINS-28131. Would be a very easy fix (not that I am promising anything). -- 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: [workflow] Example of test executing the step

2015-08-12 Thread Jesse Glick
On Thursday, July 30, 2015 at 2:30:37 AM UTC-4, Nikita Salnikov-Tarnovski wrote: I am thinking about contributing a patch to the workflow. This is a jenkinsci-dev topic. That said, I cannot find an example of the test, that actually executes a step in the workflow and verifies the result

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

2015-08-12 Thread Jesse Glick
On Wednesday, June 17, 2015 at 2:53:25 PM UTC-4, Stephan Stachurski wrote: using our conventional jenkins pipeline, we have been burned in the past when the head of a branch changed between the start and end of the pipeline. If using a multibranch workflow (currently in beta), you just say

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

Re: workflow plugin -- dynamically select specifc slave nodes in for loop

2015-06-16 Thread Jesse Glick
On Monday, April 27, 2015 at 11:18:09 PM UTC-4, Anshu Arya wrote: java.io.NotSerializableException: java.util.AbstractList$Itr JENKINS-27421 https://issues.jenkins-ci.org/browse/JENKINS-27421 -- You received this message because you are subscribed to the Google Groups Jenkins Users group.

Re: Scripts not permitted to use staticMethod org.codehaus.groovy.runtime.ScriptBytecodeAdapter compareLessThan java.lang.Object java.lang.Object

2015-06-16 Thread Jesse Glick
On Tuesday, May 12, 2015 at 9:59:38 PM UTC-4, Rinaldo DiGiorgio wrote: Scripts not permitted to use staticMethod org.codehaus.groovy.runtime.ScriptBytecodeAdapter compareLessThan java.lang.Object java.lang.Object The In Process Script approval plugin shows no scripts to approve. It would

Re: [workflow plugin] how to force stop stuck build?

2015-06-16 Thread Jesse Glick
On Wednesday, April 8, 2015 at 6:19:38 AM UTC-4, Christoph Vogtländer wrote: Workaround does not work for me Right, the workaround is not available on Windows nor or NFS. You would need to shut down Jenkins, delete the build directory from a command prompt, and restart. Sorry. -- You

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] 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] [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-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 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: 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’

  1   2   >