Re: Does 'scm checkout' always give the same result with parallel builds in JenkinsFiles ?

2016-09-21 Thread sleipnir
Thanks for the quick reply. Any info about the recommended way to get the sha that was actually used ? -- 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: Does 'scm checkout' always give the same result with parallel builds in JenkinsFiles ?

2016-09-21 Thread Mark Waite
The intent of the checkout scm step is that it takes a single revision, and uses that revision for the duration of the job. Unfortunately, a bug was found during discussions after Jenkins World which seem to indicate that there area cases where git plugin 2.5.3 and beyond risks not checking out

Does 'scm checkout' always give the same result with parallel builds in JenkinsFiles ?

2016-09-21 Thread sleipnir
Hi I was playing with JenkinsFiles and Organization folders (multi-branch pipeline) and I was wondering: Is there is any guarantee the 'checkout scm' command would checkout the exact same revision on all node, even if new commits are pushed before the build is finished ? Also, I saw an

Re: Can't download plugins - HTTP 302 redirect

2016-09-21 Thread Daniel Beck
Turns out this was https://issues.jenkins-ci.org/browse/JENKINS-38340 and we removed the mirror from the list, as its admins don't want to serve files via HTTP. > On 19.09.2016, at 20:56, Baptiste Mathus wrote: > > I think it's

Re: Will workspace cleanup affect Changes tracking?

2016-09-21 Thread Daniel Beck
> On 19.09.2016, at 19:59, Sam K wrote: > > Will having a 'deleteDir()' in the jobs affect the Jenkins changes tracking? > Does Jenkins use the workspace for tracking the changes? Yes and no. A checkout may be necessary to record the checked out revisions/commits,

How to integrate Github with Jenkin in version 2.7 (for webhook to trigger builds whenever there is code checkin)?

2016-09-21 Thread Sean Bigdatafun
I found this link is quite informative https://www.cloudbees.com/blog/better-integration-between-jenkins-and-github-github-jenkins-plugin to elaborate the details. However, it seems that it does not reflect the administrative UI for Jenkin 2.7. I have my github plugin installed.

Re: terminate pipeline parallal on first failure

2016-09-21 Thread Michael Neale
If it isn't, please do raise a ticket as it is an important feature of parallel for people to know about. On Thursday, September 22, 2016 at 6:50:02 AM UTC+10, Baptiste Mathus wrote: > > o/ Didn't check, but this should be in the "Snippet Generator". > > > > 2016-09-21 22:38 GMT+02:00 Åsmund

Re: locks vs stage w/concurrency

2016-09-21 Thread David Karlsen
Thanks - last I checked it was not finished - now it is! :) 2016-09-21 23:37 GMT+02:00 Michael Kobit : > I believe the stage step with concurrency has been deprecated so I would > avoid using that. > > It sounds like you are looking for https://issues.jenkins-ci.org/ >

RE: Jenkins in container is offline

2016-09-21 Thread Alex Sun
Update: I provisioned a VM on cloud and now the container is connected to Internet. The below ones that cannot connect to Internet are hosted in VMs provisioned on hyper-v of local machines. From: Alex Sun [mailto:suen...@gmail.com] Sent: Wednesday, September 21, 2016 3:43 PM To:

Re: Jenkins in container is offline

2016-09-21 Thread Baptiste Mathus
@Nicolas please see the other corresponding thread to keep things together. And let's leave that one die. Le 21 sept. 2016 11:25 PM, "nicolas de loof" a écrit : > Try running this : > > *docker run --rm -it jenkins bash* > > jenkins@b2b041c448b1:/$ *ping google.com

RE: Jenkins hosted in container is offline

2016-09-21 Thread Alex Sun
Both host and docker are latest version. From: bmat...@gmail.com [mailto:bmat...@gmail.com] On Behalf Of Baptiste Mathus Sent: Wednesday, September 21, 2016 1:36 PM To: Hung Suen ; jenkinsci-users@googlegroups.com Subject: Re: Jenkins hosted in container is offline

Re: Compiling Jenkins from source

2016-09-21 Thread Daniel Beck
> On 21.09.2016, at 21:38, Radcliff, Allen wrote: > > I run a "git branch -r", but do not see a branch for version 1.658. Please > advise. 1.568 has never been publicly announced and only exists due to some process testing. What do you need that for? -- You received

locks vs stage w/concurrency

2016-09-21 Thread Michael Kobit
I believe the stage step with concurrency has been deprecated so I would avoid using that. It sounds like you are looking for https://issues.jenkins-ci.org/plugins/servlet/mobile#issue/JENKINS-27039 (milestone step). -- You received this message because you are subscribed to the Google

Re: Jenkins in container is offline

2016-09-21 Thread nicolas de loof
Try running this : *docker run --rm -it jenkins bash* jenkins@b2b041c448b1:/$ *ping google.com * PING google.com (172.217.19.142): 56 data bytes 64 bytes from 172.217.19.142: icmp_seq=0 ttl=37 time=0.147 ms 64 bytes from 172.217.19.142: icmp_seq=1 ttl=37 time=0.338 ms

