From bitbucket recent update need to deploy in linux testing server

2016-10-18 Thread Ruma Chakraborty
Hi,


how to do recent git update automatically deploy in linux testing server



Regards
Ruma

-- 
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...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/ae9e4903-15ce-4375-a386-69b1ac979c8d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


DON'T upgrade to Credentials plugin 2.1.7

2016-10-18 Thread Cody Konior
It killed my Jenkins instance. I had to revert (by removing the .jpi from 
the plugins directory and renaming the .bak to .jpi).

-- 
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...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/e2e72be1-0201-48e9-a9af-c7fc1423a122%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ANN]: Ask the Experts Booth at Jenkins World

2016-10-18 Thread Alyssa Tong
Hello,

Thank you to everyone who came out to Jenkins World and visited the Open
Source Hub. I was really happy to see so much interactions and technical
questions being addressed. Hopefully visitors found it helpful.

For anyone interested, the Jenkins World presentations and videos are now
available HERE .

BR,
alyssa

On Thu, Aug 25, 2016 at 9:05 AM, Alyssa Tong  wrote:

> Hello,
>
>
> The event team is organizing the Open Source Hub at Jenkins World 2016
> . So far I have secured the
> following people to be in the booth to interact with the attendees. I'm
> really proud of this list that includes many significant contributors, JAM
> leads, board members. This has always been a popular part of the show, so I
> expect it to be quite busy this year, too.
>
> If you are coming to the event, please stop by, say hello, ask questions,
> pickup stickers, take pictures, etc.
>
>
>-
>
>Omehegan  ( i
>r c: au
>to ja
>ck )
>-
>
>MarkEWaite  (
>gi t
>pl ug
>in )
>-
>
>P4paul  ( pe
>rf or
>ce  p
>lu gi
>n) 
>-
>
>R Tyler Croy  ( i
>n fr a
>te am
>, bo
>ar d
>me mb
>er ,
>pu pp
>et  J
>en ki
>ns  m
>od ul
>e) 
>-
>
>Dty  ( bo
>ar d
>me mb
>er )
>-
>
>Orrc  ( An
>dr oi
>d)
>-
>
>Vega  (LA JAM leader)
>-
>
>Jh86  (LA JAM leader)
>-
>
>Eddumelendez  (Peru JAM leader)
>-
>
>Jglick  ( co
>re ,
>pi pe
>li ne
>)
>-
>
>oleg-nenashev  (
>co 
>re ,
>re 
>mo ti
>ng 
>)
>-
>
>And many more
>
>
> If you are an active member of the Jenkins community and/or a contributor,
> please consider being a part of this. This is a great opportunity to talk
> to users and bond with other contributors.
>
> Looking forward to meeting you at the conference.
>
>
> BR,
>
> Alyssa
>
>

-- 
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...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAC9wNaw4Sb4o7iEdNuupdmFKA%2BJ7cfAC0JUcCJvfn5nZeBmsgQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Trigger new build only for the latest git tag

2016-10-18 Thread constellate9
bump. i am running into a similar issue. any resolution?

On Sunday, September 4, 2016 at 9:26:10 AM UTC-7, Alex Domoradov wrote:
>
> Hello,
>
> I have a really simple task - I need to configure jenkins job to build a 
> code only when a new tags with specific names (for e.g. qa_1234567) are 
> pushed to the git (github). I can't use webhooks because I don't have 
> sufficient permissions to repository. So I have to use SCM polling model. I 
> have configured freestyle job and specify the following info
>
> Refspec
> +refs/tags/*:refs/remotes/origin/tags/*
>
> Branch Specifier (blank for 'any')
> :.*/qa_[0-9]{6,10}$
>
> All works fine except one thing. If I create a new tag and point it to any 
> commit except head - it doesn't work. The job is not triggered. For e.g.
>
> # git rev-parse HEAD
> 75c42ce06cbbff83e1640e4b7b28543ca6793167
>
> # git tag qa_$(date '+%s') 863c7607 && git push -u origin --tags
> Total 0 (delta 0), reused 0 (delta 0)
> To ssh://g...@193.243.xxx.xxx:/test/p1.git
>  * [new tag] qa_1472930540 -> qa_1472930540
>
>
> I can see the new tag in SCP Polling log
>
> Seen branch in repository origin/tags/qa_1472930009
> Seen branch in repository origin/tags/qa_1472930540
> Seen 41 remote branches
> Done. Took 0.37 sec
> No changes
>
> With head revision all works fine
>
> $ UT=$(date '+%s'); echo ${UT} > 1 && git add . && git commit -m "${UT}" 
> && git push -u origin api
> [api 8f80708] 1472931220
>  1 file changed, 1 insertion(+), 1 deletion(-)
> Counting objects: 3, done.
> Delta compression using up to 4 threads.
> Compressing objects: 100% (2/2), done.
> Writing objects: 100% (3/3), 268 bytes | 0 bytes/s, done.
> Total 3 (delta 1), reused 0 (delta 0)
> To ssh://g...@193.243.xxx.xxx:/test/p1.git
>75c42ce..8f80708  api -> api
> Branch api set up to track remote branch api from origin.
>
> $ git tag qa_$(date '+%s') 8f80708  && git push -u origin --tags
> Total 0 (delta 0), reused 0 (delta 0)
> To ssh://g...@193.243.xxx.xxx:/test/p1.git
>  * [new tag] qa_1472931234 -> qa_1472931234
>
> Seen branch in repository origin/tags/qa_1472930009
> Seen branch in repository origin/tags/qa_1472930540
> Seen branch in repository origin/tags/qa_1472931137
> Seen branch in repository origin/tags/qa_1472931234
> Seen 43 remote branches
>  > git log --full-history --no-abbrev --format=raw -M -m 
> 75c42ce06cbbff83e1640e4b7b28543ca6793167..8f807082e7c7dc3c33ea46dc6146b2bc5d3be3a8
>  
> # timeout=10
> Done. Took 0.68 sec
> Changes found
>
> P.S.
> I have read a lot of articles about the subject 
>
> http://erics-notes.blogspot.com/2013/05/jenkins-build-latest-git-tag.html
> http://www.cyber-tec.org/2015/09/20/build-last-git-tag-with-jenkins/
>
> but can't find any suitable solution
>
> Thanks in advance
>

