Re: Same Jenkins job for different git branches

2016-09-19 Thread Mark Waite


On Monday, September 19, 2016 at 3:59:15 PM UTC-7, Sam K wrote:
>
> How will it affect the list of changes it shows on the builds page?  
>
> Build No. 10 was built with master branch
> Build No. 11 is built with release_alpha branch
> Build No. 12 is then built with master branch
>
> Will changes between the builds be tracked correctly?  
>

It depends on your definition of "correct", and how useful that definition 
to your users.

The git plugin presents the differences between the preceding build and the 
current build as the "changes".  If the preceding build was for a different 
branch, then the differences are probably not useful to your users.  

The multi-branch freestyle job type and the multibranch pipeline job type 
will automatically create and delete a job for each branch that matches 
your selection criteria.  I very much prefer a job per branch because it 
makes the changes easier to read, and the history of test pass and fail 
much easier to understand.
 

> Will build no. 12 report changes between 10 and 12 and not between 11 and 
> 12?  
>
 
No, build 12 will report changes between 11 and 12, not between 10 and 12. 
 The difference computation is with the predecessor build, not with the 
predecessor build on that branch.

I see under the builds folders there are git commits, tree, parents, etc. 
>  Is that's what used to determine? 
>
>
Yes, the git repository is used to determine the differences between builds.

Mark Waite
 

> thanks
> Sam
>
>
>

-- 
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/d679f611-c393-45f4-baf2-2f987bf5f759%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Same Jenkins job for different git branches

2016-09-19 Thread Sam K
How will it affect the list of changes it shows on the builds page?  

Build No. 10 was built with master branch
Build No. 11 is built with release_alpha branch
Build No. 12 is then built with master branch

Will changes between the builds be tracked correctly?  Will build no. 12 
report changes between 10 and 12 and not between 11 and 12?  I see under 
the builds folders there are git commits, tree, parents, etc.  Is that's 
what used to determine? 

thanks
Sam


-- 
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/11c62226-d1e7-40ce-94fc-233b2f3ffebf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Maintaining a unique Build Number across multiple build servers

2016-09-19 Thread Robert Kruck
 Is it possible to preserve the integrity of build numbers (NO DUPLICATES 
and build numbers in order) while building in multiple Jenkins build 
servers?

If this capability exists in Jenkins, what Jenkins plugins are required, 
and what versions of Jenkins itself, and of the required Jenkins plugins, 
are needed?

-- 
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/20ee1dbf-587f-4f11-ae55-9ae7d0f195e7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Is there any variable for total build time in pipeline plugin?

2016-09-19 Thread Baptiste Mathus
Not a bad idea indeed ;-).

2016-09-19 21:24 GMT+02:00 Cuong Tran :

> How about:
>
> currentBuild.getDuration()
>
> https://github.com/jenkinsci/workflow-support-plugin/blob/
> master/src/main/java/org/jenkinsci/plugins/workflow/support/steps/build/
> RunWrapper.java
>
> On Monday, September 19, 2016 at 1:34:38 AM UTC-7, Denis Kot wrote:
>>
>> I would like to send message from pipeline to hipchat contains total
>> build time, i.e.:
>> job-pipeline #3007 SUCCESSFUL after 1 min 42 sec
>> How can I implement it?
>>
> --
> 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/8fd67569-d26b-4764-b342-9f4e5f8a7236%40googlegroups.
> 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/CANWgJS6E%2Bzd45uN38Hr9TzUtCv_MZ1mw2BtYo_c9szx99omu9w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: how to deploy dll from one node to QA server

2016-09-19 Thread shashikanth
Thanks for your reply HTH.

On Mon, Sep 19, 2016 at 11:31 AM, Baptiste Mathus  wrote:

> To use Jenkins in general (and any automation tool), you need to study the
> ways you could do something manually. Once you know the possibilities (say,
> ssh, ftp, cifs, nfs, whatever), then you can look for a way to automate it.
> There're dozens of plugins to support those /protocols/, and you can even
> use a system command if there's no dedicated plugin (sometimes it's even
> simpler).
>
> HTH
>
> Cheers
>
> 2016-09-14 7:37 GMT+02:00 Shashi Kanth :
>
>> Dear All,
>>
>>
>> How to deploy artifacts to QA server from node ?
>>
>> we are building MS build project on particular node and want to deploy
>> all artifacts from node to QA server.
>>
>> Is this process possible with Jenkins ? please help.
>>
>> Thanks
>> Shashi
>>
>> --
>> 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/ms
>> gid/jenkinsci-users/07425469-9eea-4326-b685-b25d09f75b54%
>> 40googlegroups.com
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Jenkins Users" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/
> topic/jenkinsci-users/FtRg3CzIEJA/unsubscribe.
> To unsubscribe from this group and all its topics, 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/CANWgJS6p0w%2BN3O63C9GwQXGZdESoZ1q0Tybx_
> AGKZxniFqeoEw%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/CAHH5jw1x%2BUQkUTfqY3HgjhjsLh43vmAS6uBj%3D%2BWnzYYUOOg%2BtA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: create jobs automatically after the code commits to the repository

2016-09-19 Thread Cuong Tran
Have you looked at job-dsl plugin?

https://github.com/jenkinsci/job-dsl-plugin

On Monday, September 19, 2016 at 8:10:32 AM UTC-7, Luciano Matte wrote:
>
> Hi all,
>
> Does anyone have any hint or suggestion plugin for creating jobs 
> automatically 
> after the code commits to the repository?
>
> That is, the Jenkins would have to carry out the svn monitoring, when 
> conducted a new commit, jenkins the case if the job already exists, but 
> there it creates the j and then run the build.
>
> Thank you all for the attention
>

-- 
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/27ea5736-ab9d-47e0-839a-9acaf6547053%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Is there any variable for total build time in pipeline plugin?

2016-09-19 Thread Cuong Tran
How about:

currentBuild.getDuration()

https://github.com/jenkinsci/workflow-support-plugin/blob/master/src/main/java/org/jenkinsci/plugins/workflow/support/steps/build/RunWrapper.java

