Git plugin setting GIT_COMMIT to value of last hash??

2016-03-22 Thread Brantone
Hello, We have a quirky situation we're trying to track down ... on random occasions, the environment variable value for "GIT_COMMIT" is actually set to the hash for the last commit instead of the current one, as the docs outline (https://wiki.jenkins-ci.org/display/JENKINS/Git+Plugin). The act

matrix-auth plugin update failure

2016-02-23 Thread Brantone
Anyone else seeing anything like this? https://issues.jenkins-ci.org/browse/JENKINS-33095 Just checking if I'm only one. Cheers. -- 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,

Opinions for downstream jobs: Check "This build is parameterized" or not

2016-02-01 Thread Brantone
G'day, Curious question on your own conventions when setting up a job that will be downstream (so when A triggers B). Do you still check the "This build is parameterized" and and fill in *ALL* the params it's expecting, or use the params in the job as if they were defined and expect upstream cal

Using FileCallable from System Groovy or Script Console

2015-10-14 Thread Brantone
Has anyone been able to get the example from http://javadoc.jenkins-ci.org/hudson/FilePath.html to actually run in Script Console? Direct copy-paste doesn't work, didn't work, complaints ex: Script1.groovy: 10: The class 'Freshen' has an incorrect modifier static. > @ line 10, column 2. > p

Git commit counter with system Groovy??

2015-10-02 Thread Brantone
It almost feels like this should be pretty basic functionality, but thus far in my searches : no luck. Looking to just get the Git commit counter. I know I can use "git rev-list HEAD --count" from within the workspace, but for various reason I'm using groovy and need to set it as a parameter du

Re: Freestyle using "Invoke top-level maven targets" passes all parameters to target??

2015-08-13 Thread Brantone
Thursday, 13 August 2015 01:02:53 UTC-7, Brantone wrote: > > Using Freestyle project rather than Maven-project due to several > recommendations ... ex: as one poster called it : the "evil job type" :-/ > > Except, when calling it via "Invoke top-level maven targets&quo

Freestyle using "Invoke top-level maven targets" passes all parameters to target??

2015-08-13 Thread Brantone
Using Freestyle project rather than Maven-project due to several recommendations ... ex: as one poster called it : the "evil job type" :-/ Except, when calling it via "Invoke top-level maven targets", I see it passes in ALL build parameters as options, can anyone shed light on why that'd be th

Re: Invoking top-level Maven targets on a slave

2015-08-13 Thread Brantone
What're the values in Manage Jenkins > Maven Installations? Assuming it's the default, it could be a class path issue depending on the shell used to start the OS X slave. What happens if you explicitly set the MAVEN_HOME value to it's absolutely path (ex: /usr/local/apache-maven/apache-maven-3.

Re: Groovy script vs. system script : file info needed to affect build

2015-08-13 Thread Brantone
I have only been able to get #3 to work. But I am not a Groovy expert. I > would love a solution like #2 if you create one. > > > > *From:* jenkins...@googlegroups.com [mailto: > jenkins...@googlegroups.com ] *On Behalf Of *Brantone > *Sent:* Tuesday, August 11, 2015 9:1

Groovy script vs. system script : file info needed to affect build

2015-08-11 Thread Brantone
I'm well aware of the differences (and headaches) between Groovy script and system Groovy script .. my question involves the following scenario: After an SCM checkout is done on remote slave node, need to grep for a string in a specific file, whose value will be used for all downstream jobs, pre

Re: Naming jobs : delimiters : hyphens vs. underscores

2015-08-11 Thread Brantone
Good point, if a standard has been set "no spaces" (which is good regardless), then that solves. Thanks On Tuesday, 14 July 2015 10:55:33 UTC-7, James Nord wrote: > > On 14/07/2015 08:44, Brantone wrote: > > I fully appreciate that this one's a preference thing,

[workflow-plugin] ClassCastException on brand new project

2015-07-22 Thread Brantone
Ok, what am I doing wrong? This is "right outta the box" and a non-starter, read docs a few times, but maybe the amount of caffeine affecting my eyes ... I figured I'd start playing around with workflow-plugin to actually code ... but alas, first quick pass starts throwing ClassCastException .