-- 
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...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/815796ef-b941-49d6-b33a-56acb662df46%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Polling both svn and git from pipeline

2016-10-18 Thread Rachel
Hi,

Sorry, it's possible with Pipeline:

*Polling is supported across multiple SCMs (changes in one or more will 
trigger a new build), and again is done according to the SCMs used in the 
last build of the pipeline.*

You'll have to run it once manually for listening to SCM changes.

More information: 
https://github.com/jenkinsci/workflow-scm-step-plugin/blob/master/README.md

Best regards,
Rachel

El jueves, 13 de octubre de 2016, 22:56:16 (UTC+2), Rachel escribió:
>
> Hi,
>
> In your case, I would have two separated Jenkins jobs, but sharing the 
> same workspace:
>
>- Advanced Project Options > Use custom workspace 
>
> I hope be useful.
>
> Best regards,
> Rachel
>
> El miércoles, 12 de octubre de 2016, 2:47:08 (UTC+2), taroc...@gmail.com 
> escribió:
>>
>> Is it possible to poll for changes from both svn and git repositories 
>> from within a pipeline job? In Jenkins, pipeline scm configuration is tied 
>> to a particular scm type (due to a radio button), but I would like to poll 
>> both svn and git at the same time. As a result of the poll detecting an scm 
>> change, I want to invoke only one build.
>>
>> As a workaround, maybe I need to have two separate Jenkins jobs? 
>>
>

-- 
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...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/dc19dbd4-96d2-44b6-8675-481ae286c0dc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Log Parser Plugin Parser Rules Questions

2016-10-18 Thread Rachel
Hi Bubunia,

Parsing rules file could have this content:

info /Finished all tests.*/
error /Test case .* failed/

And you could send *Parsed Console Output* with *Editable Email 
Notification*:

   - Content Type: HTML
   - Default Content:




${FILE, path="$WORKSPACE/../builds/$BUILD_NUMBER/log_ref.html"}


${FILE, path="$WORKSPACE/../builds/$BUILD_NUMBER/log_content.html"}




I hope be useful.

Best regards,
Rachel



El martes, 18 de octubre de 2016, 7:22:39 (UTC+2), Bubunia Patra escribió:
>
> Hi ,
>
> I want to use Log Parser Plugin with the following regular expression to 
> be matched in the Jenkins console log.
>
>
> Test case [id] failed
> Test case [id] failed
> Test case [id] failed
>
>
> Finished all tests. Executed [id], pass [id], fail [id]
>
> One more thing is I want to get the contents of Error/Info etc in to a 
> table and send across via email? Can I access through groovy script?
>
>  Can anyone help me in this regard?
>
> Regards
> Pradeep
>

-- 
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...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/cedbf440-ebdc-409e-b39e-9717a9b7f4fa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins 2.24: Question about scm code change condition during build execution

2016-10-18 Thread Teichner Peter
Hi Rachel,

Thanks for your answer. No that's not it. I'm running a pipeline but it could 
be manual execution as well and basically I want the ability the say my shell 
script is conditional and should only run if there was a change in the source. 
Regardless of how the build was triggered.

Thanks,
Peter