On Monday, September 19, 2016 at 1:34:38 AM UTC-7, Denis Kot wrote:
>
> I would like to send message from pipeline to hipchat contains total build 
> time, i.e.: 
> job-pipeline #3007 SUCCESSFUL after 1 min 42 sec
> How can I implement it?
>

-- 
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/8fd67569-d26b-4764-b342-9f4e5f8a7236%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Best Practices for Pipeline Global Function Args (Maps vs Closures)

2016-09-19 Thread Cuong Tran
I'd stick with map arguments for simple cases.  Even the example from the 
wiki is simpler if you use map.  

Move to the closure option once you have more experience or complex usage. 
 For example, the new (simplified) syntax for pipleline can be implemented 
as closure:

pipeline {
  stages {
...
  }

  postBuild {
  }
}

On Monday, September 19, 2016 at 5:30:46 AM UTC-7, Kenneth Baltrinic wrote:
>
> Trying to get my head around what is the best way to implement some custom 
> pipeline DLS commands using global functions 
> .
>  
> I am looking at the examples given under Defining a more structured DSL 
> ,
>  
> which shows an example of accepting arguments via variable assignments 
> inside of a closure.  Is this the preferred method?  It seems most build in 
> commands (git, sh, etc) accept a Map of arguments.  I am not a groovy 
> expert but am trying to understand why/when one approach is better than the 
> other?  Any thoughts or illumination on this would be appreciated.
>

-- 
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/ec7e04ba-f8c0-460b-9419-d1b0adc2390c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Is there any variable for total build time in pipeline plugin?

2016-09-19 Thread Baptiste Mathus
long startTime = System.currentTimeMillis()

// Do what you need

long elapsedMillis = System.currentTimeMillis() - startTime;

Then use 

2016-09-19 10:34 GMT+02:00 Denis Kot :

> I would like to send message from pipeline to hipchat contains total build
> time, i.e.:
> job-pipeline #3007 SUCCESSFUL after 1 min 42 sec
> How can I implement it?
>
> --
> 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/e2cfa64b-e613-4f8b-87fa-7566de88e9f8%40googlegroups.
> 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/CANWgJS4p51PJOoQLrWSjERApSCvNb9PQe34Fv84quyiPfiNaDw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


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

2016-09-19 Thread Baptiste Mathus
What's the Xmx value for that Websphere? Which JDK version, and so on?

2016-09-19 17:15 GMT+02:00 Tomáš Mrázek :

> So I installed 2.7.4 on Websphere 8.5.5.9.
>
> I'm running job with a maven build. Everything is fine, ear is created,
> but after that Jenkins stucks and throws Heap error (while creating
> enviroment variables like JENKINS_HOME).
>
> FATAL: ...java.lang.OutOfMemoryError 
> : 
> ... Java Heap Error
>   at java.lang.String.(String.java:388) 
> 
>   at java.lang.String.substring(String.java:1372) 
> 
>   at 
> org.jvnet.winp.WinProcess.parseCmdLineAndEnvVars(WinProcess.java:144) 
> 
>   at 
> org.jvnet.winp.WinProcess.getEnvironmentVariables(WinProcess.java:121) 
> 
>   at 
> hudson.util.ProcessTree$Windows$1.getEnvironmentVariables(ProcessTree.java:453)
>  
> 
>   at 
> hudson.util.ProcessTree$OSProcess.hasMatchingEnvVars(ProcessTree.java:277) 
> 
>   at hudson.util.ProcessTree$Windows.killAll(ProcessTree.java:479) 
> 
>   at hudson.Launcher$LocalLauncher.kill(Launcher.java:838) 
> 
>   at 
> hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:540) 
> 
>   at hudson.model.Run.execute(Run.java:1741) 
> 
>   at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) 
> 
>   at hudson.model.ResourceController.execute(ResourceController.java:98) 
> 
>   at hudson.model.Executor.run(Executor.java:410) 
> 
> Finished: FAILURE
>
>
> So I tried to run simple Groovy script in Jenkins console
>
>
> import org.jvnet.winp.Native;
> println(Native.parseCmdLineAndEnvVars("jenkins server pid"))
>
>
> and I got string with 150k chars long, where only first thousand are regular 
> chars with env variables and the rest is some chinese weirdo chars. I tried 
> to run Jenkins with UTF-8 by specifying
>
> -Dclient.encoding.override=UTF-8 which ofc does not help.
>
>
> I'm quite hopeless and I don't know, how to fix this. Any suggestions?
>
>
> --
> 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/57539fe9-a06a-4bb8-aa89-7c27cd538359%40googlegroups.
> 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/CANWgJS5V5dhQgfZPiR8jBs6un%3Do4KVT%3D8M%3DnQxfdkdjj6uGp-g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Can't download plugins - HTTP 302 redirect

2016-09-19 Thread Baptiste Mathus
I think it's https://issues.jenkins-ci.org/browse/JENKINS-8028 but
surprised it's still active. Pretty sure I saw fixes about this. Maybe it
was on some other parts like Tools.

2016-09-19 6:10 GMT+02:00 Corey Wei :