Re: terminate pipeline parallal on first failure

2016-09-21 Thread Baptiste Mathus
o/ Didn't check, but this should be in the "Snippet Generator". 2016-09-21 22:38 GMT+02:00 Åsmund Østvold : > Thank you Cuong and Michael, > > IIRC my Jenkins install do not give me the choice for "failFast: true" > that I was searching for. Will check tomorrow. But if

Re: terminate pipeline parallal on first failure

2016-09-21 Thread Åsmund Østvold
Thank you Cuong and Michael, IIRC my Jenkins install do not give me the choice for "failFast: true" that I was searching for. Will check tomorrow. But if somebody has a link to the "full" syntax I would love to have it. Asmund On Sep 21, 2016 08:34, "Michael Neale" wrote:

Re: Jenkins hosted in container is offline

2016-09-21 Thread Baptiste Mathus
(Switching to users ML) That rings an distant old bell to me. Having no network in the container. I think I had that in the past. Something about resolv.conf being handled with the local DNS manager on Ubuntu or something, had to force or override the DNS to let containers have network access.

Jenkins in container is offline

2016-09-21 Thread Hung Suen
I posted the topic to Jenkins developers. Should have posted it here. https://groups.google.com/d/topic/jenkinsci-dev/LCPjMbKCmGM/discussion -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving

Re: Compiling Jenkins from source

2016-09-21 Thread Radcliff, Allen
Fantasticthank you every much!! Allen On Wed, Sep 21, 2016 at 3:44 PM, Baptiste Mathus wrote: > Hello, > > This is because this is a tag. "jenkins-1.658". > > Cheers > > 2016-09-21 21:38 GMT+02:00 Radcliff, Allen : > >> Greetings! >> >> I have

Re: snipped generator for xunit google test

2016-09-21 Thread Klaus Rudolph
Am 12.09.2016 um 22:36 schrieb Liam Newman: First make sure you have the latest version of the xUnit plugin installed. Then, try looking under "step: General Build Step" and under "Build Step" see "Process xUnit test result report". Success :-) Thanks! Klaus -- You received this message

Re: Compiling Jenkins from source

2016-09-21 Thread Baptiste Mathus
Hello, This is because this is a tag. "jenkins-1.658". Cheers 2016-09-21 21:38 GMT+02:00 Radcliff, Allen : > Greetings! > > I have Jenkins 1.658 installed on a CentOS 6.6 server. We are undergoing > an accreditation process which requires me to compile external software

Compiling Jenkins from source

2016-09-21 Thread Radcliff, Allen
Greetings! I have Jenkins 1.658 installed on a CentOS 6.6 server. We are undergoing an accreditation process which requires me to compile external software from source. After cloning the source repo: *git clone https://github.com/jenkinsci/jenkins.git

locks vs stage w/concurrency