Re: Release notes from XX previous build change logs in Markdown

2015-07-14 Thread Brantone
I created this Groovy script, which relies on PARENT_JOB_NAME and PARENT_JOB_NUMBER as params, but could be be better expanded to look at it's parent directly rather than relying on those. Progresses up the tree of triggered jobs, collecting change notes, then pumps it all into a new param RELEA

Naming jobs : delimiters : hyphens vs. underscores

2015-07-14 Thread Brantone
I fully appreciate that this one's a preference thing, but curious if there's general consensus, and if any technical gotchas one way or another. (actually surprised search find anything) Cheers. -- You received this message because you are subscribed to the Google Groups "Jenkins Users" grou

Re: Is it OK to link config.xml files?

2015-03-30 Thread Brantone
A fifth option is https://github.com/JoelJ/ez-templates On Wednesday, 25 March 2015 14:42:48 UTC-7, Steve K wrote: > > > Thanks for the replies. > There have been four replies and four different approaches. > I will look into using either the Template Project or the Job DSL plugins. > I'm not as c

Re: Slack Plugin doesn't notify channel

2015-03-30 Thread Brantone
I'm guessing part of what you're seeing is mentioned here: https://github.com/jenkinsci/slack-plugin/issues/51 Have you verified your configs in the Manage Jenkins > Configure System > Global Slack Notifier Settings ? I've found that that's a better test of configuration and values stick bet

Re: Automatic build chain

2015-03-30 Thread Brantone
Just to be clear, based on your description, the build order would be D -> B -> C -> A ? Are B + C in parallel?? Yes, there are a number of plugins that do that, a great one is Multi-Job plugin with the concept of phases this can be achieved, especially the parallel execution of B + C, should it

Re: How to read the logged in user's password in Jenkins as plain text?

2015-03-30 Thread Brantone
That's quite a security issue and generally not recommended. As a compromise, if it's required as part of a job, could use the "Password Parameter" option and have the user re-enter it. On Friday, 27 March 2015 16:38:17 UTC-7, Mantoo Ankalakoti wrote: > > Hi, > > I want to read the logged in user

Re: Remote trigger job between masters with file upload/transfer

2015-03-30 Thread Brantone
Best option looks to be a bit of a cobbled together solution of : get next build number, curl by posting the file, then using that build number to monitor until it's completed. Feels like a complete hack, but ... so be it :( On Friday, 6 March 2015 00:27:38 UTC-8, Brantone wrote: &g

Remote trigger job between masters with file upload/transfer

2015-03-06 Thread Brantone
Hey, looking for a method to remotely trigger a Jenkins job from one master to another, with file upload/transfer ... and wait for response (success or failure). I'm aware there's the plugin https://wiki.jenkins-ci.org/display/JENKINS/Parameterized+Remote+Trigger+Plugin however, that doesn't s

Convert existing Job to DSL

2014-09-22 Thread Brantone
Hey, So I had created a bunch of jobs before stumbling upon the DSL plugin. Wondering if there's an efficient way to convert existing jobs to DSL? I did find https://issues.jenkins-ci.org/browse/JENKINS-16360 from a year ago, marked as minor ... but considering the description of "pretty straigh

Re: Expanding Parameters when triggering Jobs

2014-09-18 Thread Brantone
ere, just can't find it. Anyway, thread closed. On Monday, 15 September 2014 18:21:03 UTC-7, Brantone wrote: > > Perhaps just not using the right terms to look for an answer as I'm > thinking this isn't crazy unique. > > So "Job A" triggers "J

Expanding Parameters when triggering Jobs

2014-09-15 Thread Brantone
Perhaps just not using the right terms to look for an answer as I'm thinking this isn't crazy unique. So "Job A" triggers "Job B". Job A has a parameter called PROJECT_PATH, whose value = "${WORKSPACE}/project/trunk/". When triggering Job B choosing "Current Build Parameters", It passes it st

Release notes from XX previous build change logs in Markdown

2014-08-22 Thread Brantone
Looking to publish release notes based on change logs from SCM commit messages .. and preferably in Markdown, but plain text will do ... alas, surprised no plugin exists (that I can find), so curious how others handle such a scenario, or else I guess I'm writing a plugin :) I do have https://w