> anyone can help?
>
>
> On Sunday, September 18, 2016 at 4:43:12 PM UTC+8, Corey Wei wrote:
>>
>> Hi Croy,
>>
>> I just downloaded a hpi from the mirror and the file's good.
>>
>> The problem is that Jenkins server doesn't  follow 302 redirects to
>> download the correct file but always downloads a "302 redirect" response
>> file.
>>
>> # a 302 redirect file
>> $ cat git-server.jpi.tmp
>> 
>> 
>> 302 Found
>> 
>> Found
>> The document has moved https://mirrors.tuna.tsi
>> nghua.edu.cn/jenkins/plugins/git-server/1.7/git-server.hpi">here.
>> 
>>
>> # file can be downloaded  correctly via wget
>> $ wget -v http://updates.jenkins-ci.org/download/plugins/git-server/1.
>> 7/git-server.hpi
>> --2016-09-18 15:49:54--  http://updates.jenkins-ci.org
>> /download/plugins/git-server/1.7/git-server.hpi
>> Resolving updates.jenkins-ci.org... 52.202.51.185
>> Connecting to updates.jenkins-ci.org|52.202.51.185|:80... connected.
>> HTTP request sent, awaiting response... 302 Found
>> Location: http://mirrors.jenkins-ci.org/plugins/git-server/1.7/git-ser
>> ver.hpi [following]
>> --2016-09-18 15:49:55--  http://mirrors.jenkins-ci.org
>> /plugins/git-server/1.7/git-server.hpi
>> Resolving mirrors.jenkins-ci.org... 52.202.51.185
>> Reusing existing connection to updates.jenkins-ci.org:80.
>> HTTP request sent, awaiting response... 302 Found
>> Location: https://mirrors.tuna.tsinghua.edu.cn/jenkins/plugins/git-ser
>> ver/1.7/git-server.hpi [following]
>> --2016-09-18 15:49:58--  https://mirrors.tuna.tsinghua
>> .edu.cn/jenkins/plugins/git-server/1.7/git-server.hpi
>> Resolving mirrors.tuna.tsinghua.edu.cn... 166.111.206.63,
>> 2402:f000:1:416:166:111:206:63
>> Connecting to mirrors.tuna.tsinghua.edu.cn|166.111.206.63|:443...
>> connected.
>> HTTP request sent, awaiting response... 200 OK
>> Length: 40729 (40K) [application/octet-stream]
>> Saving to: “git-server.hpi.1”
>>
>> 100%[===
>> >] 40,729  --.-K/s   in 0s
>>
>>
>> 2016-09-18 15:49:58 (188 MB/s) - “git-server.hpi.1” saved [40729/40729]
>>
>>
>>
>> On Sunday, September 18, 2016 at 2:59:06 PM UTC+8, R Tyler Croy wrote:
>>>
>>> (replies inline)
>>>
>>> On Sat, 17 Sep 2016, Corey Wei wrote:
>>>
>>> > Hi,
>>> >
>>> > My Jenkins 2.22 is working with Tomcat. There are some errors while I
>>> tried
>>> > to install plugins like this:
>>> >
>>> > 18-Sep-2016 11:17:05.590 SEVERE [Update center installer thread [#1]]
>>> > hudson.model.UpdateCenter$DownloadJob.run Failed to install GIT
>>> server
>>> > Plugin
>>> >  java.io.IOException: Downloaded file
>>> > /home/deploy/.jenkins2/plugins/git-server.jpi.tmp does not match
>>> expected
>>> > SHA-1, expected 'LoG8X55ycVzgPjwTtCA/iKb7lvw=', actual
>>> > 'Lbk3pB/mu/UlYJO4o2ttQkZ+mvs='
>>>
>>>
>>> I recently added a mirror located in China
>>> (https://issues.jenkins-ci.org/browse/INFRA-924).
>>>
>>> Would you mind downloading some files and comparing between the mirror
>>> you're
>>> hitting and: http://ftp-nyc.osuosl.org/pub/jenkins/
>>>
>>>
>>> If that mirror is serving corrupted artifacts I will remove it from the
>>> rotation immediately.
>>>
>>>
>>>
>>> > at hudson.model.UpdateCenter.veri
>>> fyChecksums(UpdateCenter.java:1799)
>>> > at hudson.model.UpdateCenter.access$1100(UpdateCenter.java:147)
>>>
>>> > at
>>> > hudson.model.UpdateCenter$InstallationJob.replace(UpdateCenter.java:1950)
>>>
>>> > at
>>> > hudson.model.UpdateCenter$UpdateCenterConfiguration.install(UpdateCenter.java:1194)
>>>
>>> > at
>>> > hudson.model.UpdateCenter$DownloadJob._run(UpdateCenter.java:1669)
>>> > at
>>> > hudson.model.UpdateCenter$InstallationJob._run(UpdateCenter.java:1864)
>>>
>>> > at hudson.model.UpdateCenter$Down
>>> loadJob.run(UpdateCenter.java:1640)
>>> > at
>>> > java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
>>>
>>> > at java.util.concurrent.FutureTask.run(FutureTask.java:266)
>>> > at
>>> > hudson.remoting.AtmostOneThreadExecutor$Worker.run(AtmostOneThreadExecutor.java:110)
>>>
>>> > at java.lang.Thread.run(Thread.java:745)
>>> >
>>> > $ cat ~/.jenkins2/plugins/git-server.jpi.tmp
>>> > 
>>> > 
>>> > 302 Found
>>> > 
>>> > Found
>>> > The document has moved >> > href="https://mirrors.tuna.tsinghua.edu.cn/jenkins/plugins/
>>> git-server/1.7/git-server.hpi">here.
>>> > 
>>> >
>>> > Looks like it redirects to a mirror update center.
>>> >
>>> > Any comments would be appreciated.
>>> >
>>> > 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 

Re: Executiing powershell script in Jenkins 2.0 pipeline not allowed.

2016-09-19 Thread Baptiste Mathus
I don't Windows admin much, but did you make sure Jenkins is running under
the user you've granted perms? Also, did you restart Jenkins so that that
new permissions apply?

My 2 cents

2016-09-15 13:14 GMT+02:00 Jan-Olav Eide :

> I have a powershell script I want to execute in a pipeline step.
> I thus call :
>
>  bat 'powershell \\tmp\\test.ps1'
>
> prior to this I have set the ExecutionPolicy to Unrestricted as admin.
>
> Still, when the pipeline runs, I get this
>
> *13:07:13* C:\Program Files (x86)\Jenkins\workspace\Merchant 
> Pipeline\trunk>powershell \tmp\test.ps1 *13:07:13* File \tmp\test.ps1 cannot 
> be loaded because the execution of scripts is disable*13:07:13* d on this 
> system. Please see "get-help about_signing" for more details.
>
>
> Why doesn't triggering the excution of powershell via the 'bat' operation 
> respect the Unrestricted execution policy I just set ?
>
>
>
>  --
> 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/4a004aee-5588-446a-a6e9-9dec21a0cee2%40googlegroups.
> 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/CANWgJS6tDui73%3D1wUG366z6o2-UwNOUvUHEiHQV2RgzG8qvf5w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: how to deploy dll from one node to QA server

2016-09-19 Thread Baptiste Mathus
To use Jenkins in general (and any automation tool), you need to study the
ways you could do something manually. Once you know the possibilities (say,
ssh, ftp, cifs, nfs, whatever), then you can look for a way to automate it.
There're dozens of plugins to support those /protocols/, and you can even
use a system command if there's no dedicated plugin (sometimes it's even
simpler).

HTH

Cheers

2016-09-14 7:37 GMT+02:00 Shashi Kanth :

> Dear All,
>
>
> How to deploy artifacts to QA server from node ?
>
> we are building MS build project on particular node and want to deploy all
> artifacts from node to QA server.
>
> Is this process possible with Jenkins ? please help.
>
> Thanks
> Shashi
>
> --
> 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/07425469-9eea-4326-b685-b25d09f75b54%40googlegroups.
> 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/CANWgJS6p0w%2BN3O63C9GwQXGZdESoZ1q0Tybx_AGKZxniFqeoEw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Will workspace cleanup affect Changes tracking?

2016-09-19 Thread Sam K
I have one job that pulls source code from different branches.  I see that 
the 'Changes' shows the correct checkins that happened on Git for each of 
the branches.  Will having a 'deleteDir()' in the jobs affect the Jenkins 
changes tracking?  Does Jenkins use the workspace for tracking the changes? 
 

thanks
Sam

-- 
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/b314d52e-9bfd-4984-873d-98f76af264f4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Naginator plugin support environment variables?

2016-09-19 Thread Dunnigan, Terrence J
Does the Naginator plugin support reading Jenkins environment variables? I see 
that Naginator exposes

I'd like to define a regular expression as a Jenkins environment variable and 
then configure Naginator to use it. I can't seem to get this to work (or to set 
other inputs as environment variables like a max retry value). Is this a 
supported use case?

Thanks,

Terry


-- 
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/cc7f7cf64f0144d3b758ee2d6899e4bc%40XCH15-05-11.nw.nos.boeing.com.
For more options, visit https://groups.google.com/d/optout.


Re: Missing the Job/ExtendedRead permission

2016-09-19 Thread geoffroy . jabouley
Maybe you can install the jenkins 
plugin: 
https://wiki.jenkins-ci.org/display/JENKINS/Extended+Read+Permission+Plugin


Le jeudi 8 septembre 2016 16:48:36 UTC+2, Ashish Yadav a écrit :
>
> Any ideas on this?
>
> From: Ashish Yadav 
> Reply-To: "jenkins...@googlegroups.com " <
> jenkins...@googlegroups.com >
> Date: Tuesday, September 6, 2016 at 1:58 PM
> To: "jenkins...@googlegroups.com " <
> jenkins...@googlegroups.com >
> Subject: Missing the Job/ExtendedRead permission
>
> I implemented the Project Based Security Matrix plugin and am able to 
> configure the jobs and grant permissions accordingly. I granted myself 
> overall Admin access. However, there are select jobs that I can’t configure 
> at all. I don’t even see the ‘configure’ link. When I try to configure or 
> clone the job, I am getting ‘User missing the Job/ExtendedRead permission”
>
> Please let me know how I can resolve this or what could be causing this. 
> Only select jobs are impacted. A majority of the jobs have correct project 
> based permissions.
>
> -- 
> 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-use...@googlegroups.com .
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/jenkinsci-users/D3F47BEE.22F7A%25ashish.yadav%40firemon.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/a4e940c4-9393-47c2-8cb8-7c078dfe3de3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: http://my_jenkins_server/cli returns 404?

2016-09-19 Thread Bob Hansen
That was it. I'm using an automated install of jenkins and it was 
installing a groovy script where you described. Remaned the script, 
restarted the service and I can now get to the CLI from the dashboard.

Thanks!

On Friday, September 16, 2016 at 10:12:25 PM UTC-4, Daniel Beck wrote:
>
> Make sure you don't have an init.groovy[.d] in JENKINS_HOME that disables 
> the CLI; we recommended doing that last November as workaround for a 0-day 
> vulnerability. 
>
> > On 16.09.2016, at 11:50, Bob Hansen  
> wrote: 
> > 
> > Been trying use the jenkins cli to programmatically set builds to 
> unstable from failed based on conditions that I will find in various log 
> files related to the project I'm working on. 
> > 
> > One of the recommendations is to use the jenkkns_cli to set it via the 
> jenkins_cli, however if I do this: 
> > 
> >  java -jar jenkins-cli.jar -noCertificateCheck  
> https://my_jenkins_server help 
> > 
> > What gets returned is a FileNotFoundException: 
> > 
> >  Suppressed: java.io.FileNotFoundException: 
> https://zvm-os-jenkins.pokprv.stglabs.ibm.com/cli/ 
> > at 
> sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1626)
>  
>
> > at 
> sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:254)
>  
>
> > at 
> hudson.cli.FullDuplexHttpStream.(FullDuplexHttpStream.java:78) 
> > at hudson.cli.CLI.connectViaHttp(CLI.java:158) 
> > at hudson.cli.CLI.(CLI.java:132) 
> > 
> > If I use manage jenkins from the jenkins dashboard and click jenkins 
> cli, I get a simliar thing; 
> > 
> > HTTP ERROR 404 Problem accessing /cli/. Reason: Not Found 
> > 
> > What am I missing? I have this issue with two jenkins servers. Is there 
> something I need to install/enable that I'm missing? Searches find nothing. 
> > 
> > Server 1: Ubuntu 14.04,3 Jenkins version 1.642.1 
> > Server 2: Ubuntu: 14.04.5 Jenkins Version: 1.651.2 
> > 
> > Bob Hansen 
> > 
> > -- 
> > 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-use...@googlegroups.com . 
> > To view this discussion on the web visit 
> https://groups.google.com/d/msgid/jenkinsci-users/42cfa22e-7971-45d8-9976-2202bc6f5a38%40googlegroups.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/aa2f8b62-5eef-480e-9868-a8f1a3436634%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Jenkins on Websphere 8.5 - out of memory (heap)