2016-09-21 Thread David Karlsen
I have a question on locks vs stage w/ concurrency: lock(inversePrecedence: true, resource: 'myLock') { // some block } vs stage(name:'myStage',concurrency:1) { // some block } With stages newer builds would "win" over older ones while waiting to run so that unnecessary was avoided,

Build Machine Migration Issues

2016-09-21 Thread Eric Fetzer
I moved to a new build machine and migrated the Jenkins repository. Everything looks ok, but won't build. First issues I'm seeing seem to have to do with java and antcontrib. Anyone know how I resolve the following errors? Unable to locate tools.jar. Expected to find it in

Re: Jenkins EMail Reporting

2016-09-21 Thread jerome
I known my answer will not be received well by most, but that was the fastest way I could find, I did a Python script with XunitParser module made that a breeze (I can even test it better or use other tools to run them). https://pypi.python.org/pypi/xunitparser Just write to a temporary file

Re: Server ssh errors on pipeline jobs

2016-09-21 Thread gary . hooper
so my problem has been solved. the issue ended up being a malformed PATH setting in the Mac node configuration. however, due to a bug in Jenkins, that setting was never active, thus the builds were working fine, until a Jenkins restart for an unrelated issue caused this malformed PATH

Re: The new Global Pipeline Library

2016-09-21 Thread Michael Lasevich
I am making an assumption that "Modern SCM" is some new Jenkins SCM API not yet supported by most common SCMs - so I am just ignoring it and using Legacv SCM As for ${library.name.version} - you use it if you specify branch/tag in GIT or in URL for SVN Basically when you load the library with

Help with Config File Provider Plugin in Pipeline

2016-09-21 Thread Taylor Patton
Hi, I’m trying to use the Config File Provider Plugin in my Pipeline build but its not working. Following the very basic example from the wiki page: configFileProvider( [configFile(fileId: ‘my-custom-file-id', variable: 'MAVEN_SETTINGS')]) { sh 'mvn -s $MAVEN_SETTINGS clean

Re: Loading properties from a file in Jenkins 2.0 pipeline

2016-09-21 Thread Phillip Campbell
Here's a snippet from a Jenkinsfile in a pre-2.0 pipeline job that I use to read an existing build.properties file in the workspace so that the Jenkinsfile can use the properties. I haven't tried this in 2.0 pipeline yet. if (!fileExists('build.properties')){echo 'No build

Jenkins EMail Reporting

2016-09-21 Thread Bubunia Patra
Hi all, I am looking for some way to email the test results from the Jenkins to the recipients in a nice format After my test executes the console logs are generated in jenkins. I have installed the extended E-mail Plugin for email and configured the smtp server. The test also generates the

Re: Loading properties from a file in Jenkins 2.0 pipeline

2016-09-21 Thread Pete Singleton
Hi, I'm having exactly the same issue (having only started with Jenkins 2.0 in the last couple of days). I've tried the Pipeline Utility, tried the EnvInject plugin, also tried opening the file using Groovy file operations, no success! Did you manage to solve this?? On Thursday, 8 September

Re: The new Global Pipeline Library

2016-09-21 Thread Tim Downey
Hellojust giving this thread a bump as I'm having the same questions. What exactly is supposed to be the configuration for Modern SCM? I have been able to get it to work using the Legacy SCM to point at my git repo. On Monday, September 12, 2016 at 3:48:02 AM UTC-4, Sverre Moe wrote: > >

"Restrict where this project can be run" option not found on Multi branch pipeline jobs; Same option is found in freestyle jobs in jenkins 2.7.4

2016-09-21 Thread Grit90
Hey Guys, I've recently upgraded our primary jenkins, from 1.642.2 to 2.7.4 and facing the above issue. I've read into some forums online where they are asking me to install nodelabel plugin; I believe that may not be it as it is available for "free style" jobs. Is there a way for me to get

Re: Avoid simultaneous job modifications in Jenkins

2016-09-21 Thread Stephen Connolly
Not currently... it would be great if core provided a mechanism to assist... even an alert that somebody else is in the config screen and making changes... or better yet that somebody has saved changes... But not currently available in core. On 21 September 2016 at 12:20, Angel Yanev

package jenkins.war including custom plugins from github

2016-09-21 Thread Siva Kumar Reddy G
I am trying to package Jenkins with customization. Customization here means including few plugins as part of Jenkins.war. I am able to add Jenkins provided plugins successfully. The build is successful and war file created. Added Jenkins.war to web apps folder of tomcat. Started Tomcat and

RE: Standalone mirrored update site without signature checking

2016-09-21 Thread Jason Pyeron
> -Original Message- > From: Bilsby David C > Sent: Wednesday, September 21, 2016 05:17 > > OK I think I have fixed this myself. To disable signature > checking on the update file you need to set the > hudson.model.DownloadService.signatureCheck variable to > false. I did this through

Avoid simultaneous job modifications in Jenkins

2016-09-21 Thread Angel Yanev
I am using the Jenkins Job DSL Plugin to create template jobs. There is a problem when two or more users are modifying the same template job (or any other job) simultaneously. The configuration of the last user to save or apply the modifications are registered and the modifications of the

How do you use the DTKit plugin?

2016-09-21 Thread Bilsby David C
I'm trying to find a way to publish code metrics generated by Parasoft C++test. The Parasoft Jenkins plugin does not seem to publish the metrics, only static analysis and unit tests. I stumbled across the DTKit plugin which seemed mentioned Parasoft in its change log, and the description

RE: Standalone mirrored update site without signature checking

2016-09-21 Thread Bilsby David C
OK I think I have fixed this myself. To disable signature checking on the update file you need to set the hudson.model.DownloadService.signatureCheck variable to false. I did this through a groovy script added to the %JENKINS_HOME%\init.groovy.d directory. The script I used contained the

Re: Jenkins on Websphere 8.5 - out of memory (heap)

2016-09-21 Thread Tomáš Mrázek
300kb is not much, but if you look at the implementation of the called method https://github.com/kohsuke/winp/blob/master/src/main/java/org/jvnet/winp/WinProcess.java ,I got heap exception at line 144. The method creates substrings in loop string lenght > 0. So theoretically after each

Re: Maintaining a unique Build Number across multiple build servers

2016-09-21 Thread Michael Neale
Not sure if it may help solve a similar aim - but https://wiki.jenkins-ci.org/display/JENKINS/Version+Number+Plugin exists (might be others) On Wednesday, September 21, 2016 at 1:47:03 PM UTC+10, Cuong Tran wrote: > > It doesn't exist. > > On Monday, September 19, 2016 at 12:54:15 PM UTC-7,

Re: terminate pipeline parallal on first failure

2016-09-21 Thread Michael Neale
There is also: https://jenkins.io/doc/pipeline/ but generally for the steps - if you open a job to edit, you should see either near the pipeline text area or on the left a "Pipeline Syntax" link you can open in a new tab. It gives you a choice of steps that will build the syntax out for you as