Get Outlook for Android



On Tue, Oct 18, 2016 at 8:28 PM +0100, "Rachel" 
> wrote:

Hi Teichner,

I don't know if I've understood you correctly, but I usually configure my jobs 
with:

  *   Build Triggers > Poll SCM

With this option you specify when you want to check your SCM (e.g. hourly, 
every 2 hours, ...) and a new build is executed only if changes are detected 
from the last build. Is that you're looking for?

Best regards,
Rachel

El martes, 18 de octubre de 2016, 11:22:35 (UTC+2), Teichner Peter escribió:
I’m trying to find the right solution for using a conditional multiple build 
step depending if there was a code change. I have seen a solution by checking 
ROOT_BUILD_CAUSE but that might be unreliable as the execution could be 
manually triggered but there could still be code change. I need this so I wont 
build the software unless there was an actual change in the code change. Thanks 
in advance.

-- 
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...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/631E36F203287D68.4e80c18c-c88a-4951-8451-671343570ed6%40mail.outlook.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins EMail Reporting

2016-10-18 Thread jerome
I got some Jelly template working for this. First the jenkins file:

Make sure you collect your unit test results:
step([$class: 'JUnitResultArchiver', testResults: 'TestResult/*.xml']);


Then send the email:
emailext body: '${JELLY_SCRIPT,template="
${env.JENKINS_HOME}/email-templates/myTemplateFile.jelly"}', subject: 
email_subject, to: 'c...@bodycad.com', replyTo: 'jenk...@bodycad.com', 
mimeType: 'text/html'

Take car under Windows the '\\' is not supported into the template path and 
you need to flip them:
'${JELLY_SCRIPT,template="' + "${env.JENKINS_HOME}/email-templates/
myTemplateFile.jelly".replaceAll('[]','/') + '"}'

Here's the Jelly template that should be saved into Jenkins home folder 
under email-templates (I removed any style here to simplify the whole thing 
and removed other parts), you can modify the html to your code:



]>





 
 Unit Tests
 
 
 
 
 Tests Root Name
 ${packageResult.getName()}
 
 
 Tests Counts
 
${packageResult.getPassCount()+packageResult.getFailCount()+packageResult.getSkipCount()}

 
 
 Tests Pass
 ${packageResult.getPassCount()}
 
 
 Tests Skip
 ${packageResult.getSkipCount()}
 
 
 Tests Fail
 ${packageResult.getFailCount()}
 
 
 
 Failed: ${failed_test.getFullName()} 
 
 
  
 







-- 
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...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/35df7488-1e47-42f6-ae3b-9f4e88aa1242%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins 2.24: Question about scm code change condition during build execution

2016-10-18 Thread Rachel
Hi Teichner,

I don't know if I've understood you correctly, but I usually configure my 
jobs with:

   - Build Triggers > Poll SCM

With this option you specify when you want to check your SCM (e.g. hourly, 
every 2 hours, ...) and a new build is executed *only if changes are 
detected from the last build*. Is that you're looking for?

Best regards,
Rachel

El martes, 18 de octubre de 2016, 11:22:35 (UTC+2), Teichner Peter escribió:
>
> I’m trying to find the right solution for using a conditional multiple 
> build step depending if there was a code change. I have seen a solution by 
> checking ROOT_BUILD_CAUSE but that might be unreliable as the execution 
> could be manually triggered but there could still be code change. I need 
> this so I wont build the software unless there was an actual change in the 
> code change. Thanks in advance.
>

-- 
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...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/34424eec-8e3d-4c05-a683-3cc8c4b104ec%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: pipeline - groovy - file paths on windows?

2016-10-18 Thread Rachel
Hi Jonathan,

Thanks for the information. I'll follow the new thread.

Best regards,
Rachel

El martes, 18 de octubre de 2016, 1:17:13 (UTC+2), Jonathan Hodgson 
escribió:
>
> Rachel and Martina,
>
> Thanks for trying to help me on this, I've started a new thread now that 
> I've realized the issue isn't to do with windows or paths, but rather to do 
> with slaves and masters.
>
> On Monday, October 17, 2016 at 11:27:08 PM UTC+1, Jonathan Hodgson wrote:
>>
>> Well I can confirm that it has nothing to do with it being windows, just 
>> tried FileNameFinder on my OSX slave and it also looks on the master
>>
>> On Monday, October 17, 2016 at 9:44:03 PM UTC+1, Jonathan Hodgson wrote:
>>>
>>> But I don't want to restrict where the job runs, just where the node 
>>> runs.
>>>
>>> I have code that needs to run on the master, and code that needs to run 
>>> on the slaves.
>>>
>>> The code is running in the correct places, I can for example do a 
>>> mercurial checkout on the slaves, I can also run batch files on the slaves, 
>>> and visual studio (or I could, that bit's disabled as I'm working on this, 
>>> but it worked before).
>>>
>>> Buildsteps do what they should, on the slave
>>>
>>> but groovy file commands don't.
>>>
>>> On Monday, October 17, 2016 at 9:19:45 PM UTC+1, Rachel wrote:

 Hi Jonathan,

 According to master and slave systems you have, I think you might use 
 the option:

- "*Restrict where this project can be run*"

 in your job configuration (located in General Configuration), in order *to 
 force job execution on slave*.

 I hope be useful.

 Best regards,
 Rachel


 El lunes, 17 de octubre de 2016, 22:07:09 (UTC+2), Jonathan Hodgson 
 escribió:
>
>
>
> On Monday, October 17, 2016 at 8:36:55 PM UTC+1, Martina wrote:
>>
>> So you solved the issue of it running on the wrong system, right?
>>
>
> No, I haven't solved the issue.
>
> I thought perhaps it was running on the wrong system because it didn't 
> have an absolute path that it recognized as such, so I was trying to see 
> if 
> there was a path syntax which made it look locally, so far, no luck
>
> Well, all the "does not exist" messages have a leading /.
>> Not sure where that comes from, but I'm pretty sure that that is what 
>> it is complaining about. Also, looking at FileNameFinder, all examples 
>> are 
>> it finding files, not directories, but examples are clearly using 
>> c:/path/path syntax.
>> I'm thinking you may want to try changing up your wildcard to 
>> something like '**/*.xml' or '**/*.txt', whatever you actually have on 
>> that 
>> file system.
>>
>> FilenameFinder works as expected on the master, but not on the slave. 
> It doesn't matter what my wildcard is, it always looks on the master. The 
> same goes for File... which seems to be the complete opposite of what the 
> documentation on File and FilePath says. If I understand that correctly, 
> File is always supposed to look on the current machine (i.e. the one that 
> node is running on) and so to access stuff on the master you have to use 
> FilePath
>
>
>

-- 
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...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/c6767fd5-5fdd-4941-9255-7c41ef4d1e33%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


GitHub webhooks created with only Pull Request and Repository Events - No Push Events?

2016-10-18 Thread Greg Smith

Hi,

We are having a problem with GitHub and webhooks, and was hoping someone 
might have an idea of how to resolve.

We want to use webhooks for obvious reasons:  We're using the GitHub org 
plugin to scan our repos, and setup the Pipeline jobs.

I used the "Re-register hooks for all jobs" button on the Configure System 
page -- and it did, it went through and configured all of the webhooks on 
our projects.

But it seems to have only registered the events of "Pull Request" and 
"Repository" events.  It didn't register the Push event -- so we are not 
receiving any events to kick off builds when a user actually pushes 
something to git.

This seems to be by design -- after all, it did register for events, 
selected these 2 instead of receiving all events -- so I am assuming this 
has something to do with some other config elsewhere?

How can we get the webhook management to include Push events in the 
registered list of events?

Thanks,
Greg

-- 
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...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/433a4d78-de5a-4141-a30b-72fc3afb73cc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Gitlab-Plugin /project endpoint do not work

2016-10-18 Thread Eddard
In almost every setup example of the gitlab plugin 
 like 
here 
https://medium.com/@teeks99/continuous-integration-with-jenkins-and-gitlab-fa770c62e88a#.byii26kal
 
the gitlab webhook configuration part indicates that the url to record 
should look like this http:///project// 
where 'project' is the literal word 'project'.

After many attempts, i have failed to have a working url with a project 
endpoints in my jenkins instance and thus i can't make gitlab triggers jobs 
on push and merge requests events. when i use as web-hooks classic 
addresses for jenkins job i.e.
http:///job/**/job// the 
trigger calls are made, returning http code 200 but the jobs don't start.

If anyone here has had the same issue or has any investigating path for me 
to solve this, i would like to thank you in advance for your help.

*gitlab Version: *8.12
*jenkins version:* 2.16
*gitlab-plugin version:* 1.4.2

regards
Eddard

-- 
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...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/1013a46e-5ea5-400d-b613-88f999e6f250%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: NodeJS Plugin:in windows : npm commends not working

2016-10-18 Thread Eric Pyle
It looks like it's failing because it expects to find bash shell 
commands dirname and uname. Do you have Cygwin or some similar package 
installed to make those commands available?



On 10/18/2016 11:29 AM, bolleypally vijay kumar wrote:
1. I'm trying to print node and npm version in a jenkins jobs in 
windows machine


I dont wan to use Auto install so i gave physical location of node 
folder due to some config problems in widows with NodeJS plug in i 
also done(1. In the windows nodejs install folder add a new folder 
"bin" and copy in the node.exe) but still showing command not found 
for npm

