Re: Parallel pipeline and Stage View

2020-02-23 Thread Stuart Rowe
If the subversion plugin produces a changeset for a run, then blueocean should be able to display that. Subversion wouldn't be supported when using blueocean to author pipelines though. -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsub

Re: Hi friend i have 2 lockable resource while executing same job 2 times i want 2nd job will move 2nd lcokable resource how can i do it

2020-05-01 Thread Stuart Rowe
I agree with Christoph that there are better approaches. However, if you really want to do this you can use the new skipIfLocked feature added in lockable-resource 2.8 : pipeline { agent any stage

Re: Hi friend i have 2 lockable resource while executing same job 2 times i want 2nd job will move 2nd lcokable resource how can i do it

2020-05-01 Thread Stuart Rowe
Do you have release 2.8 installed? https://github.com/jenkinsci/lockable-resources-plugin/releases/tag/lockable-resources-2.8 -- 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, sen

Re: Hi friend i have 2 lockable resource while executing same job 2 times i want 2nd job will move 2nd lcokable resource how can i do it

2020-05-03 Thread Stuart Rowe
That's disappointing. Perhaps you can report this issue to the plugin maintainers? That is the use case for the skipIfLocked feature. -- 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: How to add parameters to existing parameters list?

2020-08-04 Thread Stuart Rowe
You can configure the parameters for the current job (in a Scripted Pipeline) with: def parameterList = [stringParam(name: 'Test', value: 'TestValue')] properties(parameters(parameterList) This will replace all parameters of your job with the contents of parameterList. On Monday, 3 August 202

Re: Get result of build step

2020-09-14 Thread Stuart Rowe
The triggerRemoteJob pipeline step returns a Handle , while the build pipeline step returns a RunWrapper

Re: How to get command versions supported by Pipeline

2020-10-26 Thread Stuart Rowe
The folder containing the "dotnet" executable/script needs to be added to your PATH environment variable. It's likely that the machine where this command works already has the "dotnet" folder included in the PATH environment variable. On Tuesday, 13 October 2020 at 07:49:25 UTC-7 venh...@gmail.

Re: BUG with libraryResource : No such library resource null could be found.

2020-12-17 Thread Stuart Rowe
Any chance this is being called from a @NonCPS method? I've seen similar behaviour in that case. On Monday, 14 December 2020 at 14:37:55 UTC-8 yannick...@gmail.com wrote: > Hi, > > In a shared library, in a groovy script in /vars, the following code is > working perfectly: > > String call(String

Re: Scripted pipeline: Is a job triggered by pipelineTrigger?

2018-08-14 Thread Stuart Rowe
You can check the Run instance for a TimerTriggerCause. See: https://javadoc.jenkins-ci.org/hudson/model/Run.html#getCause-java.lang.Class- Since this is in pipeline, you would need to access the Run within a @NonCPS method. Also, you would need to whitelist the RunWrapper#getRawBuild

Re: Installing Artifactory and Blue Ocean plugins offline

2018-10-10 Thread Stuart Rowe
Does anyone know if juseppe works with an existing artifactory instance? -- 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...@googlegroup

Re: Adding files before zipping (pipeline utility plugin Jenkins)

2018-11-15 Thread Stuart Rowe
Have you tried copying the *README.md* into *directory/to/my/folder* before calling *zip*? On Thursday, 15 November 2018 09:38:27 UTC-8, Faad Sayaou wrote: > > Hello, > I currently have a pipeline which zips results of a build stage. I have a > README.md file which i will like to add in my zip f

Re: How to enable logging per file/package

2019-01-25 Thread Stuart Rowe
Hi Gerry, Create a new named Log Recorder and then configure it following the instructions. Within the configuration page, add a new a Logger for hudson.model.Queue. You can see where the logger is initialized here: Queue.java#L2792

Security - Pipeline parameterized credentials can be reused by other users

2019-03-14 Thread Stuart Rowe
Could you remove build permissions on that job for the users that don't know the credentials? They wouldn't be able to run the job anyways. That should also remove their ability to replay the job as far as I understand. -- You received this message because you are subscribed to the Google Group

Re: Upgrading from Jenkins LTS 2.150.1 to 2.150.2 - Slowness and Workaround

2019-03-15 Thread Stuart Rowe
This has been reported in https://issues.jenkins-ci.org/browse/JENKINS-56243. Unfortunately the workaround is only temporary. On Friday, 8 February 2019 00:57:53 UTC-8, Kurt Routley, MSc wrote: > > Hello, > > > After upgrading from Jenkins LTS 2.150.1 to 2.150.2, we observed > significant slowd

Re: Security - Pipeline parameterized credentials can be reused by other users

2019-03-15 Thread Stuart Rowe
22:55:46 UTC-7, Sarfroz Basha wrote: > > > > On Thursday, March 14, 2019 at 10:10:50 PM UTC+5:30, Stuart Rowe wrote: >> >> Could you remove build permissions on that job for the users that don't >> know the credentials? They wouldn't be able to run the j

Re: Jenkins Performance loading slow

2019-03-19 Thread Stuart Rowe
Since you have the Active Directory plugin installed, can you confirm that you have caching enabled? We were bit by this when upgrading a test instance to LTS 2.150.2. See: https://issues.jenkins-ci.org/browse/JENKINS-56243 -- You received this message because you are subscribed to the Google G

Unable to open a JIRA issue

2019-04-16 Thread Stuart Rowe
I'm having the same issue. Perhaps this should be cross posted to the Jenkins Developers group as well? -- 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 jenkins

Re: Return value of build Pipeline step - What is it?

2019-07-11 Thread Stuart Rowe
The return value is a RunWrapper as long as wait is set to true. On Thursday, 11 July 2019 06:58:13 UTC-7, George Sexton wrote: > > Can anyone help me understand what if any t

Re: [Email-ext] Resolving email address from Cause.UserIdCause

2014-10-29 Thread Stuart Rowe
the email > address (ie, "myscript.groovy")? > Thanks! > Nick. > > > On Tuesday, March 11, 2014 11:24:37 AM UTC-7, Stuart Rowe wrote: >> >> Hi, does anyone know of a way to look up a user's email address from >> their user ID? I can't make the as

Re: [Email-ext] Resolving email address from Cause.UserIdCause

2014-11-03 Thread Stuart Rowe
:43:56 PM UTC-7, Stuart Rowe wrote: >> >> Here you go :) >> >> >> import javax.mail.Message >> import hudson.model.* >> import com.cloudbees.plugins.flow.* >> import hudson.tasks.MailAddressResolver >> >> def getUpstreamBuild(Abstract

Does the NodeLabelParameter plugin support more than one Label parameter in a project?

2014-02-04 Thread Stuart Rowe
In my situation I have build machines divided into two categories: A and B. The nodes for each machine are labelled accordingly. I also have platforms associated with each machine (one or more of x, y, z). These are also included in the labels for each node. I would like to set up a project wit

Re: Does the NodeLabelParameter plugin support more than one Label parameter in a project?

2014-02-04 Thread Stuart Rowe
Marc MacIntyre wrote: > Pass a boolean expression: (A&&y) > > > On Tue, Feb 4, 2014 at 11:30 AM, Stuart Rowe wrote: > >> In my situation I have build machines divided into two categories: A and >> B. The nodes for each machine are labelled accordingly. >> >>

Calling an external groovy script from BuildFlow DSL

2014-02-25 Thread Stuart Rowe
The BuildFlow DSL for some of my projects has become pretty complex and so I want to store the meat of the script in an external script. The BuildFlow DSL would then just be responsible for calling that script and setting up bindings if necessary. The advantages of this: 1) For debugging orches

Re: For loop in the Jenkins build flow

2014-02-26 Thread Stuart Rowe
parallel() can take a list/map of closures you will want to do this: // construct and collect closures for LATER execution buildClosures = [] for (int i=1; i<100; i++) { def curClosure = { build("a", STEP:i) } buildClosures.add(curClosure) } // execute the closures in buildCl

[Email-ext] Resolving email address from Cause.UserIdCause

2014-03-11 Thread Stuart Rowe
Hi, does anyone know of a way to look up a user's email address from their user ID? I can't make the assumption that the email is "use...@company.com" because I know this isn't always the case. We're using the Active Directory plugin for security which is where the email addresses for users are

Re: [Email-ext] Resolving email address from Cause.UserIdCause

2014-03-11 Thread Stuart Rowe
; need to look up the user's email address from their user ID, but then you > say you are getting email addresses from Active Directory? Can you clarify. > > Thanks, > > slide > > > On Tue, Mar 11, 2014 at 11:24 AM, Stuart Rowe > > wrote: > >> Hi, does

Re: [Email-ext] Resolving email address from Cause.UserIdCause

2014-03-11 Thread Stuart Rowe
ll the MailAddressResolver > resolve method yourself from the groovy script in each recipient, but you > may not need to do that depending on how you are adding the recipients. > On Mar 11, 2014 11:56 AM, "Stuart Rowe" > > wrote: > >> Sorry for the confusion

Re: [Email-ext] Resolving email address from Cause.UserIdCause

2014-03-11 Thread Stuart Rowe
ENTS and ${SCRIPT...} tokens in the > edit box and it will work just fine. > > > On Tue, Mar 11, 2014 at 12:44 PM, Stuart Rowe > > wrote: > >> I just found the MailAddressResolver class on my own and it's solved the >> problem. >> >> Currently I

Re: BUILD FLOW parallel closure simple example

2014-04-28 Thread Stuart Rowe
As Marc pointed out, the variable "i" isn't private to each closure because it's defined outside of the scope. One solution would be to copy the value of i to a variable defined within the scope of the closure: for (int i=1; i<50; i++) { def curClosure = { def j = i build("

Re: BUILD FLOW parallel closure simple example

2014-05-01 Thread Stuart Rowe
rized #7 <http://localhost:8082/job/TestParameterized/7/> > completed > > *... (truncated for brevity)* > TestParameterized #7 <http://localhost:8082/job/TestParameterized/7/> > completed > } > Finished: SUCCESS > > > *TestParameterized *contains two runs

Perforce: merge files from a continuous directory to an integration directory...

2014-05-07 Thread Stuart Rowe
Can you describe your branch structure a little more? How are your integration builds triggered? If you're trying to move changes from your development branch to another branch why don't you want to merge? Conceptually I would approach this as: 1) start an integration of your Dev branch up to

Re: Perforce: merge files from a continuous directory to an integration directory...

2014-05-07 Thread Stuart Rowe
tegration Build" >> >> On the integrate I get: - all revision(s) already integrated. >> On the integrate I get: No files to submit from the default changelist. >> and the "Execute Windows batch command" fails the build "Build step >> '

Re: Perforce: merge files from a continuous directory to an integration directory...

2014-05-09 Thread Stuart Rowe
t; Thanks, I'll give it a go. For #4, are you putting these into a "Execute > Windows batch command" build step"? > > On Wednesday, May 7, 2014 2:18:57 PM UTC-5, Stuart Rowe wrote: >> >> Try this approach (there may be typos / gotchas - it's completely

Re: LDAP configuration in jenkins

2014-07-29 Thread Stuart Rowe
Using the AD plugin you can list multiple domain controllers in the advanced configuration section. On Tuesday, 29 July 2014 09:59:58 UTC-7, alok kumar wrote: > > Hi All, > We have a requirement where in we would like to configure Jenkins users to > be authenticated by seeing up LDAP. > > The p