2016-09-19 Thread Tomáš Mrázek
So I installed 2.7.4 on Websphere 8.5.5.9.

I'm running job with a maven build. Everything is fine, ear is created, but 
after that Jenkins stucks and throws Heap error (while creating enviroment 
variables like JENKINS_HOME).

FATAL: ...java.lang.OutOfMemoryError 
: ... 
Java Heap Error
at java.lang.String.(String.java:388) 

at java.lang.String.substring(String.java:1372) 

at 
org.jvnet.winp.WinProcess.parseCmdLineAndEnvVars(WinProcess.java:144) 

at 
org.jvnet.winp.WinProcess.getEnvironmentVariables(WinProcess.java:121) 

at 
hudson.util.ProcessTree$Windows$1.getEnvironmentVariables(ProcessTree.java:453) 

at 
hudson.util.ProcessTree$OSProcess.hasMatchingEnvVars(ProcessTree.java:277) 

at hudson.util.ProcessTree$Windows.killAll(ProcessTree.java:479) 

at hudson.Launcher$LocalLauncher.kill(Launcher.java:838) 

at 
hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:540) 

at hudson.model.Run.execute(Run.java:1741) 

at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) 

at hudson.model.ResourceController.execute(ResourceController.java:98) 

at hudson.model.Executor.run(Executor.java:410) 