Please find ATTACHED Screens for more details
i also found few open issues like
https://issues.jenkins-ci.org/browse/JENKINS-21953
https://issues.jenkins-ci.org/browse/JENKINS-26828
Could you please suggest are the above issues blocking me or is there 
any other look around exist for my problem

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 email to jenkinsci-users+unsubscr...@googlegroups.com 
.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/1446a133-b4b5-421c-82a4-8a66b2f5cd01%40googlegroups.com 
.

For more options, visit https://groups.google.com/d/optout.


--
*Eric Pyle
*
Release Engineer
Lebanon
+1 603-277-3060 (T)
+1 603-359-8670 (M)
eric.p...@cd-adapco.com 
http://www.cd-adapco.com 

--
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...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/59c4c9a2-f541-5173-a544-15b16f988de0%40cd-adapco.com.
For more options, visit https://groups.google.com/d/optout.


Using Jenkins, is it possible for me to run an application from my Master machine, that directly affects the GUI on my slave during a build?

2016-10-18 Thread Jenkins Johnny


I have a Jenkins master setup that will open a web application on the slave 
machine and then opens a sendkeys application to input some keys into 
various fields on the web app.


I'm using powershell to open the web application as an object, then open 
the sendkeys application which automatically inputs some keys, and then 
return some values from the web app. (I can't input the info directly with 
powershell as some of it needs to go into pop up windows that I cannot 
access via the object).

