Job #s are inconsistent after restore from thinBackup

2015-11-12 Thread Guy Matz
Hi! I was lucky enough to be able to restore from a backup and a disk failure, but now *some* of my jobs are misnumbered . . . one job has: $ ls -l builds/ total 16 drwxr-xr-x. 2 jenkins jenkins 4096 Nov 11 17:54 1304 drwxr-xr-x. 3 jenkins jenkins 4096 Nov 12 09:33 1305 drwxr-xr-x. 2 jenkins jenk

Re: Job #s are inconsistent after restore from thinBackup

2015-11-12 Thread Guy Matz
ry. > Jenkins doesn't read from the file except when loading the Job. > > On 12.11.2015, at 17:49, Guy Matz wrote: > > > Hi! I was lucky enough to be able to restore from a backup and a disk > failure, but now *some* of my jobs are misnumbered . . . one job has: > >

Re: Workflow: extract git revision and build a timestamp

2015-12-09 Thread Guy Matz
I do believe the plugin sets the var you want. have a look at Environment variables here: https://wiki.jenkins-ci.org/display/JENKINS/Git+Plugin#GitPlugin-AdvancedFeatures On Thu, Nov 12, 2015 at 12:41 PM, Jens Wilke wrote: > Hi all, > > for extracting a git revision and building a timestamp at

Groovy Question: revision from job?

2015-12-09 Thread Guy Matz
Hi! Anyone know how I can retrieve the git revision from a job? I can get to the build: j = Jenkins.instance.getJob('render-master') b475 = j.getBuildByNumber(475) but I can't find a way to to get the git revision associated with that build. Any thoughts would be appreciated! Thanks a lot, Gu

Re: Groovy Question: revision from job?