Finished: FAILURE


So I tried to run simple Groovy script in Jenkins console 


import org.jvnet.winp.Native;
println(Native.parseCmdLineAndEnvVars("jenkins server pid"))


and I got string with 150k chars long, where only first thousand are regular 
chars with env variables and the rest is some chinese weirdo chars. I tried to 
run Jenkins with UTF-8 by specifying

-Dclient.encoding.override=UTF-8 which ofc does not help. 


I'm quite hopeless and I don't know, how to fix this. Any suggestions?


-- 
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/57539fe9-a06a-4bb8-aa89-7c27cd538359%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


create jobs automatically after the code commits to the repository

2016-09-19 Thread Luciano Matte
Hi all,

Does anyone have any hint or suggestion plugin for creating jobs automatically 
after the code commits to the repository?

That is, the Jenkins would have to carry out the svn monitoring, when 
conducted a new commit, jenkins the case if the job already exists, but 
there it creates the j and then run the build.

Thank you all for the attention

-- 
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/610a5f48-64b4-4e27-8102-260f374e1c4c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Best Practices for Pipeline Global Function Args (Maps vs Closures)

2016-09-19 Thread Kenneth Baltrinic
Trying to get my head around what is the best way to implement some custom 
pipeline DLS commands using global functions 
.
 
I am looking at the examples given under Defining a more structured DSL 
,
 
which shows an example of accepting arguments via variable assignments 
inside of a closure.  Is this the preferred method?  It seems most build in 
commands (git, sh, etc) accept a Map of arguments.  I am not a groovy 
expert but am trying to understand why/when one approach is better than the 
other?  Any thoughts or illumination on this would be appreciated.

-- 
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/5c2908be-b55c-4e58-b4e5-a315b78533f5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Missing the Job/ExtendedRead permission

2016-09-19 Thread Ashish Yadav

Any ideas on this?

From: Ashish Yadav >
Reply-To: 
"jenkinsci-users@googlegroups.com" 
>
Date: Tuesday, September 6, 2016 at 1:58 PM
To: "jenkinsci-users@googlegroups.com" 
>
Subject: Missing the Job/ExtendedRead permission

I implemented the Project Based Security Matrix plugin and am able to configure 
the jobs and grant permissions accordingly. I granted myself overall Admin 
access. However, there are select jobs that I can't configure at all. I don't 
even see the 'configure' link. When I try to configure or clone the job, I am 
getting 'User missing the Job/ExtendedRead permission"

Please let me know how I can resolve this or what could be causing this. Only 
select jobs are impacted. A majority of the jobs have correct project based 
permissions.

--
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/D3F47BEE.22F7A%25ashish.yadav%40firemon.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/D3F6E460.22FE0%25ashish.yadav%40firemon.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/D40541F3.23430%25ashish.yadav%40firemon.com.
For more options, visit https://groups.google.com/d/optout.


Error in jenkins related to s3 bucket here i would like push the war file into S3 bucket and i am getting the following error.

2016-09-19 Thread shrikkannt
Failed CodeDeploy post-build step; exception follows. S3 Bucket field 
cannot contain any subdirectories.  Bucket name only!

this is the error i am getting can any one please suggest me please

-- 
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/7fc55e59-ab57-4c68-bb4b-712581177e06%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: PeopleSoft Online Object Migrations using Jenkins

2016-09-19 Thread Kofi Boateng
Got it. Thanks for the feedback.

Regards

Kofi Boateng
Application Development Manager 
Technology Delivery
Application Services Delivery 
Oracle HCM Cloud, BI & PeopleSoft HCM

Resilient conquers Adversity = Thriving 