$ie = New-Object -com InternetExplorer.Application
$ie.Navigate("http://www.url.com;)
$ie.visible = $true
& C:\Sendkeys_Application_Folder\Sendkeys_Application.exe

$result = $ie.Document.getElementByID("result").innerHTML 
write-host $result


Now while this works fine on the master server, when I try and work it on 
the slave server it throws me an error, probably because it cannot find the 
application or its folder on the slave PC.


It isn't ideal that I'd have to set up this application on every slave 
machine I set up so I was wondering if it's at all possible to execute it 
from the master machine and have it affect the GUI on the slave machine?

-- 
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...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/be1a80a9-9413-4c92-a5ad-af15aeddce26%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Collecting Workflow Run Info in Pipeline

2016-10-18 Thread Zack Sampson
I figured this out. I ended up crawling around the actual workflow UI java 
code. It's fragile, but this doesn't appear to be supported in a nonfragile 
way. The classes I used were FlowNodeUtil, Describe, StatusExt, etc.

On Monday, October 17, 2016 at 10:34:20 AM UTC-4, Zack Sampson wrote:
>
> Hey,
>
> I'm trying to write a Pipeline job to generate a daily summary of my 
> pipeline runs from the preceding day. I've figured out that in a 
> non-sandboxed, non-CPS block I can get at the hudson instance and from 
> there find the jobs/runs, but I can't find out how to get to the "stage X 
> took Y minutes" data.
>
> Has anyone done this before? Do you know where that data lives within 
> WorkflowRun?
>
> Thanks,
> - Zack
>

-- 
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...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/db0f58bd-35ca-474a-9849-9e3e8f28235f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Pipeline : Confused about file access on slaves

2016-10-18 Thread Jonathan Hodgson


On Tuesday, October 18, 2016 at 3:21:09 PM UTC+1, Jesse Glick wrote:
>
> On Tuesday, October 18, 2016 at 8:09:56 AM UTC-4, Jonathan Hodgson wrote:
>>
>> Did you miss my last post? I tried FilePath, but I get a "unable to 
>> resolve class" error.
>>
>
> Do not attempt to use `FilePath` from Pipeline script. It will not work.
>

Thanks, You've saved me a lot of wasted time trying to find how to make it 
work, though I've already lost way too much. I really wish this stuff was 
documented. 

it also begs the question "Why?", Iask because I was looking at pipeline 
step plugins to see if I could find clues as to how to get the channel, and 
I see that FilePath is how they work. So it seems that FilePaths are 
working in the pipeline, just not in Groovy in the pipeline.
 

>
> I'm in a powerfull object oriented cross platform language, but to do 
>> anything useful I have to drop into platform specific archaic shell 
>> environments? Writing clunky code which has to be different for each 
>> platform
>>
>
> There are plenty of platform-independent scripting languages out there. 
> Ruby, Python, etc. Groovy (run as an external process!), for that matter.
>

Yes, but even then things are messy. All I'm doing is checking for a 
certain set of subfolders, comparing them with a list, and deleting the 
ones which aren't on the list.

Now on the master, where File works, that's actually quite a simple task 
thanks to the power of Groovy. A few lines of code right there where 
they're needed. 

But it seems to do the same thing on the slave, I basically have to write a 
separate application and call it through sh or bat, passing parameters to 
it (either as environment variables or as command line arguments I guess, 
neither of which is very clean).

One way is simple, neat and easy to maintain. The other is ugly and clunky.

Can you understand why I think that's a significant omission in the design 
of the pipeline?

When you say "groovy run as an external process", do you mean calling it 
through bat/sh, or is there a cleaner way?
 

>
> I've had zero success getting sh to work on windows
>>
>  
>
Use `bat` on Windows. There is a `isUnix` step that may be used to select a 
> Unix-vs.-Windows variant.
>

That's what I've been doing. But since I repeatedly have to execute 
effectively the same thing on windows and Unix, that's a lot of isUnix, and 
almost repeated code (almost because shell and bat are not compatible, 
obviously)

Now it looks like sh is supposed to be supported on windows if I have a 
shell installed, so I tried using that, but I couldn't get it to work. It 
called the shell ok (though even there   there's an issue as I recall, 
since the shell path configuration setting is a global one, but my unix 
machines don't have shell in the same place as the windows ones) but it 
didn't seem to be able to actually find the shell script that was generated.

All these things can be worked around of course, but every work around is 
another bit of bloat which makes things harder to understand and maintain.

Thanks again for letting me know about FilePath being a dead end

-- 
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...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/ee3c0c75-f246-4144-96b1-f086f7094a4d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Pipeline : Confused about file access on slaves

2016-10-18 Thread Jesse Glick
On Tuesday, October 18, 2016 at 8:09:56 AM UTC-4, Jonathan Hodgson wrote:
>
> Did you miss my last post? I tried FilePath, but I get a "unable to 
> resolve class" error.
>

Do not attempt to use `FilePath` from Pipeline script. It will not work.

I'm in a powerfull object oriented cross platform language, but to do 
> anything useful I have to drop into platform specific archaic shell 
> environments? Writing clunky code which has to be different for each 
> platform
>

There are plenty of platform-independent scripting languages out there. 
Ruby, Python, etc. Groovy (run as an external process!), for that matter.

I've had zero success getting sh to work on windows
>

Use `bat` on Windows. There is a `isUnix` step that may be used to select a 
Unix-vs.-Windows variant.

-- 
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...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/88fef352-992b-4c0d-adb1-fd6f739bf7d9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins 2.x Pipeline from SCM with Parameters

2016-10-18 Thread Yanson
Did you get anywhere with this? I have the exact same issue, and it also 
affects other properties such as triggers.

On Friday, 23 September 2016 21:05:49 UTC+1, jwil...@gmail.com wrote:
>
> I feel like I must be doing something wrong here, but I have a Pipeline 
> job that is getting its definition from version control.  The Pipeline 
> defines parameters that the user has to supply.  If I change the set of 
> parameters I want the build to have, I seem to have to run a failed job 
> first to get the Pipeline re-parsed and then I can see the new parameters I 
> defined.  Is there a better way to let the Pipeline job know about new 
> parameters without letting a job run with incorrect or missing parameters?
>

-- 
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...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/c87d15d4-1ec9-454f-8b7e-1a927b77b783%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Pipeline : Confused about file access on slaves

2016-10-18 Thread Jonathan Hodgson
Ok, well it seems the "unable to resolve class" issue was due to me not 
importing the class.

Got thrown by the fact that File is there, hadn't really clicked that 
FilePath was a hudson specific class rather than standard Groovy.

Still looking for how to find the channel

-- 
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...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/652b82c2-3fdf-4814-bda0-0251fd99a4ea%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins automate tests and send mail with the version of application

2016-10-18 Thread Rafael Silva
I used curl as you suggested :

VERSION=$(curl --request POST 'http://10.200.0.1:8080/page/test.jsf')

echo $VERSION | sed -rn 's/.*\Test Version: //;s/\ - Automation.*//p'


and result my version ! thanks :-)



Em segunda-feira, 17 de outubro de 2016 18:15:17 UTC-2, Sam K escreveu:
>
> Can you use curl to get the version info, store it into a variable and 
> pass it to the jenkins job?
>
> On Monday, October 17, 2016 at 12:45:15 PM UTC-7, Rafael Silva wrote:
>>
>>
>> Hi !
>>
>> I use Jenkins to automate my tests and send me an email with the report 
>> and it's fine.
>>
>> But my website has a number of new version by week, and I want send this 
>> information with the email
>>
>>
>> My site has the version on the footer
>>
>> e.g.
>>
>> Test Version: 0.1 - Automation 
>>
>>
>> How I take this number?
>> It is is very important for my control. 
>>
>>
>> Thank u
>>
>

-- 
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...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/ffc3c507-cf95-4cbe-8cb1-320d2e45b912%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Pipeline : Confused about file access on slaves

2016-10-18 Thread Jonathan Hodgson
Hi Daniel,

thanks for trying to help, however

On Tuesday, October 18, 2016 at 12:28:18 PM UTC+1, Daniel Beck wrote:
>
>
> > On 18.10.2016, at 00:58, Jonathan Hodgson  > wrote: 
> > 
> > The documentation says that File operates on "the current machine", 
> which I took to mean the one actually running the code at that moment, 
> which is the slave. 
>
> The script _is_ evaluated on the master. 
>

I'd worked out that this must be the case, but it wasn't clear at first. It 
doesn't help that when I search for information on these things I quite 
often come up with stuff that was written with reference to a system.groovy 
builld step, rather than pipeline, and don't always realize when this is 
the case.
 

>
> FilePath would do it, 


Did you miss my last post? I tried FilePath, but I get a "unable to resolve 
class" error. 

And if that worked, I still wouldn't know where to get the "channel" 
parameter from, since build.workspace.channel  is not valid in pipelines.

Is there any example code for this? It may be simple when you know how, but 
when you don't, it isn't. And finding an answer in the sparse and 
disjointed documentation isn't easy.
 

> or just not using Pipeline as a general purpose scripting language (it's 
> not meant to be).


Why not? It seems like the obvious place to do auto-build specific work. It 
seems to me that it should be an aim of the project to allow it.

Write a batch/shell script instead if you need to prepare the workspace.


Frankly, I find that a bit of a ridiculous situation. I'm in a powerfull 
object oriented cross platform language, but to do anything useful I have 
to drop into platform specific archaic shell environments? Writing clunky 
code which has to be different for each platform (especially since I've had 
zero success getting sh to work on windows, despite having cygwin, there's 
another thread about that on here somewhere).




-- 
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...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/954f7a06-f516-4743-8f55-6cc5f981ef28%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins versions

2016-10-18 Thread Daniel Beck

> On 18.10.2016, at 08:19, Onno van der Straaten 
>  wrote:
> 
> immediately update any automation script that might have been developed on 
> top of this Jenkins version

Why not run curl or wget to download a dpkg in your "automation script"?

-- 
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...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/15F977E8-984D-4CD9-8540-6941AB1C3D49%40beckweb.net.
For more options, visit https://groups.google.com/d/optout.


Re: Pipeline : Confused about file access on slaves

2016-10-18 Thread Daniel Beck

> On 18.10.2016, at 00:58, Jonathan Hodgson  wrote:
> 
> The documentation says that File operates on "the current machine", which I 
> took to mean the one actually running the code at that moment, which is the 
> slave.

The script _is_ evaluated on the master.

FilePath would do it, or just not using Pipeline as a general purpose scripting 
language (it's not meant to be). Write a batch/shell script instead if you need 
to prepare the workspace.

-- 
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...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/9ABF8A81-4D73-4F9A-A940-D9AAC9F9244F%40beckweb.net.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins Master Goes to 100% (at random?)

2016-10-18 Thread Daniel Beck
You don't say what files get loaded. Assuming it's builds, I'd look into 
available heap memory. Install the monitoring plugin. With too little memory, 
Jenkins can get into situations where it needs to load builds, and to make 
space, discards already loaded build records, just to discard the new builds 
from memory again, …

For example the project stats plugin is known to cause this a lot.

> On 17.10.2016, at 22:28, Eric Crahen  wrote:
> 
> Hi,
> 
>   We're running Jenkins master with a bunch of slaves. Typical load on the 
> master is around 5-10% which is not very much. Several times now, we've 
> gotten into spikes where the CPU goes to 100% and stays there until we 
> restart it, and this usually only helps a little.
> 
>   We dump the stack, and typically we find a whole bunch of threads sitting 
> there marshaling XML aggressively. Usually, we can connect this to a plugin 
> via the stack trace, and we'll uninstall that plugin, and that tends to help. 
> 
>   So far, the plugins I can remember include:
> 
> * audit-trail
> * build-timer
> * log-parser
> 
>   That's just the most recent ones that I can remember. We must be going on 
> the 5th or 6th plugin now. I'm afraid it's starting to shake peoples 
> confidence in Jenkins, I'd rather not have to replace it with a different 
> build system because it generally works, but when it doesn't - it's bad. We 
> actually keep a CircleCI system around because we haven't been able to build 
> enough confidence in Jenkins.
> 
>   I have a couple general questions:
> 
>   1) We're on Jenkins 2.18 - so, why does this keep happening? We've seen 
> other bugs about threads getting stuck hammering the CPU. Seems like the 
> issues were marked as resolved, but we end up having to uninstall these 
> plugins all together.
> 
>   2) Is there a list of known "bad" plugins?
> 
>   3) Why not cache more and guard against this? It's easy to blame the 
> plugins as the thing triggering this, but why not make Jenkins core more 
> resilient to this, and assume people can't/won't write perfect plugins? 
> Getting to be a fool me once type of situation here
> 
> 
> -- 
> - Eric
> 
> -- 
> 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...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/jenkinsci-users/CAPyj2qEQ8Ych%2B6%3DDd71QVwR%2B0nkPY%3D3t9r%3DyKWE6YeUVUd9Y8g%40mail.gmail.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
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...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CA7EF631-D23E-4917-9824-1245BF9E95AD%40beckweb.net.
For more options, visit https://groups.google.com/d/optout.