2015-12-10 Thread Guy Matz
Nicely done!! How the heck was I supposed to know that!? :-( The API is less than intuitive and does not seem to be well documented. Any advice on how to best use it? Thanks again!! On Wed, Dec 9, 2015 at 7:28 PM, Christopher Orr wrote: > Hi there, > > On 09/12/15 23:40, Guy M

Re: Looking for input: Workflow scripting best practices

2015-12-10 Thread Guy Matz
Hi! There was a meetup of NYC CD recently where workflow was presented. The slidedeck is at http://goo.gl/WZh9kZ There is a link in there to a dockerized jenkins for testing, etc., which might be useful . . ? On Thu, Dec 10, 2015 at 9:47 AM, Andrew Bayer wrote: > Hey all! > > I'm about to start

Customizing the Project Page

2015-12-11 Thread Guy Matz
I would like to add some dynamic content to the project page . . . anyone know if that's possible? I have a job that deploys new code to an environment and it's been requested that I get the output of "git log" on the project page so the person pushing out the new code knows what the changes are

Re: which logo do you like best?

2015-12-14 Thread Guy Matz
5 & 6 On Mon, Dec 14, 2015 at 3:24 PM, Christopher Orr wrote: > Something like #2 would be good — #6 is also ok. > > Don't forget to get permission to use the Jenkins trademark! :D > > Regards, > Chris > > > On 14/12/15 20:17, Alyssa Tong wrote: > > Hello, > > > > Planning is underway for Jenkin

email-ext plugin + credentials plugin?

2016-03-24 Thread Guy Matz
Hello! I'm trying to pass some credentials (via the credentials plugin) to a pre-send script within the email-ext plugin . . . however, the credentials are not showing up as environment vars . . . anyone know how if these two plugins can work together? Thanks a lot! Guy -- You received this m

Re: email-ext plugin + credentials plugin?

2016-03-24 Thread Guy Matz
ng. > > On Thu, Mar 24, 2016, 13:40 Guy Matz wrote: > >> Hello! I'm trying to pass some credentials (via the credentials plugin) >> to a pre-send script within the email-ext plugin . . . however, the >> credentials are not showing up as environment vars . . . an

Re: email-ext plugin + credentials plugin?

2016-03-25 Thread Guy Matz
hings available to a > job. If it does it via the environment, then they should be available in > the pre-send script. Can you post your pre-send script and job config? > > On Thu, Mar 24, 2016 at 2:02 PM Guy Matz wrote: > >> Thanks for the reply! Any workarounds you can r

Re: email-ext plugin + credentials plugin?

2016-03-25 Thread Guy Matz
you try using build.buildVariables['JIRA_USERNAME']? Also, there are a > couple of JIRA plugins that might do what you want. > > https://wiki.jenkins-ci.org/display/JENKINS/JIRA+Plugin > > https://wiki.jenkins-ci.org/display/JENKINS/Jira+Issue+Updater+Plugin > > On Fri, Mar 25,

Re: email-ext plugin + credentials plugin?

2016-03-25 Thread Guy Matz
riables End Thanks again!! On Fri, Mar 25, 2016 at 11:44 AM, Slide wrote: > Can you print out what is in build.buildVariables? The other thing to try > would be build.getEnvironment(listener)['JIRA_USERNAME'] > > On Fri, Mar 25, 2016 at 8:39 AM Guy Matz wrote: &g

Re: connecting jenkins to artifactory

2016-03-28 Thread Guy Matz
Is this for a parameterized job? Sorry, could you explain a bit more? I have some experience with this and can probably help . . . On Mon, Mar 28, 2016 at 9:13 AM, Oleg Nenashev wrote: > I've added jenkinsci-users to Cc. > Most likely somebody has a hands-on experience with the latest Artifact

Groovy library

2016-03-30 Thread Guy Matz
Hi! I have some groovy methods that I would like to make generally available to any jenkins job . . . does anyone have any recommendations for creating a library of methods and setting up jenkins to make the methods in it available to jenkins? Should they be static methods? NOT static? Any tho

Re: Groovy library

2016-03-31 Thread Guy Matz
Anyone? Thanks again. On Wed, Mar 30, 2016 at 4:52 PM, Guy Matz wrote: > Hi! I have some groovy methods that I would like to make generally > available to any jenkins job . . . does anyone have any recommendations > for creating a library of methods and setting up jenkins to

Re: Groovy library

2016-04-01 Thread Guy Matz
Is anyone getting this? :-( On Thu, Mar 31, 2016 at 4:06 PM, Guy Matz wrote: > Anyone? Thanks again. > > On Wed, Mar 30, 2016 at 4:52 PM, Guy Matz wrote: > >> Hi! I have some groovy methods that I would like to make generally >> available to any jenkins job . .

Where can I drop a jar for it to be generally available to jenkins?

2016-04-08 Thread Guy Matz
Is there a magic directory I can put a jar for it to available to Jenkins? Or - ugh - Do I need to put it in a plugin? Thanks!! -- 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, s

Re: Where can I drop a jar for it to be generally available to jenkins?

2016-04-08 Thread Guy Matz
irectory on the Jenkins server serves content over http > if that would help. > > On Fri, Apr 8, 2016 at 7:53 AM Guy Matz wrote: > >> Is there a magic directory I can put a jar for it to available to >> Jenkins? Or - ugh - Do I need to put it in a plugin? >> >>

Groovy groovy-starter.conf

2016-04-11 Thread Guy Matz
Hello! Anyone know if Jenkins honors Groovy's groovy-starter.conf? And where it needs to be to get noticed? -- 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 je

Grab'ing libraries in jenkins script console

2016-04-22 Thread Guy Matz
Anyone know how to get this - or an equivalent - to work in jenkins script console? @Grab(group='org.codehaus.groovy.modules.http-builder', module='http-builder', version='0.7.2') import groovyx.net.http.* Thanks! -- You received this message because you are subscribed to the Google Groups "Je

Jenkins crashes when I try to add scriptler as a post-build action

2016-05-10 Thread Guy Matz
Hi! I'm getting a Stack trace when trying to a a scriptler script as a post-build action. The section of stacktrace below - from the link above - looks important, but my untrained eye may be missing something: Caused by: java.lang.IllegalArgum

Re: Jenkins crashes when I try to add scriptler as a post-build action

2016-05-11 Thread Guy Matz
ction. You > must have done it via "Use Publisher from another project". > > > On Tuesday, May 10, 2016 at 8:33:33 AM UTC-7, Guy Matz wrote: >> >> Hi! I'm getting a Stack trace >> <https://bitbucket.org/snippets/guymatz-jcrew/x6Xpo> when tryi

Using StaplerRequest to configure a plugin?

2018-03-06 Thread Guy Matz
Hi! Does anyone know how to automate the configuration of a plugin using a StaplerRequest object? I'm trying to configure scm-sync-configuration with: import net.sf.json.JSONObject import org.kohsuke.stapler.StaplerRequest import hudson.plugins.scm_sync_configuration.ScmSyncConfigurationPlugin

how to return a failure from scriptler ?

2017-07-13 Thread Guy Matz
Hello! I'm trying to have a build fail when something goes wrong in scriptler, but I can't get this to work. I'm trying something like this: doSomething() || return false This fails in scripler with: Execution of script [promoteBuild.groovy] failed - org.codehaus.groovy.control.MultipleCompilati

Re: how to return a failure from scriptler ?

2017-07-16 Thread Guy Matz
So I think a false return from scriptler is supposed to fail the build. anyone know why this syntax does not work in scriptler Better yet, does anyone know what doe work? Thanks! On Thu, Jul 13, 2017 at 10:06 AM, Guy Matz wrote: > Hello! > I'm trying to have a build fail when som

scriptler - dependencies with grab/grape?

2016-09-28 Thread Guy Matz
Hello! Does anyone know if it's possible to grab dependencies within a scriptler script? Any advice out there? Thanks!! -- 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

moving hotfixes along a parallel SDLC

2016-10-17 Thread Guy Matz
Hello! I need to be able to bump version numbers between two different jobs, meaning that if job A runs, it should have a build number higher that job B, and if job B runs, it should have a build # higher than job A . . . for example, job A may run 10 ten times and have a build number of 10. Then

Re: moving hotfixes along a parallel SDLC

2016-10-17 Thread Guy Matz
Number+Plugin > https://wiki.jenkins-ci.org/display/JENKINS/semantic-versioning-plugin > https://wiki.jenkins-ci.org/display/JENKINS/Next+Build+Number+Plugin > > Björn > > > Am Montag, 17. Oktober 2016 15:44:25 UTC+2 schrieb Guy Matz: >> >> Hello! I need to be abl

writing a jenkins plugin using gradle: gradlew server --continuous

2017-01-20 Thread Guy Matz
Hello! I'm writing a jenkins plugin using the gradle JPI plugin and it's mostly great. My one problem is that changes to code do not cause the test jenkins server to restart when gradle is run in continuous mode, i.e.: ./gradlew server --continuous

Re: Running a local Jenkins plugin repository?

2017-02-24 Thread Guy Matz
This look promising: https://wiki.jenkins-ci.org/display/JENKINS/UpdateSites+Manager+plugin On Tue, Dec 20, 2016 at 10:32 AM, Daniel Beck wrote: > > > On 20.12.2016, at 15:18, Andrew Ducker wrote: > > > > … security people aren't willing to open up arbitrary locations … > > > > … an internal Je