> On Sep 19, 2016, at 1:05 AM, Baptiste Mathus  wrote:
> 
> Hey,
> Basically Jenkins is an automation/coordination tool. So doing things like 
> that you either have to look at the list of Jenkins plugins (Google knows it) 
> or first write a local script that will do what you're asking.
> Then you'll wrap that in a job.
> 
> Cheers
> 
> 
> Le 13 sept. 2016 11:59 PM, "Kofi Boateng"  a écrit :
>> My current Client is looking into implementing Jenkins. We are running 
>> PeopleSoft HCM/FIN. I am tasks in coming up with a business case for 
>> implementing Jenkins for Continuous Integration and Delivery. What I cannot 
>> pin my hands on is whether Jenkins can be used to migrate PeopleSoft objects 
>> such as records, pages, peoplecode, sql etc. Could someone familiar with 
>> Jenkins/PeopleSoft setup skilled in PeopleSoft online object migrations 
>> using Jenkins respond with details or point me to where I can find details 
>> on this?
>> -- 
>> 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/cf96b818-bed6-4936-a70d-3a9ba07d258d%40googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
> 
> -- 
> You received this message because you are subscribed to a topic in the Google 
> Groups "Jenkins Users" group.
> To unsubscribe from this topic, visit 
> https://groups.google.com/d/topic/jenkinsci-users/5OVRx_JtSno/unsubscribe.
> To unsubscribe from this group and all its topics, 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/CANWgJS4Gy%2BM8AJS4oTQu1aRf3OdmEi93e_fyxh%3D-j1HhYL7M1Q%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/8C37722F-581C-4CEB-9124-AE3A7A904BA0%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Mac Jenkins Can't Clone/fetch from GitHub

2016-09-19 Thread Hung
Hi,

So I install Jenkins on another mac, this one using my home network with no
firewalls.  I still can't get it to work.  Here is my log, also using the
older git plugin, here is the log, different error but still unable to
process git request.

using .gitcredentials to set credentials
 > git config --local credential.username voltage-builder # timeout=10
 > git config --local credential.helper store
--file=/Users/Shared/Jenkins/tmp/git3983407691039161185.credentials #
timeout=10
 > git -c core.askpass=true fetch --tags --progress
https://github.com/MyAccount/Sample +refs/heads/*:refs/remotes/origin/*
ERROR: Timeout after 10 minutes
 > git config --local --remove-section credential # timeout=10
ERROR: Error fetching remote repo 'origin'
hudson.plugins.git.GitException: Failed to fetch from
https://github.com/MyAccount/Sample
at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:799)
at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1055)
at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1086)
at hudson.scm.SCM.checkout(SCM.java:495)
at hudson.model.AbstractProject.checkout(AbstractProject.java:1269)
at
hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:604)
at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
at
hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:529)
at hudson.model.Run.execute(Run.java:1741)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:98)
at hudson.model.Executor.run(Executor.java:410)
Caused by: hudson.plugins.git.GitException: Command "git -c
core.askpass=true fetch --tags --progress
https://github.com/MyAccount/Sample +refs/heads/*:refs/remotes/origin/*"
returned status code 143:
stdout: 
stderr: 
at
org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1740)
at
org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1476)
at
org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$300(CliGitAPIImpl.java:63)
at
org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:314)
at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:797)
... 11 more
ERROR: null
Finished: FAILURE

Anyone gotten Jenkins to work with Mac and Git before?  If so can you let me
know the step you did to get it working?

Here was my step,

Download Jenkins, run the install.

Install the plugin from Manage Plugin
Make a project, add credentials.
Run project.

Are there step I am missing?  Thanks





--
View this message in context: 
http://jenkins-ci.361315.n4.nabble.com/Mac-Jenkins-Can-t-Clone-fetch-from-GitHub-tp4842626p4843079.html
Sent from the Jenkins users mailing list archive at Nabble.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/1474278966150-4843079.post%40n4.nabble.com.
For more options, visit https://groups.google.com/d/optout.


Requesting feedback on upcoming pipeline compatible SonarQube plugin

2016-09-19 Thread 'Julien HENRY' via Jenkins Users
Hi guys,
We worked last weeks on making the SonarQube Scanner for Jenkins (aka 
sonar-plugin) compatible with pipeline. Before doing a final release I'm 
requesting feedback both from end users and also from Jenkins developers.
My concern is that once the plugin will be released it will be hard to change 
the DSL, so speak now or forever hold your peace :)
Here is a link to the official announcement with more 
details:https://groups.google.com/forum/#!topic/sonarqube/V6YSZfZ_rH0

For code reviewer:
https://github.com/SonarSource/sonar-scanner-jenkins

Thanks!
Julien

-- 
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/1771378472.1556508.1474277241636%40mail.yahoo.com.
For more options, visit https://groups.google.com/d/optout.


Is there any variable for total build time in pipeline plugin?

2016-09-19 Thread Denis Kot
I would like to send message from pipeline to hipchat contains total build 
time, i.e.: 
job-pipeline #3007 SUCCESSFUL after 1 min 42 sec
How can I implement it?

-- 
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/e2cfa64b-e613-4f8b-87fa-7566de88e9f8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Mac Jenkins Can't Clone/fetch from GitHub

2016-09-19 Thread Ankit Arora
Hi,

I am also getting Error while Connecting Jenkins from Github.

*Error : Failed to connect to repository : Error performing command:
git.exe ls-remote -h*

Please suggest the solution

*//BR*


*Ankit AroraTest Engineer  *
*✉ : **ankitarora...@gmail.com || ankitarora...@gmail.com*
*☎ :*
*+91-9654293205 ,+91-8285678798 *


*P please consider the environment before printing any emailPlease say
"No" to Plastics *





On Sat, Sep 17, 2016 at 4:06 AM, Hung  wrote:

> HI,  I am new to setting up Jenkins.  I am trying to setup a Jenkins server
> on a Mac Mini.  I am having trouble with the Jenkins setup because I made a
> simple project that is to sync to a github repo and then run a script.
> Unfortunately I can't get this simple project to run correctly.  I keep
> getting a timeout error.  Here is a Console output.
>
>  15:16:57 Building in workspace
> /Users/Shared/Jenkins/Home/workspace/MacWitchesServers
> 15:16:57  > /usr/bin/git rev-parse --is-inside-work-tree # timeout=10
> 15:16:57 Fetching changes from the remote Git repository
> 15:16:57  > /usr/bin/git config remote.origin.url
> https://github.com/MyAccount/sample # timeout=10
> 15:16:57 Fetching upstream changes from https://github.com/MyAccount/
> sample
> 15:16:57  > /usr/bin/git --version # timeout=10
> 15:16:57 using GIT_ASKPASS to set credentials
> 15:16:57  > /usr/bin/git fetch --tags --progress
> https://github.com/MyAccount/sample +refs/heads/*:refs/remotes/origin/*
> 15:26:57 ERROR: Timeout after 10 minutes
> 15:26:57 ERROR: Error fetching remote repo 'origin'
> 15:26:57 hudson.plugins.git.GitException: Failed to fetch from
> https://github.com/MyAccount/sample
> 15:26:57at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:797)
> 15:26:57at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:
> 1051)
> 15:26:57at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1082)
> 15:26:57at hudson.scm.SCM.checkout(SCM.java:495)
> 15:26:57at
> hudson.model.AbstractProject.checkout(AbstractProject.java:1269)
> 15:26:57at
> hudson.model.AbstractBuild$AbstractBuildExecution.
> defaultCheckout(AbstractBuild.java:604)
> 15:26:57at
> jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
> 15:26:57at
> hudson.model.AbstractBuild$AbstractBuildExecution.run(
> AbstractBuild.java:529)
> 15:26:57at hudson.model.Run.execute(Run.java:1741)
> 15:26:57at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
> 15:26:57at
> hudson.model.ResourceController.execute(ResourceController.java:98)
> 15:26:57at hudson.model.Executor.run(Executor.java:410)
> 15:26:57 Caused by: hudson.plugins.git.GitException: Command "/usr/bin/git
> fetch --tags --progress https://github.com/MyAccount/sample
> +refs/heads/*:refs/remotes/origin/*" returned status code 143:
> 15:26:57 stdout:
> 15:26:57 stderr:
> 15:26:57at
> org.jenkinsci.plugins.gitclient.CliGitAPIImpl.
> launchCommandIn(CliGitAPIImpl.java:1752)
> 15:26:57at
> org.jenkinsci.plugins.gitclient.CliGitAPIImpl.
> launchCommandWithCredentials(CliGitAPIImpl.java:1495)
> 15:26:57at
> org.jenkinsci.plugins.gitclient.CliGitAPIImpl.
> access$300(CliGitAPIImpl.java:64)
> 15:26:57at
> org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.
> execute(CliGitAPIImpl.java:315)
> 15:26:57at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:795)
> 15:26:57... 11 more
> 15:26:57 ERROR: null
>
> I su jenkins and did a manual git fetch and there was no issue.  Do anyone
> know where I am going wrong.  I did a normal installation of jenkins and
> selected plugin related to github.
>
> I am running Jenkins ver. 2.7.4
>
> Thank you for any help, and I stuck at this point.
>
>
>
> --
> View this message in context: http://jenkins-ci.361315.n4.
> nabble.com/Mac-Jenkins-Can-t-Clone-fetch-from-GitHub-tp4842626.html
> Sent from the Jenkins users mailing list archive at Nabble.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/1474065395598-4842626.post%40n4.nabble.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/CACCbP2ToaM%2B8192TiBg5Q7cgW5fbdDcQ-GJFFUV%3DGixWTyuDmw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Mac Jenkins Can't Clone/fetch from GitHub

2016-09-19 Thread Hung
So I installed the older pluggin you link, and I am still having the same
issue.  The log still show askpass is being used.

Here is the Centos Jenkin that is working log of the git call

11:40:14 using .gitcredentials to set credentials
11:40:14  > git config --local credential.helper store
--file=/tmp/git6774799234765831045.credentials # timeout=10
11:40:14  > git fetch --tags --progress https://github.com/MyAccount/Sample
+refs/heads/*:refs/remotes/origin/*
11:40:20  > git config --local --remove-section credential # timeout=10
11:40:20  > git rev-parse refs/remotes/origin/dev^{commit} # timeout=10
11:40:20  > git rev-parse refs/remotes/origin/origin/dev^{commit} #
timeout=10
11:40:20 Checking out Revision 736768d34c48a7078b6330d8777d2c252291f961
(refs/remotes/origin/dev)
11:40:20  > git config core.sparsecheckout # timeout=10
11:40:20  > git checkout -f 736768d34c48a7078b6330d8777d2c252291f961
11:40:21  > git rev-list 736768d34c48a7078b6330d8777d2c252291f961 #
timeout=10
11:40:26 [workspace] $ /bin/sh -xe /tmp/hudson8706993192070172306.sh

Here is my Mac Jenkins logs

23:36:55 using .gitcredentials to set credentials
23:36:55  > /usr/bin/git config --local credential.username jenkins-builder
# timeout=10
23:36:55  > /usr/bin/git config --local credential.helper store
--file=/Users/Shared/Jenkins/tmp/git5395379929780946755.credentials #
timeout=10
23:36:55  > /usr/bin/git -c core.askpass=true fetch --tags --progress
https://github.com/MyAccount/Sample +refs/heads/*:refs/remotes/origin/*
23:46:55 ERROR: Timeout after 10 minutes
23:46:55  > /usr/bin/git config --local --remove-section credential #
timeout=10
23:46:55 ERROR: Error fetching remote repo 'origin'
23:46:55 hudson.plugins.git.GitException: Failed to fetch from
https://github.com/MyAccount/Sample
23:46:55at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:799)
23:46:55at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1055)
23:46:55at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1086)
23:46:55at hudson.scm.SCM.checkout(SCM.java:495)
23:46:55at
hudson.model.AbstractProject.checkout(AbstractProject.java:1269)
23:46:55at
hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:604)
23:46:55at
jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
23:46:55at
hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:529)
23:46:55at hudson.model.Run.execute(Run.java:1741)
23:46:55at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
23:46:55at
hudson.model.ResourceController.execute(ResourceController.java:98)
23:46:55at hudson.model.Executor.run(Executor.java:410)
23:46:55 Caused by: hudson.plugins.git.GitException: Command "/usr/bin/git
-c core.askpass=true fetch --tags --progress
https://github.com/MyAccount/Sample +refs/heads/*:refs/remotes/origin/*"
returned status code 143:
23:46:55 stdout: 
23:46:55 stderr: error: git-credential-osxkeychain died of signal 15
23:46:55 
23:46:55at
org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1740)
23:46:55at
org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1476)
23:46:55at
org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$300(CliGitAPIImpl.java:63)
23:46:55at
org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:314)
23:46:55at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:797)
23:46:55... 11 more
23:46:55 ERROR: null


This is a little different than the first error as it report an error :
 stderr: error: git-credential-osxkeychain died of signal 15

Anyone know what this error means?  Do I need to have a jenkins account on
my mac?



--
View this message in context: 
http://jenkins-ci.361315.n4.nabble.com/Mac-Jenkins-Can-t-Clone-fetch-from-GitHub-tp4842626p4843016.html
Sent from the Jenkins users mailing list archive at Nabble.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/1474268885996-4843016.post%40n4.nabble.com.
For more options, visit https://groups.google.com/d/optout.


Re: Only 1 Windows Slave is allowed by Jenkins?? Unexpected error in launching a slave

2016-09-19 Thread Vinay Sharma
Hi Voll AufMühlen,

I have been trying to configure Jenkins to launch Windows EC2 instances.
I have had success only with linux instances. 

With windows instances I have been unsuccessful. My Jenkins is able to 
launch the windows instance, but post that, nothing happens. The windows 
instance
is launched(as I can see on my AWS console). But the slave node(this 
windows ec2 node) never comes online.

Also, a few weeks ago I tried this activity, when I received the error with 
WinRM; the node was lunched but jenkins was not able to connect to this 
node.

Since you have been able to connect your windows ec2 instance with your 
Jenkins; can you please help me configure the same.

Which plugin do you use in Jenkins for connecting to AWS cloud?
Settings you have done in (Jenkins configure) cloud option.
Settings needed on AWS?
How do you manage the authentication(User name and password for your 
windows EC2 slaves.0

It will be really helpful if you can help me with the same.

Thanks and regards,
Vinay Sharma

vintro...@gmail.com

On Tuesday, 8 March 2016 19:56:56 UTC+5:30, Voll AufMühlen wrote:
>
> Hi there,
>
> hope that you can help me out :)
>
> my Configuration :* Jenkins Master, Version: 1.651 (Ubuntu 14.04 LTS 
> 64bit)*
> *Launching via: JNLP*
>
> *Java Version: 1.80_65Windows Slave Plugin: 1.1*
> 
> it's 3 days now that i have searched the whole internet, but couldn't find 
> an answer to my problem.
>
> The Problem. I have several Linux slaves that are connecting with jenkins 
> master without a problem. And I have one Windows 2012 RS slave that is 
> working without problems. But when I try to add a new windows slave (again 
> Windows 2012 R2), (with JNLP) I always receive an error.
>
> I tried everything. Using the jenkins URL using Jenkins IP 
> insteadshutting down the firewall on windows slave. There is no proxy 
> on the network.
>
> My thoughts are.*The Jenkins Master is trying to connect with every 
> Windows Jenkins Slave using the same port and that is the problem her*e.
>
>
> --
>
>
> C:\Windows\system32>"C:\Program Files\Java\jre1.8.0_65\bin\java.exe" -jar 
> C:\jenkins\slave.jar -jnlpUrl  
> https://jenkins.de/computer/JSlave/slave-agent.jnlp -secret 
> 961XX
> hudson.remoting.jnlp.Main createEngine
> INFO: Setting up slave:
> hudson.remoting.jnlp.Main$CuiListener 
> INFO: Jenkins agent is running in headless mode.
> hudson.remoting.jnlp.Main$CuiListener status
> INFO: Locating server among [https://jenkins.de/]
> hudson.remoting.jnlp.Main$CuiListener status
> INFO: Handshaking
> hudson.remoting.jnlp.Main$CuiListener status
> INFO: Connecting to jenkins.de:58844 (retrying:2)
> java.net.ConnectException: Connection timed out: connect
> at java.net.DualStackPlainSocketImpl.connect0(Native Method)
> at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source)
> at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)
> at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown 
> Source)
> at java.net.AbstractPlainSocketImpl.connect(Unknown Source)
> at java.net.PlainSocketImpl.connect(Unknown Source)
> at java.net.SocksSocketImpl.connect(Unknown Source)
> at java.net.Socket.connect(Unknown Source)
> at java.net.Socket.connect(Unknown Source)
> at java.net.Socket.(Unknown Source)
> at java.net.Socket.(Unknown Source)
> at hudson.remoting.Engine.connect(Engine.java:327)
> at hudson.remoting.Engine.run(Engine.java:235)
>
>
>
>
> ---
>
> And here is the log outpout on the Jenkins Master:
>
> /var/lib/jenkins/logs/slaves/JSlave/slave.log
>
> Verbinde zu JSlave
> ERROR: Unerwarteter Fehler beim Starten eines Slave-Prozesses aufgetreten. 
> Vermutlich handelt es sich um einen Fehler in Jenkins.
> ha:CCCAAAWB+XLCAXAAAP9bXXX/DDDSXSSS/Xb5MSSX=java.net.UnknownHostException:
>  
> JSlave: unknown error
> at java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method)
> at java.net.InetAddress$2.lookupAllHostAddr(InetAddress.java:928)
> at 
> java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1323)
> at java.net.InetAddress.getAllByName0(InetAddress.java:1276)
> at java.net.InetAddress.getAllByName(InetAddress.java:1192)
> at java.net.InetAddress.getAllByName(InetAddress.java:1126)
> at java.net.InetAddress.getByName(InetAddress.java:1076)
> at 
> hudson.os.windows.ManagedWindowsServiceLauncher.launch(ManagedWindowsServiceLauncher.java:190)
> at hudson.slaves.SlaveComputer$1.call(SlaveComputer.java:253)
> at 
> jenkins.util.ContextResettingExecutorService$2.call(ContextResettingExecutorService.java:46)
> at