Re: Pipeline : Confused about file access on slaves

2016-10-18 Thread Jonathan Hodgson
Further investigation..

I thiought the solution might lie in FilePath

as per here

http://stackoverflow.com/questions/30608444/in-jenkins-job-create-file-using-system-groovy-in-current-workspace/32514581#32514581

But it seems that doesn't apply to Groovy in the pipeline, If I try to 
declare a FilePath in a pipeline script I get "unable to resolve class 
FilePath"

I'm surprised that all my searching has failed to being up any information 
on this issue.
Surely I can't be the only person actually needs to manipulate files on the 
slave in a pipeline script beyond the very simple options provided in 
pipeline build steps?

-- 
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...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/e654b76d-4a62-4207-beb0-dd0fb9895e51%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins with Cucumber not working, please help !!

2016-10-18 Thread Vinoth Kannan
Thanks Victor for your reply, I actually followed it and i am able to 
trigger the test cases through jenkins and my issue is only with the 
reporting part.

Installed all the plugins jenkins provides for Cucumber and restarted 

-- 
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...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/f77728a4-13c5-49c0-8efa-02a44f4b8f12%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Jenkins 2.24: Question about scm code change condition during build execution

2016-10-18 Thread Teichner Peter
I'm trying to find the right solution for using a conditional multiple build 
step depending if there was a code change. I have seen a solution by checking 
ROOT_BUILD_CAUSE but that might be unreliable as the execution could be 
manually triggered but there could still be code change. I need this so I wont 
build the software unless there was an actual change in the code change. Thanks 
in advance.

