Re: Restartable Pipeline stages

2016-06-14 Thread Rikesh Dhokia
I too am looking for functionality like this. @Mark, did you create a relevant JIRA issue for this? On Tuesday, 3 May 2016 03:23:07 UTC+10, Mark Bidewell wrote: > > Is there a way to implement a restartable stage that could be manually > restarted? Often in Pipeline examples I see something l

Jenkins shows no changes between a failed build (with changes) and the successful build that follows

2016-06-14 Thread John O'Brien
I had a user of our Jenkins system pose the following problem to me: -- 1. A new build is started with changes. 2. Note the changes are documented in the build description on Jenkins. 3. Build fails in this scenario 4. Start a new build Result: New build shows no changes. Technically it

Re: Integrate with external credential stores

2016-06-14 Thread Patrick van der Velde
Anybody have any idea or should I ask on the developer group? On Tuesday, 19 April 2016 07:59:46 UTC+12, Patrick van der Velde wrote: > > Does anybody know if it is possible for the credentials plugin (or any > other plugin) to integrate with external credential stores like Hashicorp > Vault (ht

URL to the permalink of "Last saved build (marked "keep forever") - is there a url?

2016-06-14 Thread Greg Smith
Hi, I use the Copy Artifacts plugin and the Promotion Plugin to mark builds that have moved to production level -- I promote them, and them they get marked "keep forever". Is there a URL I can use to access this same build? IE, I can use the url like this to access the last build artifacts:

Re: Nexus Artifact Uploader, us custom artifact version number

2016-06-14 Thread Apollo Clark
It looks likt the Nexus Artifact Uploaded doesn't natively support this, unlike the Artifactory Plugin... the best solution seems to be using the "buildnumber-maven-plugin" http://www.mojohaus.org/buildnumber-maven-plugin/usage.html Any other solutions? On Monday, June 13, 2016 at 5:00:57 PM UT

Re: Need help on usage of Jenkins console data

2016-06-14 Thread Maciej Jaros
Another method (without using Groovy) is to simply get path and do whatever you need with it. buildLogPath="../builds/$BUILD_NUMBER/log" Might be a good idea to copy the file if you are going to change it or you need to make sure it's not change during other operations. buildLogPath="../bui

RE: tidying up Ext-email output

2016-06-14 Thread Ginga, Dick
Thanks muchly From: jenkinsci-users@googlegroups.com [mailto:jenkinsci-users@googlegroups.com] On Behalf Of Slide Sent: Tuesday, June 14, 2016 11:42 AM To: jenkinsci-users@googlegroups.com Subject: Re: tidying up Ext-email output Ok, I think you actually want your regex to be this: (?i)(?:.*)(FA

Re: tidying up Ext-email output

2016-06-14 Thread Slide
Ok, I think you actually want your regex to be this: (?i)(?:.*)(FAIL:.*) The substText option replaces the content of only the matching portion of the string, so in your case, you are replacing the exact same text in the same spot. The regex above will match the entire line and only give back the

RE: tidying up Ext-email output

2016-06-14 Thread Ginga, Dick
Hey Slide, if you would like to pursue this for academic reasons, feel free, but, we have just changed our tests to produce Junit formatted XML output and now my email looks like this. so I can now get rid of my attempt at capturing console test results. Thanks a LOT for your help. I mean it.

Re: tidying up Ext-email output

2016-06-14 Thread Slide
FYI, the test you did with shows that $1 is NOT evaluating to ALL three lines at once, since the is in between each one. On Tue, Jun 14, 2016 at 8:13 AM Slide wrote: > I will try and test this out locally and see what I come up with. > > On Tue, Jun 14, 2016 at 4:42 AM Ginga, Dick > wrote: >

RE: tidying up Ext-email output

2016-06-14 Thread Ginga, Dick
Yes, I did notice that ☺ From: jenkinsci-users@googlegroups.com [mailto:jenkinsci-users@googlegroups.com] On Behalf Of Slide Sent: Tuesday, June 14, 2016 11:29 AM To: jenkinsci-users@googlegroups.com Subject: Re: tidying up Ext-email output FYI, the test you did with shows that $1 is NOT evalua

Tracking warnings and build times across incremental builds

2016-06-14 Thread Simon Richter
Hi, we have a C/C++ codebase (using CMake to generate either Makefiles or Visual Studio projects) that is a bit too large to try to build from scratch every time, so I'd like to switch to incremental builds. Unfortunately, this means that any warnings from files that are not rebuilt will be marked

JobDSL class conflict - where is the error?

2016-06-14 Thread Jennifer Hofmeister
Hello everyone, I've been setting up a new Jenkins 2.8 with JobDSL 1.47. I looked up and adhered to all change notes, and when it comes to a "conditional Steps" build step, I'm encountering the following error: fileExists(projectName+'/target/windows/test/tests.exe', BaseDir.WORKSPACE) -->

Re: Getting started with Pipeline

2016-06-14 Thread Jerry Steele
Brilliant! That worked. I'm onto the next error now, but the pipeline script appears to be doing what I want it to :) For reference, the finished JEnkinsfile looks like this: def git_url = "g...@github.com:myorg/my_project.git"" def git_branch node { stage "Check out from git" checkout scm

Re: tidying up Ext-email output

2016-06-14 Thread Slide
I will try and test this out locally and see what I come up with. On Tue, Jun 14, 2016 at 4:42 AM Ginga, Dick wrote: > Well Slide, that was just my most recent attempt at getting the output I > desire. I am still getting this as email output (fragment): > > > > > > *CHANGES* > > No Changes > > >

Re: Getting started with Pipeline

2016-06-14 Thread Slide
In groovy, variable substitution is only done in double quoted strings, not single quoted strings. Try replacing the single quotes with double quotes. On Tue, Jun 14, 2016, 07:52 Jerry Steele wrote: > Hello again. So, my Jenkinsfile now looks like this, and I'm having some > success: > > def git

Re: Getting started with Pipeline

2016-06-14 Thread Jerry Steele
Hello again. So, my Jenkinsfile now looks like this, and I'm having some success: def git_url = "g...@github.com:myorg/my_project.git" def git_branch node { stage "Check out from git" checkout scm stage "Make sure our git branch var is accessible" sh 'git rev-parse --abbrev-ref HEAD

RE: Need help on usage of Jenkins console data

2016-06-14 Thread Ginga, Dick
Ajith, I’m sure you can use a Post-build “Groovy Post-Build” to read the log (build.getLog maybe) and the write it to a file in the workspace. There might be a easier way and this code has not been “tested”. Try something like this: Log = build.getLog(); // is we are running on a remote slave,

RE: tidying up Ext-email output

2016-06-14 Thread Ginga, Dick
Well Slide, that was just my most recent attempt at getting the output I desire. I am still getting this as email output (fragment): CHANGES No Changes *** FAIL: LTU_FUNC_TEST.LIBCFSEARCH_HITCOUNTTEST *** FAIL: LTU_FUNC_TEST.LIBCFSEARCH_ATOMCENTER *** FAIL: LTU_FUNC_TEST.LIBCFSEARCH_STRI

Re: Code completion in IDE (intellij or eclipse) for Jenkins when editing groovy scripts

2016-06-14 Thread cchapman
Thanks Baptiste :) I did find that blog after I posted. I followed the directions but I still don't get autocompletion for something like Jenkins.instance.getJob though... Any idea what I might be missing? Thanks again, Clint On Sunday, June 12, 2016 at 8:56:15 AM UTC-4, Baptiste Mathus wrot

TFS Plugin - Build Error

2016-06-14 Thread AboveBeyond
Hi, i connected Jenkins to our TFS server , while trying to create a new build im getting the following error: FATAL: java.lang.RuntimeException: com.microsoft.tfs.core.clients.versioncontrol.exceptions.VersionControlException: com.microsoft.tfs.core.exceptions.TECoreException: TF400898: An In

Re: [Jenkins-infra] Scheduled infrastructure maintenance window June 14 00:00 UTC

2016-06-14 Thread 'Björn Pedersen' via Jenkins Users
Hi, seems like the links from changelog pages are broken now ( https://issues.jenkins-ci.org/browse/WEBSITE-187) Björn Am Dienstag, 14. Juni 2016 02:12:54 UTC+2 schrieb R Tyler Croy: > > (replies inline) > > On Mon, 13 Jun 2016, R. Tyler Croy wrote: > > > Reminder, this will be happening in a

Re: Pipeline: Transfer files via SSH

2016-06-14 Thread Zoratto Thomas
Have a look at http://stackoverflow.com/questions/23392763/aws-ssh-connection-error-permission-denied-publickey > Le 14 juin 2016 à 10:29, Sverre Moe a écrit : > > Got the following debug output. > > Wonder if it could have something to do with: > key_parse_private2: missing begin marker > How

Need help on usage of Jenkins console data

2016-06-14 Thread AJITH K.R
Hi All, How can I get the console output information of Jenkins build under the workspace. I need to use it as an input for reporting purpose. Thanks, Ajith -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and

Re: Pipeline: Transfer files via SSH

2016-06-14 Thread Sverre Moe
Got the following debug output. Wonder if it could have something to do with: key_parse_private2: missing begin marker However, the private key file has header "-BEGIN RSA PRIVATE KEY-" and footer "-END RSA PRIVATE KEY-" debug2: key: private.key ((nil)), explicit debug1: Authenti

QUESTION: launch Jenkins builds/slave connections with 'nice'

2016-06-14 Thread Victor Martinez
Hi there, I've been googling a bit and I couldn't find much information about a way to launch all builds on all Jenkins slaves (well, at least for Linux and Mac slaves) with "nice", only a reference from 2008: https://issues.jenkins-ci.org/browse/JENKINS-2742 That would set the priority of

Re: Pipeline: Transfer files via SSH

2016-06-14 Thread Zoratto Thomas
Ok, then try to ssh manually with full verbose mode (-vvv) > Le 14 juin 2016 à 08:54, Sverre Moe a écrit : > > The private key is actually not password protected. I chose empty password > when I generated the private key on the server. > > tirsdag 14. juni 2016 08.41.17 UTC+2 skrev Thomas Zora

PermGen errors on master and slave

2016-06-14 Thread Mike Emett
We recently updated our Jenkins master from 1.536 to 2.5 and we are now experiencing an intermittent recurring issue with PermGen errors that we did not have prior to the update. Occasionally one of our slaves (though not necessarily the same slave each time) will get the following error immed