-- 
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...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/1D7A50BF5AC1D449A7E018A3CE1D8B339DD1FBDA%40CHX-EXMBX-06.hq.k.grp.
For more options, visit https://groups.google.com/d/optout.


Re: Automated Jenkins Installs

2016-10-18 Thread Ted Xiao
If you are talking about the setup wizard in jenkinx 2.x, you can overwrite 
it by -Djenkins.install.runSetupWizard=false, a sample dockerfile

FROM jenkins:latest
USER jenkins
RUN install-plugins.sh git workflow-aggregator

# Skip initial setup
ENV JAVA_OPTS -Djenkins.install.runSetupWizard=false



On Thursday, October 13, 2016 at 11:54:25 PM UTC+8, Ryan Cocks wrote:
>
> Hi,
>
> I'm a bit surprised to find Jenkins installation requires manual 
> intervention via a user interface.
>
> Are there any guides on how to avoid the UI and do an automated deploy of 
> Jenkins itself?
>
> Best idea I have is to store a post-setup jenkins docker image. I'd much 
> prefer to be able to pass in the configuration in files or the environment.
>
> Best regards,
> Ryan
>
>

-- 
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...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/a3d352cd-11a4-48dd-b0cb-9e7cb5508f9a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Jenkins versions

2016-10-18 Thread Onno van der Straaten
Hi,
I'm not sure if this is the right list. In this day and age of automation 
and automatic provisioning I don't understand why Jenkins versions are 
removed  from the  repositoriy for example 
http://pkg.jenkins-ci.org/debian-stable/

There is always only one version available in the repository
vagrant@devops:~$ sudo apt-cache madison jenkins   
 
   jenkins | 2.19.1 | http://pkg.jenkins-ci.org/debian-stable/ binary/ 
Packages
vagrant@devops:~$ 

When a new version comes available, the previous version is removed. If I 
understand correctly.

This practice of immediately removing the previous version forces all 
organizations and companies to immediately update any automation script 
that might have been developed on top of this Jenkins version. This is no 
longer something they can control. When a new release happens, automation 
scripts starts failing. 

What is the rationale behind forcing organizations to follow 
Jenkins release schedule? Would it no be better to allow Jenkins user to 
upgrade at moment of their choosing?

What is the purpose of having versions when only one version is supported? 
Why not use version capabilities in package management systems?
Regards,
Onno

-- 
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...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/3fe52429-c1a6-4212-b3de-0a6a1657accb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.