Re: how to pull latest source code when build module only

2016-08-30 Thread 严细浪
When build module,  jenkins doesn't execute any configured commands, 

On Tuesday, August 30, 2016 at 5:59:29 PM UTC+8, maciej wrote:
>
> 严细浪 (2016-08-23 08:16):
>
> I am using Jenkins to build a multi module maven project, in Jenkins i can 
> trigger to build a maven module, however when build module, Jenkins will not 
> pull latest source code, source code only pulled when whole project is built. 
> how to make Jenkins pull source code when build module?
>
>
> You could just run `svn update ./svn-checkut-path/my/module/path`. Don't 
> think it's possible with git though. With git you would probably need 
> separate repos.
>
> Regards,
> Nux.
>

-- 
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/accfaa48-4271-403c-87cb-a820228d61c7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[ANN] - Demos at Jenkins World

2016-08-30 Thread Alyssa Tong
Hello,

The events team is organizing a series of short demos to be done in the
Open Source Hub at Jenkins World
. The demos will be delivered
by contributors and JAM leaders
 who are
attending Jenkins World. As many of us do not know each, the demos aim to
act as an ice breaker, connecting and helping each other via our common
interest, Jenkins.  Details to the demos and schedule can be seen HERE
.

Looking forward to meeting you at the hub.

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


Re: Plugin Updates mirror - build-pipeline-plugin Permissions issue - can no longer view folder?

2016-08-30 Thread Daniel Beck

> On 30.08.2016, at 23:28, Chris M  wrote:
> 
> Thanks for the followup, good to know i'm not crazy.

Fixed for now. Filed the bug as https://issues.jenkins-ci.org/browse/INFRA-908

-- 
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/4CD592E7-030D-4140-8FF4-5F8328B7CDEA%40beckweb.net.
For more options, visit https://groups.google.com/d/optout.


Re: Do not delete a completed job workspace under all conditions

2016-08-30 Thread Martin d'Anjou
On Thursday, August 25, 2016 at 11:15:43 AM UTC-4, Robert Beddow wrote:

> Is there anything like this out there? Or does anyone have any suggestions 
> of how else I could get the functionality I'm looking for?
>
 
Yes, you can try the External Workspace Manager Plugin 

.

-- 
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/72b3e301-85d1-4a8d-bc5e-f8a2ea67c62f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Not able to see Jenkin's execution in local desktop

2016-08-30 Thread Slide
It's a "feature" of Windows 10 that you can't see the interaction of a
windows service on the desktop, it has nothing to do with Jenkins itself.

On Tue, Aug 30, 2016 at 2:33 PM A.K  wrote:

> So is it the feature of Jenkins that the execution is not visible in
> Windows 10 OS? Is it also applicable for windows slave machine? If it is
> one of the Jenkins' feature, can you please share any link / documentation
> to check for the same.
>
>
> On Wednesday, August 31, 2016 at 2:53:10 AM UTC+5:30, slide wrote:
>
>> I don't think this is possible anymore after Windows Vista.
>>
>> On Tue, Aug 30, 2016 at 2:09 PM A.K  wrote:
>>
> Currently I am using Jenkins version 2.7.1 in Windows 10 desktop. When I
>>> am building any project, I am not able to see any execution happening in my
>>> desktop. I searched for this and tried the following option but it didn't
>>> work for me. Please suggest how can I resolve this issue.
>>>
>>>
>>> *Steps followed:*
>>>
>>>1. Go to Windows Service.
>>>2. Right click on Jenkins service and click Properties option.
>>>3. Select Logon tab and check "*Allow service to interact with
>>>desktop*" option.
>>>
>>>
>>> --
>>> 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/2a213492-8385-4d87-8ee6-7ff3c668218a%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/3a07f09d-cf7c-43c7-92f2-8076a63464b2%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/CAPiUgVdXhJ9fgmiZGrrchzg7V%3DuadkfL8%2BkO624KPH3p6f%3DbQA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Not able to see Jenkin's execution in local desktop

2016-08-30 Thread A.K
So is it the feature of Jenkins that the execution is not visible in 
Windows 10 OS? Is it also applicable for windows slave machine? If it is 
one of the Jenkins' feature, can you please share any link / documentation 
to check for the same.

On Wednesday, August 31, 2016 at 2:53:10 AM UTC+5:30, slide wrote:
>
> I don't think this is possible anymore after Windows Vista. 
>
> On Tue, Aug 30, 2016 at 2:09 PM A.K  
> wrote:
>
>> Currently I am using Jenkins version 2.7.1 in Windows 10 desktop. When I 
>> am building any project, I am not able to see any execution happening in my 
>> desktop. I searched for this and tried the following option but it didn't 
>> work for me. Please suggest how can I resolve this issue.
>>
>>
>> *Steps followed:*
>>
>>1. Go to Windows Service.
>>2. Right click on Jenkins service and click Properties option.
>>3. Select Logon tab and check "*Allow service to interact with 
>>desktop*" option.
>>
>>
>> -- 
>> 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/2a213492-8385-4d87-8ee6-7ff3c668218a%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/3a07f09d-cf7c-43c7-92f2-8076a63464b2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Plugin Updates mirror - build-pipeline-plugin Permissions issue - can no longer view folder?

2016-08-30 Thread Chris M
Thanks for the followup, good to know i'm not crazy.

-Chris

On Tuesday, August 30, 2016 at 5:00:04 PM UTC-4, Daniel Beck wrote:
>
> This was the first response I sent, unfortunately it was stuck in 
> moderation. 
>
> I merged the PR I filed against the update site generator, let's see what 
> it looks like in a few hours. 
>
> > On 30.08.2016, at 17:29, Daniel Beck  
> wrote: 
> > 
> > Interesting. Looks like a robustness issue in the update center 
> generator. 
> > 
> > Build Pipeline (and two others) have incomplete deployments, resulting 
> in warnings during update site generation -- and all three of them are not 
> listed in that folder. 
> > 
> > I'll file this bug to be fixed in general, and will blacklist the known 
> broken releases to get these files added back ASAP. 
> > 
> >> On 30.08.2016, at 16:52, Chris M  
> wrote: 
> >> 
> >> http://updates.jenkins-ci.org/download/plugins/   
> >> 
> >> lists all plugins that I spot check; and used to list 
> build-pipeline-plugin. 
> >> 
> >> Now, 
> >> 
> >> http://updates.jenkins-ci.org/download/plugins/build-pipeline-plugin/ 
> >> 
> >> 
> >> fails to resolve even though direct link from the manifest still works. 
> >> 
> >> 
> http://updates.jenkins-ci.org/download/plugins/build-pipeline-plugin/1.5.4/build-pipeline-plugin.hpi
>  
> >> 
> >> 
> >> 
> >> Is there a permissions issue on the folder now? 
> >> 
> >> 
> >> -- 
> >> 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/9814511e-a775-4a1b-9e72-f2bdec5bdd31%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-use...@googlegroups.com . 
> > To view this discussion on the web visit 
> https://groups.google.com/d/msgid/jenkinsci-users/5511B9E4-F5FB-44CF-AC71-EAE79B89EF84%40beckweb.net.
>  
>
> > 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/5e2b4f07-c8e3-4a66-8857-b15f838c31ec%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Not able to see Jenkin's execution in local desktop

2016-08-30 Thread Slide
I don't think this is possible anymore after Windows Vista.

On Tue, Aug 30, 2016 at 2:09 PM A.K  wrote:

> Currently I am using Jenkins version 2.7.1 in Windows 10 desktop. When I
> am building any project, I am not able to see any execution happening in my
> desktop. I searched for this and tried the following option but it didn't
> work for me. Please suggest how can I resolve this issue.
>
>
> *Steps followed:*
>
>1. Go to Windows Service.
>2. Right click on Jenkins service and click Properties option.
>3. Select Logon tab and check "*Allow service to interact with desktop*"
>option.
>
>
> --
> 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/2a213492-8385-4d87-8ee6-7ff3c668218a%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/CAPiUgVecL0Rn1Cc6tJhHhSarhcFxg3gR%3D19CbwiPN6oOJ8Z59w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Loaded Classes Count grows over time: crashes Jenkins with Perm Gen

2016-08-30 Thread Alexander Gray II
Thank you so much for this info.
I ended up upgrading my JDK from 7 to 8.
I also added: -Dgroovy.use.classvalue=true
JENKINS_JAVA_OPTIONS="-Djava.awt.headless=true
*-Dgroovy.use.classvalue=true* -Xms4096m -Xmx4096m -XX:MaxPermSize=1024m
-XX:+CMSClassUnloadingEnabled -XX:+UseConcMarkSweepGC
-Dhudson.model.ParametersAction.keepUndefinedParameters=true"
Which seemed to do the trick!
Now my classes count does not increase at all, and my permgen space is only
around 100MB and it hasn't moved.


I also updated this ticket to say that by adding that command line arg,
everything seems to work now:
https://issues.jenkins-ci.org/browse/JENKINS-33358

Thanks!!!

On Sat, Aug 27, 2016 at 5:11 PM, Baptiste Mathus  wrote:

> This is definitely not normal. You should take a heap dump and use typical
> tools for analyzing such dumps in Java. Eclipse MAT is one of them,
> developed [originally?] by SAP IIRC, but there are many others.
>
> Also, I would definitely advise you to switch over to a JDK8, which hasn't
> permgen anymore. This is the JDK version we generally recommend. Note that
> the version of JDK used to run Jenkins can indeed be different than the
> one(s) used for your builds.
>
> Cheers
>
> 2016-08-27 18:28 GMT+02:00 grayaii :
>
>> We went from Jenkins 1.651.1 to 2.7.2 and our Jenkins master kept on
>> crashing with:
>> java.lang.OutOfMemoryError: PermGen space
>>
>> Where were not specifying -XX:MaxPermSize in our JENKINS_JAVA_OPTIONS
>> before, so I added it, and kept on increasing the value after every crash.
>> We are now at 512m:
>>
>> JENKINS_JAVA_OPTIONS="-Djava.awt.headless=true -Xms3584m -Xmx3584m
>> -XX:MaxPermSize=512m -Dhudson.model.ParametersActio
>> n.keepUndefinedParameters=true"
>>
>> Using the Jenkins Monitoring plugin, we see that the Loaded Classes Count
>> keeps growing without stopping:
>>
>>
>> 
>> How do you debug this?
>> Something must be loading classes continuously.
>>
>>
>> Any ideas how we can debug 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/ms
>> gid/jenkinsci-users/025b4d0c-ce5a-4163-8447-6be523629cab%
>> 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/q7M2GJwArJ8/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/CANWgJS53VN_6FnLJ%2BQ58jzte1g2Zw00V1pCcH%
> 3D4xxiSe-SiHNA%40mail.gmail.com
> 
> .
>
> For more options, visit https://groups.google.com/d/optout.
>



-- 
-Alex-

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


Not able to see Jenkin's execution in local desktop

2016-08-30 Thread A.K
Currently I am using Jenkins version 2.7.1 in Windows 10 desktop. When I am 
building any project, I am not able to see any execution happening in my 
desktop. I searched for this and tried the following option but it didn't 
work for me. Please suggest how can I resolve this issue.


*Steps followed:*
   
   1. Go to Windows Service.
   2. Right click on Jenkins service and click Properties option.
   3. Select Logon tab and check "*Allow service to interact with desktop*" 
   option.
   

-- 
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/2a213492-8385-4d87-8ee6-7ff3c668218a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: build-environment-plugin does not appear to display on pipeline jobs

2016-08-30 Thread Daniel Beck
I've found it's a good practice to just run 'env' (or 'set' on Windows) in any 
shell steps whose environment I care about. Helps with weird machine-local 
/etc/profile and similar files as well, overriding what they should not be.

> On 30.08.2016, at 23:00, Wayne Warren  wrote:
> 
> Does anyone know how to view the build environment for a pipeline job? Is 
> this built in to the pipeline job somehow and therefore needs no support from 
> build-environment-plugin? I'd be happy to submit JIRA ticket for this and 
> submit a patch if the fix isn't too time-consuming.
> 
> It's pretty annoying that all I want to do is look at what environment 
> variables are available for a particular build of the pipeline job and can't 
> see 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/2a1459ac-d5fb-4d89-9ac9-5d39f78392aa%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/8EBD7CB0-F851-4C2F-BA3D-F62F2D05B7E0%40beckweb.net.
For more options, visit https://groups.google.com/d/optout.


build-environment-plugin does not appear to display on pipeline jobs

2016-08-30 Thread Wayne Warren
Does anyone know how to view the build environment for a pipeline job? Is 
this built in to the pipeline job somehow and therefore needs no support 
from build-environment-plugin? I'd be happy to submit JIRA ticket for this 
and submit a patch if the fix isn't too time-consuming.

It's pretty annoying that all I want to do is look at what environment 
variables are available for a particular build of the pipeline job and 
can't see 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/2a1459ac-d5fb-4d89-9ac9-5d39f78392aa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Plugin Updates mirror - build-pipeline-plugin Permissions issue - can no longer view folder?

2016-08-30 Thread Daniel Beck
This was the first response I sent, unfortunately it was stuck in moderation.

I merged the PR I filed against the update site generator, let's see what it 
looks like in a few hours.

> On 30.08.2016, at 17:29, Daniel Beck  wrote:
> 
> Interesting. Looks like a robustness issue in the update center generator.
> 
> Build Pipeline (and two others) have incomplete deployments, resulting in 
> warnings during update site generation -- and all three of them are not 
> listed in that folder.
> 
> I'll file this bug to be fixed in general, and will blacklist the known 
> broken releases to get these files added back ASAP.
> 
>> On 30.08.2016, at 16:52, Chris M  wrote:
>> 
>> http://updates.jenkins-ci.org/download/plugins/  
>> 
>> lists all plugins that I spot check; and used to list build-pipeline-plugin.
>> 
>> Now, 
>> 
>> http://updates.jenkins-ci.org/download/plugins/build-pipeline-plugin/
>> 
>> 
>> fails to resolve even though direct link from the manifest still works. 
>> 
>> http://updates.jenkins-ci.org/download/plugins/build-pipeline-plugin/1.5.4/build-pipeline-plugin.hpi
>> 
>> 
>> 
>> Is there a permissions issue on the folder now?
>> 
>> 
>> -- 
>> 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/9814511e-a775-4a1b-9e72-f2bdec5bdd31%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/5511B9E4-F5FB-44CF-AC71-EAE79B89EF84%40beckweb.net.
> 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/654352E9-CB4A-4E6D-A586-98EC17D17897%40beckweb.net.
For more options, visit https://groups.google.com/d/optout.


Re: Windows slave

2016-08-30 Thread Baptiste Mathus
Are you in a corporate environment? Are you sure the windows machine can
actually access the master?
You could use telnet on that Windows agent to see if you manage at least to
reach the fixed jnlp port you've set on the master.

Cheers

Le 24 août 2016 4:37 PM, "Timmy Vercruysse"  a
écrit :

> Dear,
>
> i'm trying to add a windows slave to a Linux server but i always get the
> following error :
> the server rejected the connection: none of the protocols were accepted.
>
> On the linux server i already added a linux build server(through ssh)
> without a problem.
> When i try to add a Windows server through jnlp it doesn't work, when i
> try to add the windows machine to another windows Jenkins server it works
> fine.
>
> I've already searched google like crazy and found the following thinks.
> - disable firewall on the server
> - disable firewall on the client.
> - set security through on a static port.
>
> But the problems remains the same.
> I can't find an logs, there is no other error, and on the disk the logging
> folder of this node remains empty.
>
> Does anybody has any idea what to do? Look for?
>
> --
> 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/66d02887-5a39-4445-835a-ab670d7d1357%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/CANWgJS4Fo5A4vLi6gQ3R49brdbP6AQ-2B1CcS71f%3DVd-vMDDsg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: What is a permanent agent or slave server when discussing Jenkins?

2016-08-30 Thread Baptiste Mathus
Again, you're welcome to try and push forward that initiative if you think
it's important.

2016-08-27 20:10 GMT+02:00 Kiran :

> The CM tools have terms for servers that receive changes.  I don't see why
> a CI tool would not have one.  Apparently the Jenkins community is mature
> and has gotten this far with no term.  To me, a term would really make
> things easier.
>
> On Thursday, August 18, 2016 at 6:52:23 PM UTC-4, Kiran wrote:
>>
>> In the context of Jenkins, is a slave server one that receives a build?
>> Or is it an auxiliary server that offloads some of the computing demand for
>> resources of a distributed build?
>>
>> With Jenkins 2.x, the term is "permanent agent."  I want to know
>> precisely what to call a server that receives a Jenkins build/deployment.
>> If a file receives code or a file from Jenkins, what is the server called?
>> Is it a managed node?  Is there no term for 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/1dbd9e8f-caff-4eb4-a8ba-c9bb81ba96a5%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/CANWgJS501qLax_%3DtGBXZEVKr-YyhA9_315XJwGcM15J1VtrtqA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to find who's the master of a given slave?

2016-08-30 Thread Baptiste Mathus
Hi,

What are you trying to achieve?

Cheers

2016-08-26 17:08 GMT+02:00 Tamir Gefen :

> Hello,
> Assuming I have access to a given slave node, what would be the most
> efficient way to find out its master? Is that info is located in some
> configuration file? Something else?
>
> Thank you
>
> --
> 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/bb8e5310-1c88-42ef-8f0d-1860f5c00781%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/CANWgJS5z7bpkvQPxXv0Q%2BNjbeQEm3baq6HiDt9tA%3D2owE0_VFA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Plugin Updates mirror - build-pipeline-plugin Permissions issue - can no longer view folder?

2016-08-30 Thread Daniel Beck
Interesting. Looks like a robustness issue in the update center generator.

Build Pipeline (and two others) have incomplete deployments, resulting in 
warnings during update site generation -- and all three of them are not listed 
in that folder.

I'll file this bug to be fixed in general, and will blacklist the known broken 
releases to get these files added back ASAP.

> On 30.08.2016, at 16:52, Chris M  wrote:
> 
> http://updates.jenkins-ci.org/download/plugins/  
> 
> lists all plugins that I spot check; and used to list build-pipeline-plugin.
> 
> Now, 
> 
> http://updates.jenkins-ci.org/download/plugins/build-pipeline-plugin/
> 
> 
> fails to resolve even though direct link from the manifest still works. 
> 
> http://updates.jenkins-ci.org/download/plugins/build-pipeline-plugin/1.5.4/build-pipeline-plugin.hpi
> 
> 
> 
> Is there a permissions issue on the folder now?
> 
> 
> -- 
> 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/9814511e-a775-4a1b-9e72-f2bdec5bdd31%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/5511B9E4-F5FB-44CF-AC71-EAE79B89EF84%40beckweb.net.
For more options, visit https://groups.google.com/d/optout.


Re: Loaded Classes Count grows over time: crashes Jenkins with Perm Gen

2016-08-30 Thread Baptiste Mathus
This is definitely not normal. You should take a heap dump and use typical
tools for analyzing such dumps in Java. Eclipse MAT is one of them,
developed [originally?] by SAP IIRC, but there are many others.

Also, I would definitely advise you to switch over to a JDK8, which hasn't
permgen anymore. This is the JDK version we generally recommend. Note that
the version of JDK used to run Jenkins can indeed be different than the
one(s) used for your builds.

Cheers

2016-08-27 18:28 GMT+02:00 grayaii :

> We went from Jenkins 1.651.1 to 2.7.2 and our Jenkins master kept on
> crashing with:
> java.lang.OutOfMemoryError: PermGen space
>
> Where were not specifying -XX:MaxPermSize in our JENKINS_JAVA_OPTIONS
> before, so I added it, and kept on increasing the value after every crash.
> We are now at 512m:
>
> JENKINS_JAVA_OPTIONS="-Djava.awt.headless=true -Xms3584m -Xmx3584m
> -XX:MaxPermSize=512m -Dhudson.model.ParametersAction.
> keepUndefinedParameters=true"
>
> Using the Jenkins Monitoring plugin, we see that the Loaded Classes Count
> keeps growing without stopping:
>
>
> 
> How do you debug this?
> Something must be loading classes continuously.
>
>
> Any ideas how we can debug 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/025b4d0c-ce5a-4163-8447-6be523629cab%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/CANWgJS53VN_6FnLJ%2BQ58jzte1g2Zw00V1pCcH%3D4xxiSe-SiHNA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Windows slave on Linux server

2016-08-30 Thread Baptiste Mathus
Please don't repost. Simply use Google groups archive to see if your
message went through.

Le 24 août 2016 10:14 PM, "Timmy Vercruysse"  a
écrit :

> Dear,
>
> i'm using a Jenkins server(from Bitnami). When i try to configure a slave
> it works fine for Linux(true SSH).
> But when i try to add a Windows slave it doesn't work(Launch agent via
> Java Web Start).
> i always the the error The server rejected : none of the protocols were
> accepted(see attached screenshot).
>
> When i connect the windows client to another windows Jenkins server it
> works fine, connect to another Linux Jenkins server doesn't work.
>
> I've already checked :
> - disabled firewall on the windows & linux server.
> - changed security to static port.
> - Installed Java 64-bit & 32-bit on the pc.
>
>
>
> does anybody have any idea's.
>
> --
> 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/4b50ec2f-65ea-4193-9159-67e0a1fae663%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/CANWgJS7XjQ%2BZxgB4mxmNfRg8%3DfU%2BcKmpEmmVrbnQGC3woD_AVQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: How can I set jnlp port from command line?

2016-08-30 Thread Baptiste Mathus
Why wouldn't it work using Ansible?

Granted, as-is it wouldn't be idempotent, but did you try using the shell
module for example?

2016-08-26 13:09 GMT+02:00 user_dev :

> I am trying to run some jenkins scripts through command line. But it
> requires me to set jnlp port. How do I set it from command line ?
>
> This question shows a way through curl but it does not work inside ansible
> command https://groups.google.com/forum/#!searchin/
> jenkinsci-users/set$20jnlp$20port$20via$20command$20line|
> sort:relevance/jenkinsci-users/xQhwgYySRV4/PREXjuR-LBwJ
>
> --
> 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/12217abc-25ba-441b-8610-148f9dfc760d%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/CANWgJS6mkxcg3%3DBvqcTdK3phz8wLgusYDAFFd68KgH9U6ZTP%3Dw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Loaded Classes Count grows over time: crashes Jenkins with Perm Gen

2016-08-30 Thread Baptiste Mathus
Correction: for the perm gen, this is not exactly a heap dump, by
definition. IIRC, MAT or the likes should still be helpful.

What you want to identify is the class FQN and so on that are the most
present. Possibly, that'd help identiying which plugin or something is
responsible for that leak.


2016-08-27 23:11 GMT+02:00 Baptiste Mathus :

> This is definitely not normal. You should take a heap dump and use typical
> tools for analyzing such dumps in Java. Eclipse MAT is one of them,
> developed [originally?] by SAP IIRC, but there are many others.
>
> Also, I would definitely advise you to switch over to a JDK8, which hasn't
> permgen anymore. This is the JDK version we generally recommend. Note that
> the version of JDK used to run Jenkins can indeed be different than the
> one(s) used for your builds.
>
> Cheers
>
> 2016-08-27 18:28 GMT+02:00 grayaii :
>
>> We went from Jenkins 1.651.1 to 2.7.2 and our Jenkins master kept on
>> crashing with:
>> java.lang.OutOfMemoryError: PermGen space
>>
>> Where were not specifying -XX:MaxPermSize in our JENKINS_JAVA_OPTIONS
>> before, so I added it, and kept on increasing the value after every crash.
>> We are now at 512m:
>>
>> JENKINS_JAVA_OPTIONS="-Djava.awt.headless=true -Xms3584m -Xmx3584m
>> -XX:MaxPermSize=512m -Dhudson.model.ParametersActio
>> n.keepUndefinedParameters=true"
>>
>> Using the Jenkins Monitoring plugin, we see that the Loaded Classes Count
>> keeps growing without stopping:
>>
>>
>> 
>> How do you debug this?
>> Something must be loading classes continuously.
>>
>>
>> Any ideas how we can debug 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/ms
>> gid/jenkinsci-users/025b4d0c-ce5a-4163-8447-6be523629cab%
>> 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/CANWgJS7fBd_QZMuDc_MUkiZ9iibbCYj5Mjvaaf5_07h31kw%3DrA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: How can I host a private Jeinkins Plugin Repo

2016-08-30 Thread Baptiste Mathus
https://jenkins.io/blog/2015/07/14/juseppe-a-custom-update-site-for-jenkins/

2016-08-29 18:28 GMT+02:00 :

> For reasons I won't go into here,  I'd like to be able to host my own
> Jenkins Plugin repo and then configure my Jenkins server to use it. I have
> not been able to find any information on how to do this.  Any help 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/6d7f82d6-cf4a-4c14-b20e-b24820f99e13%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/CANWgJS5Zmw9TWRSzHkr7nHk4v2-vQkigzgSb1UX71HnxyONmQg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: NullPointerExceptions after adding TimerTrigger via groovy script.

2016-08-30 Thread Baptiste Mathus
Hello,

There's a bunch of examples there:
https://wiki.jenkins-ci.org/display/JENKINS/Jenkins+Script+Console (see the
end of the page).

Cheers

2016-08-29 15:12 GMT+02:00 kumar naresh :

>
> HI Colin,
>
> this groovy is updating/adding build perodic section in build triggers
> section.
>
> can you please share the script to update poll scm section in build triger
> section via groovy script.
>
> Regards,
> Raju.
>
>
> On Wednesday, October 29, 2014 at 2:27:47 PM UTC+5:30, Colin McIntyre
> wrote:
>>
>> Old post, I know, but I just came across this issue so thought I'd add my
>>> findings.  https://issues.jenkins-ci.org/browse/JENKINS-14771 looks to
>>> be the same issue, the reason for the NPE is that while you've added the
>>> trigger to the job you haven't told the trigger about the job.  To work
>>> around it I used this code:
>>>
>>
>> def job = hudson.model.Hudson.instance.getJob("My Job");
>> def spec = "0 0 1 * *";
>> hudson.triggers.TimerTrigger newCron = new hudson.triggers.TimerTrigger(s
>> pec);
>> newCron.start(job, true);
>> job.addTrigger(newCron);
>> job.save();
>>
>> It's the call to TimerTrigger.start that sorted it for me.
>>
>>
>> --
> 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/8e179ac5-a7ea-44ae-b0b8-3fef0fda9ec6%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/CANWgJS518n5unGQSkp_f6g4ASNNFQMzwyVHq58njB5PDvHFJGA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins Pipeline Issue

2016-08-30 Thread Baptiste Mathus
What do indexing logs say?

Did you actually write Jenkinsfile or JenkinsFile as in your mail. If the
latter, then it's normal, it should be Jenkinsfile.

Cheers

Le 23 août 2016 8:52 PM, "vishad alekh"  a écrit :

> Thanks for the reply Mathus.
>
>
> I have uploaded the JenkinsFile in the repo (GIT) . After running the job
> i am still not getting the desired result . No job is getting created for
> new branch .
>
> The job is just prunning stale remotes and getting remote branches . After 
> that its showing success.
>
> Can someone please assist with this.
>
>
> Thanks and Regards
> Vishad Alekh
>
>
>
> On Tuesday, August 23, 2016 at 5:16:55 AM UTC+5:30, Baptiste Mathus wrote:
>>
>> You want to have a look at the Pipeline Multibranch Plugin.
>>
>> Define a Jenkinsfile in the repo with your build logic. Then each time
>> you create a new branch it will be indexed and built if such a Jenkinsfile
>> can be found.
>>
>> Cheers
>>
>> Le 22 août 2016 11:40 PM, "vishad alekh"  a écrit :
>>
>>> Hi All,
>>>
>>> I am using jenkins version 2.11 . I want to use jenkins pipeline plugin
>>> feature. We have branches in GIT which are release specific. I want that if
>>> a new branch is created in GIT, then automatically a job should be created
>>> in jenkins which atleast can do a code checkout .
>>> Please guide me for the same.
>>>
>>>
>>> Thanks and Regards
>>> Vishad
>>>
>>> --
>>> 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/ms
>>> gid/jenkinsci-users/4ed460a3-de32-43c3-b704-07371c165f72%
>>> 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/6b2498af-c2fa-4f6c-958d-adc15b217de6%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/CANWgJS41khUypXiXsS27fRipMZ0OjgWFJk%2BBW326h8HGaYtcDQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Do not delete a completed job workspace under all conditions

2016-08-30 Thread Baptiste Mathus
You should treat the workspace filesystem as an internal thing for Jenkins
IMO.

Archiving artefact is one feature to express the things you wanna keep.

If you want to keep a directory structure for later reuse, maybe you could
either zip it and archive it. Or push it somewhere else at the end of your
build?

Le 25 août 2016 5:15 PM, "Robert Beddow"  a écrit :

> Hi,
>
> I'm trying to find a way to keep a workspace and prevent it from being
> deleted by Jenkins.
>
> If I have a project called My_Jenkins_Job, and I run it multiple times
> concurrently, I end up with directories in the form:
>
> ./jenkins/workspace/My_Jenkins_Job
> ./jenkins/workspace/My_Jenkins_Job@2
> ./jenkins/workspace/My_Jenkins_Job@3
> ./jenkins/workspace/My_Jenkins_Job@4
>
> If I later run My_Jenkins_Job again, and some of the above are finished,
> the lowest value workspace is removed and the new job runs under the same
> directory path.
>
> e.g.
> Running: ./jenkins/workspace/My_Jenkins_Job
> Finished: ./jenkins/workspace/My_Jenkins_Job@2
> Finished: ./jenkins/workspace/My_Jenkins_Job@3
> Running: ./jenkins/workspace/My_Jenkins_Job@4
>
> I start a new My_Jenkins_Job, ./jenkins/workspace/My_Jenkins_Job@2 is
> deleted, then the new job will run under a new ./jenkins/workspace/My_
> Jenkins_Job@2.
>
> My request is to find out how to occasionally force jenkins to skip a
> finished directory because I want to keep it.
>
> So:
> Running: ./jenkins/workspace/My_Jenkins_Job
> Finished & keep: ./jenkins/workspace/My_Jenkins_Job@2
> Finished: ./jenkins/workspace/My_Jenkins_Job@3
> Running: ./jenkins/workspace/My_Jenkins_Job@4
>
> and I start a new My_Jenkins_Job, ./jenkins/workspace/My_Jenkins_Job@2 is
> skipped, ./jenkins/workspace/My_Jenkins_Job@3 is deleted, then the new
> job will run under a new ./jenkins/workspace/My_Jenkins_Job@3.
>
> The options I've seen/thought of are:
> Custom Workspace - set a custom workspace for each run. This isn't what I
> need, as normally I want standard behaviour, i.e. cycle through the
> workspaces replacing them as they finish. Also, I may decide to keep a
> workspace after the build has started.
>
> Archive workspace - some of the paths in the job are absolute. I believe
> that archiving the workspace will move it to another parent directory,
> which would break all the full paths. Also, this could only be enabled up
> front
>
> Force the job to keep "building" even when it is finished. This doesn't
> work if jenkins is restarted, and again it can only be enabled up front.
>
> The only solution that I can think of is to "touch" a file within the
> workspace e.g.:
> ./jenkins/workspace/My_Jenkins_Job@2/.jenkins_keepme
> And jenkins treats that workspace directory as if it is still building.
> This way I can manually choose to add the file at any time. Also it works
> if jenkins is restarted.
>
> Is there anything like this out there? Or does anyone have any suggestions
> of how else I could get the functionality I'm looking for?
>
> Thanks,
> Robert
>
>
> --
> 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/4ac7d92f-feb3-48b2-bb7b-b88314748b16%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/CANWgJS62wriw_xhZiARDyG-9RRz5Ukv0RwXWWRupvPNYNL6Ohg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Archive multiple artifacts with same name

2016-08-30 Thread David Karlsen
I see the archive DSL have less options (fingerprint) than the
wrapper-based version - should they become aligned?

2016-08-29 9:14 GMT+02:00 Sverre Moe :

> That worked.
>
> I removed
> step([$class: 'ArtifactArchiver', artifacts: '*.rpm', excludes: null,
> fingerprint: true, onlyIfSuccessful: true])
> from Build stage.
>
> Added
> archive '**'
> to the Publish stage.
>
> Build Artifacts now list up same named RPMs under a directory for each
> build slave.
> sles11-x86_64/package-1.1.1-x86_64.rpm
> sles12-x86_64/package-1.1.1-x86_64.rpm
> centos7-x86_64/package-1.1.1-x86_64.rpm
>
>
> fredag 26. august 2016 19.55.01 UTC+2 skrev Michael Lasevich følgende:
>>
>> Have you considered creating a temp subdirectory with identity of your OS
>> (can be generated automatically) and then moving your artifacts to that
>> directory and archiving the directory? You end up with artifacts with same
>> names in different directories - easy to browse and link to, and does what
>> you want.
>>
>> Something like this(untested):
>>
>> temp="to_archive"
>> sh """
>>   dir="${temp}/\$(lsb_release -si)-\$(lsb_release -sr)-\$(uname -m)"
>>   mkdir -p "\${dir}"
>>   cp *.rpm "${dir}"
>> """
>> dir(temp){ archive '**' }
>>
>>
>> -M
>>
>> On Monday, June 13, 2016 at 1:14:39 AM UTC-7, Sverre Moe wrote:
>>>
>>> As I am building on multiple slave nodes I get RPM artifacts from each
>>> node. Building on 4 64bit Linux OS, I will get 4 distinct artifacts with
>>> the same name. Using ArtifactArchiver will only archive one of those
>>> distinct archives and overwrite the previous archived artifact. Considering
>>> since each OS may have different versions of libraries one single artifact
>>> may not work on all the OS.
>>>
>>> Is there a way around this problem that will allow me to archive 4
>>> artifacts with same name?
>>> I am using Jenkins Pipeline and performing the following step
>>> step([$class: 'ArtifactArchiver', artifacts: '*.rpm', excludes: null,
>>> fingerprint: true, onlyIfSuccessful: true])
>>>
>>> When I was previously using Multi-configuration builds, this was not a
>>> problem since each configuration would show their own artifacts.
>>>
>> --
> 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/f88d3af3-d8de-47ff-a09c-7ef165dec3a7%40googlegroups.
> com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
--
David J. M. Karlsen - http://www.linkedin.com/in/davidkarlsen

-- 
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/CAGO7Ob0a3BaOsO_1w006-Jb_7bAeF%2Bzgx3QkzOeszasaVDK9zw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins 2.0 requirements

2016-08-30 Thread Daniel Beck

> On 30.08.2016, at 18:14, Ashish Yadav  wrote:
> 
> How can I confirm if I meet the above requirements? I am currently running 
> Jenkins LTS v1.642.3 on CentOS v7. It’s the ‘standard’ installation of 
> Jenkins from the yum repository. How do I know if I am running Servlet 3.1 or 
> Winstone-Jetty?

Jenkins ships with Winstone-Jetty, so that won't be a problem. Some people run 
Jenkins in Tomcat, Websphere, etc., where they need to consider this.

Regarding the second item, check the service configuration file for mentions of 
'AJP'. Disable any options you find.

-- 
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/13B8CE1A-34D7-4804-9094-E8F7D64C066D%40beckweb.net.
For more options, visit https://groups.google.com/d/optout.


New Pipeline plugin: Pipeline Model Definition

2016-08-30 Thread Andrew Bayer
Hey all -

I've released a first preliminary version (0.1) of a new plugin, Pipeline:
Model Definition. It's intended to provide a more config-like/declarative
way to define Pipelines, with features like better syntactic/semantic error
messages, an easy way to specify notifications or post-build actions to run
regardless of build status, and more.

It's still very early on - this is basically an MVP, so I wouldn't
recommend using it in production yet, but I intend to keep backwards
compatibility working as we go forward. You can find the repo at
https://github.com/jenkinsci/pipeline-model-definition-plugin, with early
docs at https://github.com/jenkinsci/pipeline-model-definition-plugin/wiki
and a spec for the model syntax at
https://github.com/jenkinsci/pipeline-model-definition-plugin/blob/master/SYNTAX.md
-
I'd love feedback! Thanks!

A.

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


Jenkins 2.0 requirements

2016-08-30 Thread Ashish Yadav
As per https://jenkins.io/2.0/,

> Jenkins 2 now requires Servlet 3.1 to run. If you're not using the embedded 
> Winstone-Jetty, make sure your container supports Servlet 3.1 (e.g. Tomcat 8) 
> before upgrading.
> Jenkins 2 no longer supports AJP with the embedded Winstone-Jetty container, 
> so if you're using Jenkins with a reverse proxy, please make sure it uses 
> HTTP before upgrading.

How can I confirm if I meet the above requirements? I am currently running 
Jenkins LTS v1.642.3 on CentOS v7. It's the 'standard' installation of Jenkins 
from the yum repository. How do I know if I am running Servlet 3.1 or 
Winstone-Jetty?

-- 
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/D3EB1B08.22D71%25ashish.yadav%40firemon.com.
For more options, visit https://groups.google.com/d/optout.


Re: Automated Jenkins Plugin/Dependency Management

2016-08-30 Thread Michael Kobit
My fault explaining that

I know that I can extract it using the *jar* command, but I don't get the 
same "unzipped" output as running *java -jar jenkins.war*.

It looks like this happens because of some magic 
in https://github.com/jenkinsci/extras-executable-war that handles the 
unpacking and bootstrapping.

I'm wondering, is there a similar way to unpack the *jenkins.war* without 
actually running the service, so that I can then programmatically configure 
the JENKINS_HOME.

This might be the wrong approach or the totally wrong idea. I was probably 
going to move in the same direction that you said with using the 
https://github.com/jenkinsci/gradle-jpi-plugin to handle plugin dependency 
resolution, but plugins are not the only thing I want to configure. The 
Groovy init.d type scripts work, but it requires Jenkins to hit a certain 
lifecycle stage to run.

Jenkins just doesn't seem to lend itself well to configuration as code, but 
maybe I'm missing something. 

On Saturday, August 27, 2016 at 12:43:51 PM UTC-5, Jason Kulatunga wrote:
>
> Yep, the command is `jar xvf jenkins.war`, that will explode the war into 
> the current directory. 
>
> On Friday, August 26, 2016 at 12:27:00 PM UTC-7, Michael Kobit wrote:
>>
>> Is there a way to basically "unzip" the *jenkins.war* so that the 
>> plugins, workflow-libs, and other parts can be configured before actually 
>> running the service?
>>
>> On Wednesday, August 17, 2016 at 9:36:08 AM UTC-5, Jason Kulatunga wrote:
>>>
>>> Hey,
>>> Thanks for all the help guys.
>>> I slept on this idea for a few days because, to be honest I really 
>>> didn't want to write my own package manager 
>>> 
>>>  and 
>>> re-invent the wheel. I took a step back and looked at how Jenkins solved 
>>> this problem for Plugin developers, and I think that we could just 
>>> piggy-back on top of what they use 
>>> .
>>>
>>> Basically what I've done is specify the plugins I want to install in a 
>>> build.gradle file on my Jenkins server. The build.gradle file lets me 
>>> specify exactly what versions of the plugins I want for some, and get the 
>>> latest for the rest. My install task then goes and copies just the runtime 
>>> hpi files to the $JENKINS_HOME/plugins folder (after clearing out whatever 
>>> is in there). After restarting my Jenkins server, all plugins are 
>>> installed, with the correct versions.
>>>
>>> I've included a plugin management section in my blog post: You Don't 
>>> Know Jenkins - Part 1 
>>> 
>>>  which 
>>> goes into more detail on how it all works, and includes an example 
>>> build.gradle file. 
>>>
>>> Things to note:
>>> - The plugin.lock file isn't perfect, its just a STDOUT redirect of 
>>> `gradle dependencies` which is great for visually checking which versions 
>>> are installed, but committing it to git gets you nothing, subsequent 
>>> installs wont be locked to the same transient dependencies. I think I can 
>>> solve this by using 
>>> https://github.com/nebula-plugins/gradle-dependency-lock-plugin
>>> - Since the build.gradle file uses repo.jenkins-ci.org instead of 
>>> updates.jenkins-ci.org it does pick up the occassional beta/alpha 
>>> version that gets pushed to the releases repo by developers. I'm working to 
>>> fix this using a filter in the gradle dependency solver configuration. 
>>>
>>>
>>>
>>> On Thursday, August 11, 2016 at 6:03:12 PM UTC-7, Michael Kobit wrote:

 We are looking at doing something similar (actually talking about this 
 with colleagues today). The idea is to basically build an immutable 
 Jenkins 
 instance that can't be modified. Or at least severely limit any kinds of 
 modifications to it so that we have an easily deployable "Jenkins as a 
 service".

 I've looked at possibly doing an "unpack and install" execution with 
 the *jenkins.war *, but it doesn't look like an easy route. The other 
 pain-point I see is effectively treating the correct files as "data" that 
 should be persisted over time, rather than at "Jenkins build time". I am 
 considering trying out the Docker-type approach. I think for plugin 
 resolution, we are probably going to have to go the route that you are 
 talking about for doing the resolution ourselves.

 For security type issues, I think we could still handle it with the 
 Docker approach. Build whatever restrictions into the next "immutable" 
 image and making that deployable. Then, we can have a "staging" area and 
 easily rollback if we effectively control all the things we need to 
 control. We are experimenting with pipelines right now, and are waiting to 
 see how https://issues.jenkins-ci.org/browse/JENKINS-33507 will work 
 for us to get as much of the job configuration 

Re: Using HTTP Request plugin to remote control an IDE

2016-08-30 Thread Amaury Laurent


For information, this is the architecture I'm working on. The main problem 
was to make LabVIEW and Jenkins talk to each other... 









Le vendredi 12 août 2016 09:39:32 UTC+2, Amaury Laurent a écrit :
>
> Hi everyone,
>  
> I'm interested in using HTTP Request Plugin to remotely control our 
> development environment.
>
> My objectives are:
> 1-Waiting for my builder to start (maybe in Build Environment section of 
> Jenkins)
> 2-Trigger a build remotely
> 3-Periodically query its status
> 4-Retrieve build results from the server
>  
> Do you think possible to slightly modify the plugin to make it poll a web 
> server until it gives the correct response ?
> Will it be difficult to do (I'm not very experienced in Java development) ?
>
> Regards, Amaury LAURENT.
>

-- 
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/022673a0-bab0-45ba-b0ee-cea4f62d7680%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Plugin Updates mirror - build-pipeline-plugin Permissions issue - can no longer view folder?

2016-08-30 Thread Daniel Beck

> On 30.08.2016, at 17:31, Chris M  wrote:
> 
> also curiosu; would this more go into Jenkins Developers group than Users?

Probably best on the infra list:

https://jenkins.io/content/mailing-lists/

-- 
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/1AF7BCC5-7124-4BA6-A526-F6443321E9AF%40beckweb.net.
For more options, visit https://groups.google.com/d/optout.


Re: Plugin Updates mirror - build-pipeline-plugin Permissions issue - can no longer view folder?

2016-08-30 Thread Chris M
also curiosu; would this more go into Jenkins Developers group than Users?

On Tuesday, August 30, 2016 at 10:52:15 AM UTC-4, Chris M wrote:
>
> http://updates.jenkins-ci.org/download/plugins/  
>
> lists all plugins that I spot check; and used to list 
> build-pipeline-plugin.
>
> Now, 
>
> http://updates.jenkins-ci.org/download/plugins/build-pipeline-plugin/
>
>
> fails to resolve even though direct link from the manifest still works. 
>
>
> http://updates.jenkins-ci.org/download/plugins/build-pipeline-plugin/1.5.4/build-pipeline-plugin.hpi
>
>
> Is there a permissions issue on the folder now?
>

-- 
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/c6e02a78-d0ca-4aee-87af-cb7c96d4d5d2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Plugin Updates mirror - build-pipeline-plugin Permissions issue - can no longer view folder?

2016-08-30 Thread Chris M
http://updates.jenkins-ci.org/download/plugins/  

lists all plugins that I spot check; and used to list build-pipeline-plugin.

Now, 

http://updates.jenkins-ci.org/download/plugins/build-pipeline-plugin/


fails to resolve even though direct link from the manifest still works. 

http://updates.jenkins-ci.org/download/plugins/build-pipeline-plugin/1.5.4/build-pipeline-plugin.hpi


Is there a permissions issue on the folder now?

-- 
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/9814511e-a775-4a1b-9e72-f2bdec5bdd31%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Build failure with Exception in thread "main" java.lang.ClassNotFoundException: hudson.remoting.Launcher

2016-08-30 Thread Michael Giroux
Disconnecting the slave, and then reconnecting solved the problem for us. 
 This causes jenkins to refresh the runtime jars on the slave.

On Wednesday, June 17, 2015 at 12:55:57 PM UTC-7, 1eyed...@gmail.com wrote:
>
> We ultimately got our server administrator to restart Jenkins, and now the 
> builds are working.  If anybody out there has this same issue - try that 
> first!
>
> On Wednesday, June 17, 2015 at 9:31:10 AM UTC-6, 1eyed...@gmail.com wrote:
>>
>> Hello,
>>
>> I have been searching for an answer to this problem, and what I've found 
>> so far refers to slaves and other terminology I don't know.  I am not an 
>> administrator, just someone who uses Jenkins to run builds for our Java 
>> projects.  We have one project that uses Maven, and we have just recently 
>> started getting errors that show:
>>
>>
>> [EnvInject] - Variables injected successfully.
>> Parsing POMs
>> Discovered a new module com.bc.woodCustomer:WoodCustomerBuild Wood Customer 
>> Build Project (Maven Build)
>> Discovered a new module com.bc.woodCustomer:WoodCustomerEar Wood Customer Ear
>> Discovered a new module com.bc.woodCustomer:WoodCustomerWeb Wood Customer Web
>> Modules changed, recalculating dependency graph
>> [WoodCustomerBuild] $ /opt/java//bin/java -cp 
>> /opt/jenkins/plugins/maven-plugin/WEB-INF/lib/maven31-agent-1.4.jar:/opt/maven/boot/plexus-classworlds-2.5.1.jar:/opt/maven/conf/logging
>>  jenkins.maven3.agent.Maven31Main /opt/maven 
>> /tmp/jetty-0.0.0.0-8090-jenkins.war--any-/webapp/WEB-INF/lib/remoting-2.32.jar
>>  /opt/jenkins/plugins/maven-plugin/WEB-INF/lib/maven31-interceptor-1.4.jar 
>> /opt/jenkins/plugins/maven-plugin/WEB-INF/lib/maven3-interceptor-commons-1.4.jar
>>  42886
>> Exception in thread "main" java.lang.ClassNotFoundException: 
>> hudson.remoting.Launcher
>>  at 
>> org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50)
>>  at 
>> org.codehaus.plexus.classworlds.realm.ClassRealm.unsynchronizedLoadClass(ClassRealm.java:259)
>>  at 
>> org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:235)
>>  at 
>> org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:227)
>>  at jenkins.maven3.agent.Maven31Main.main(Maven31Main.java:138)
>>  at jenkins.maven3.agent.Maven31Main.main(Maven31Main.java:67)
>> ERROR: Failed to parse POMsjava.net.SocketException 
>> : 
>> Connection reset
>>  at java.net.SocketInputStream.read(SocketInputStream.java:189) 
>> 
>>  at java.net.SocketInputStream.read(SocketInputStream.java:121) 
>> 
>>  at java.io.FilterInputStream.read(FilterInputStream.java:133) 
>> 
>>  at java.io.BufferedInputStream.fill(BufferedInputStream.java:235) 
>> 
>>  at java.io.BufferedInputStream.read(BufferedInputStream.java:254) 
>> 
>>  at 
>> hudson.remoting.ClassicCommandTransport.create(ClassicCommandTransport.java:133)
>>  
>> 
>>  at hudson.remoting.Channel.(Channel.java:406) 
>> 
>>  at hudson.remoting.Channel.(Channel.java:402) 
>> 
>>  at hudson.remoting.Channel.(Channel.java:363) 
>> 
>>  at hudson.remoting.Channel.(Channel.java:359) 
>> 
>>  at hudson.remoting.Channel.(Channel.java:355) 
>> 
>>  at hudson.slaves.Channels$1.(Channels.java:71) 
>> 
>>  at hudson.slaves.Channels.forProcess(Channels.java:71) 
>> 
>>  at 
>> hudson.maven.AbstractMavenProcessFactory.newProcess(AbstractMavenProcessFactory.java:252)
>>  
>> 
>>  at hudson.maven.ProcessCache.get(ProcessCache.java:235) 
>> 
>>  at 
>> 

Re: Send custom message to Flowdock chat

2016-08-30 Thread Anjib Mulepati
Anyone?

On Tuesday, August 9, 2016 at 12:10:03 PM UTC-5, Anjib Mulepati wrote:
>
> Hi All,
>
> Is there a way a to send custom message to the Flowdock chat. Right now I 
> have a dsl as:
>
> flowdock(FlowdockUtils.FLOWDOCK_TOKEN) { chat() success(false) 
> fixed(false) } 
> And it is sending something like "*My Job build 4465 failed*" I need to 
> add something like @team in that message.
>
> Any suggestion?
>

-- 
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/51694ebd-1bf4-4c3f-87ac-e278ca6b8ea2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Loaded Classes Count grows over time: crashes Jenkins with Perm Gen

2016-08-30 Thread grayaii
I tried this tweaking the startup options, but things still grow:
JENKINS_JAVA_OPTIONS="-Djava.awt.headless=true *-Xms4096m -Xmx4096m 
-XX:MaxPermSize=1024m -XX:+CMSClassUnloadingEnabled -XX:+UseConcMarkSweepGC* 
-Dhudson.model.ParametersAction.keepUndefinedParameters=true"


We are using system groovy script and the python jenkinsapi pip module to 
do a lot of things, so I bet something changed in the way things load in 
groovy.

I just found a JIRA ticket associated with this:
https://issues.jenkins-ci.org/browse/JENKINS-33358

I ran the scripts here: 
https://wiki.jenkins-ci.org/display/JENKINS/Monitoring+Scripts and I see a 
bazillion things like this (Display heap histogram (object instances per 
class)):

sun.reflect.GeneratedMethodAccessor

sun.reflect.GeneratedSerializationConstructorAccessor


I'll see if adding this helps any:

-Dgroovy.use.classvalue=true


Alex

On Saturday, August 27, 2016 at 12:28:44 PM UTC-4, grayaii wrote:
>
> We went from Jenkins 1.651.1 to 2.7.2 and our Jenkins master kept on 
> crashing with:
> java.lang.OutOfMemoryError: PermGen space
>
> Where were not specifying -XX:MaxPermSize in our JENKINS_JAVA_OPTIONS 
> before, so I added it, and kept on increasing the value after every crash.
> We are now at 512m:
>
> JENKINS_JAVA_OPTIONS="-Djava.awt.headless=true -Xms3584m -Xmx3584m 
> -XX:MaxPermSize=512m 
> -Dhudson.model.ParametersAction.keepUndefinedParameters=true"
>
> Using the Jenkins Monitoring plugin, we see that the Loaded Classes Count 
> keeps growing without stopping:
>
>
> 
> How do you debug this? 
> Something must be loading classes continuously.
>
>
> Any ideas how we can debug 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/8d0fdeb1-e30b-4912-825c-376331795e61%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Git fetch fall into timeout

2016-08-30 Thread Mark Waite
Embedding username and password in the URL of an https bitbucket repository
has been problematic for the git plugin.
https://issues.jenkins-ci.org/browse/JENKINS-28460 and
https://issues.jenkins-ci.org/browse/JENKINS-22694 both report issues with
that form.

You will probably have better results if you use the form "
https://bitbucket.org/scm/camps/xxx.git; and then define a username and
password credential in Jenkins.

Mark Waite

On Tue, Aug 30, 2016 at 2:10 AM Readonly Guilhermo <
suomaf.ma.i.em.m...@gmail.com> wrote:

> Hi dear enthusiastic Jenkins users, I hope one of you can help me ! ;)
>
> I'm facing a real problem since we use git plugin instead of svn.
>
> While the git plugin is fetching a repo (on a stash server) nothing happen
> until we fall into the timeout period. This behavior is systematic and we
> never succeed in passing this step.
>
> *Versions :*
>
> jenkins : 2.0
> git plugin : 2.4.4
>
>
> *here are the logs :*
>
>
> 17:25:53 Started by user Admin
> 17:25:53 Building in workspace C:\jenkins\.jenkins\workspace\XX
> 17:25:53  > git.exe rev-parse --is-inside-work-tree # timeout=10
> 17:25:54 Fetching changes from the remote Git repository
> 17:25:54  > git.exe config remote.origin.url
> https://userx...@domain.com/scm/camps/xx.git # timeout=10
> 17:25:54 Fetching upstream changes from
> https://userx...@domain.com/scm/camps/xx.git
> 17:25:54  > git.exe --version # timeout=10
> 17:25:54 using .gitcredentials to set credentials
> 17:25:54  > git.exe config --local credential.username userXxxx #
> timeout=10
> 17:25:54  > git.exe config --local credential.helper store
> --file=\"C:\Windows\TEMP\git1311771030924317267.credentials\" # timeout=10
> 17:25:54  > git.exe -c core.askpass=true fetch --tags --progress
> https://userx...@domain.com/scm/camps/xx.git
> +refs/heads/*:refs/remotes/origin/*
> 17:35:54 ERROR: Timeout after 10 minutes
> 17:35:54  > git.exe config --local --remove-section credential # timeout=10
> 17:35:54 ERROR: Error fetching remote repo 'origin'
> 17:35:54 hudson.plugins.git.GitException: Failed to fetch from
> https://userx...@domain.com/scm/camps/xx.git
> 17:35:54 at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:810)
> 17:35:54 at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1066)
> 17:35:54 at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1097)
> 17:35:54 at hudson.scm.SCM.checkout(SCM.java:485)
> 17:35:54 at
> hudson.model.AbstractProject.checkout(AbstractProject.java:1269)
> 17:35:54 at
> hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:607)
> 17:35:54 at
> jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
> 17:35:54 at
> hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:529)
> 17:35:54 at hudson.model.Run.execute(Run.java:1738)
> 17:35:54 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
> 17:35:54 at
> hudson.model.ResourceController.execute(ResourceController.java:98)
> 17:35:54 at hudson.model.Executor.run(Executor.java:410)
> 17:35:54 Caused by: hudson.plugins.git.GitException: Command "git.exe -c
> core.askpass=true fetch --tags --progress
> https://userx...@domain.com/scm/camps/xx.git
> +refs/heads/*:refs/remotes/origin/*" returned status code -1:
> 17:35:54 stdout:
> 17:35:54 stderr:
> 17:35:54 at
> org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1719)
> 17:35:54 at
> org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1463)
> 17:35:54 at
> org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$300(CliGitAPIImpl.java:63)
> 17:35:54 at
> org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:314)
> 17:35:54 at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:808)
> 17:35:54 ... 11 more
> 17:35:54 ERROR: null
> 17:35:54 Skipped archiving because build is not successful
> 17:35:54 Finished: FAILURE
>
>
> I don't know what to try more, if one of you have an idea it'll be welcome
> ! :D
>
> Sincerely,
>
> Guilhermo
>
> --
> 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/7e0c6e87-16a1-4b3c-b3c0-a4c1c3ef7b96%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 

Re: how to pull latest source code when build module only

2016-08-30 Thread Maciej Jaros

严细浪 (2016-08-23 08:16):

I am using Jenkins to build a multi module maven project, in Jenkins i can 
trigger to build a maven module, however when build module, Jenkins will not 
pull latest source code, source code only pulled when whole project is built. 
how to make Jenkins pull source code when build module?


You could just run `svn update ./svn-checkut-path/my/module/path`. Don't 
think it's possible with git though. With git you would probably need 
separate repos.


Regards,
Nux.

--
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/a8a46f42-22c7-0d87-33ce-f6830673bf3e%40mol.com.pl.
For more options, visit https://groups.google.com/d/optout.


Re: GitLab integration: web hooks for GitLab CE with Jenkins multi-branch project?

2016-08-30 Thread Sverre Moe
Just have GitLab execute notifyCommit to Jenkins.
https://jenkins.company.com:8443/git/notifyCommit?url=ssh://g...@git.company.com/project.git

We are using this with a Git Hook in Gitolite.

mandag 29. august 2016 17.35.56 UTC+2 skrev Michael Lasevich følgende:
>
> This is probably more of a GitLab than Jenkins discussion but I think 
> GitLab can send WebHooks to anything, so it should be able to trigger 
> Jenkins jobs with generic WebHook and I believe there is a way to have 
> Jenkins accept WebHooks. That said, this only works when there is a direct 
>  network connection between GitLab and Jenkins.  GitHub has a brilliant 
> alternative using SQS queue for triggering jobs in Jenkins - which allows 
> triggering of jobs without direct connection between the two (as long as 
> both can talk to SQS). I have not found an equivalent for GitLab and fear I 
> would either have to write a WebHook to SQS bridge (easy, but not great in 
> terms of security/reliability) or write a native GitLab plugin (no idea 
> what that entails) :-/
>
> -M 
>
>
>
> On Thursday, August 25, 2016 at 11:04:44 PM UTC-7, ST wrote:
>>
>> Hi,
>>
>> Is there a way to make push event trigger the build for the associated 
>> branch in a Jenkins multi-branch project, using GitLab 8.x Community 
>> Edition (CE)?
>>
>> The GitLab documentation about Jenkins integration
>>   http://docs.gitlab.com/ee/integration/jenkins.html 
>> 
>> mentions that the Jenkins GitLab Hook Plugin is deprecated in favor of 
>> the Jenkins GitLab Plugin. However since there is "...gitlab.com/ee/..."  
>> in that URL it is unclear to me whether GitLab CE is supported at all, and 
>> how/where one is supposed to do the configuration?
>>
>> Anyone using GitLab CE and was able to configure web hooks for 
>> multi-branch project? Or is the only solution in this case to use "SCM 
>> polling"?
>>
>> Thanks!
>>  stefan.
>>
>

-- 
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/6c6be562-a07b-4a05-84fc-76fa0e55a2c7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Parametrized MultiBranch Pipeline Jobs?

2016-08-30 Thread Jesse Glick
BTW I think you are referring to the `properties` step, which takes a list of 
properties, one of which may be parameter definitions.

-- 
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/3aa82901-a2ef-490b-9421-1660095cafd1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Parametrized MultiBranch Pipeline Jobs?

2016-08-30 Thread Jesse Glick
The first issue is being fixed.

The second issue has a possible resolution filed in JIRA.

The third issue certainly sounds like a bug. Please file it in 
`workflow-multibranch-plugin` with a script to demonstrate how to reproduce.

-- 
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/3cee793d-1612-4b52-80b5-6e8d15a2e373%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Git fetch fall into timeout

2016-08-30 Thread Readonly Guilhermo
Hi dear enthusiastic Jenkins users, I hope one of you can help me ! ;)

I'm facing a real problem since we use git plugin instead of svn.

While the git plugin is fetching a repo (on a stash server) nothing happen 
until we fall into the timeout period. This behavior is systematic and we 
never succeed in passing this step.

*Versions :*

jenkins : 2.0
git plugin : 2.4.4


*here are the logs :*


17:25:53 Started by user Admin
17:25:53 Building in workspace C:\jenkins\.jenkins\workspace\XX
17:25:53  > git.exe rev-parse --is-inside-work-tree # timeout=10
17:25:54 Fetching changes from the remote Git repository
17:25:54  > git.exe config remote.origin.url 
https://userx...@domain.com/scm/camps/xx.git # timeout=10
17:25:54 Fetching upstream changes from 
https://userx...@domain.com/scm/camps/xx.git
17:25:54  > git.exe --version # timeout=10
17:25:54 using .gitcredentials to set credentials
17:25:54  > git.exe config --local credential.username userXxxx # timeout=10
17:25:54  > git.exe config --local credential.helper store 
--file=\"C:\Windows\TEMP\git1311771030924317267.credentials\" # timeout=10
17:25:54  > git.exe -c core.askpass=true fetch --tags --progress 
https://userx...@domain.com/scm/camps/xx.git +refs/heads/*:refs/remotes/
origin/*
17:35:54 ERROR: Timeout after 10 minutes
17:35:54  > git.exe config --local --remove-section credential # timeout=10
17:35:54 ERROR: Error fetching remote repo 'origin'
17:35:54 hudson.plugins.git.GitException: Failed to fetch from 
https://userx...@domain.com/scm/camps/xx.git
17:35:54 at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:810)
17:35:54 at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1066)
17:35:54 at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1097)
17:35:54 at hudson.scm.SCM.checkout(SCM.java:485)
17:35:54 at 
hudson.model.AbstractProject.checkout(AbstractProject.java:1269)
17:35:54 at 
hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:607)
17:35:54 at 
jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
17:35:54 at 
hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:529)
17:35:54 at hudson.model.Run.execute(Run.java:1738)
17:35:54 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
17:35:54 at 
hudson.model.ResourceController.execute(ResourceController.java:98)
17:35:54 at hudson.model.Executor.run(Executor.java:410)
17:35:54 Caused by: hudson.plugins.git.GitException: Command "git.exe -c 
core.askpass=true fetch --tags --progress 
https://userx...@domain.com/scm/camps/xx.git 
+refs/heads/*:refs/remotes/origin/*" returned status code -1:
17:35:54 stdout: 
17:35:54 stderr: 
17:35:54 at 
org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1719)
17:35:54 at 
org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1463)
17:35:54 at 
org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$300(CliGitAPIImpl.java:63)
17:35:54 at 
org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:314)
17:35:54 at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:808)
17:35:54 ... 11 more
17:35:54 ERROR: null
17:35:54 Skipped archiving because build is not successful
17:35:54 Finished: FAILURE


I don't know what to try more, if one of you have an idea it'll be welcome 
! :D

Sincerely,

Guilhermo

-- 
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/7e0c6e87-16a1-4b3c-b3c0-a4c1c3ef7b96%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins build on changes in github branch only.

2016-08-30 Thread MT
forgot to mention the Jenkins slaves in this case are dynamic ( coming from 
a a cloud infrastructure provider). so i think one issue is no local cache 
here.

On Monday, 29 August 2016 23:43:46 UTC-7, MT wrote:
>
> This might be very basic question, something that is puzzling me.
> If i want to build my project whenever a change happens in my github 
> branch how do it do that?
> What have i done :
> * add web hook for jenkins in my github "
> http://jenkins_url/github-webhook
>* add build trigger to build only when a change is pushed to github
>
> what's happening today : Any change in any branch triggers this build
>
> Can i use url trigger plugin workaround ? Yes but i think this can be and 
> am sure has been solved in a better manner before.
>
> Please advise
>
>

-- 
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/669b9a99-3365-41c2-967f-0a6e3483e7b2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Jenkins build on changes in github branch only.

2016-08-30 Thread MT
This might be very basic question, something that is puzzling me.
If i want to build my project whenever a change happens in my github branch 
how do it do that?
What have i done :
* add web hook for jenkins in my github 
"http://jenkins_url/github-webhook
   * add build trigger to build only when a change is pushed to github

what's happening today : Any change in any branch triggers this build

Can i use url trigger plugin workaround ? Yes but i think this can be and 
am sure has been solved in a better manner before.

Please advise

-- 
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/cf646e42-75dc-4184-990c-5384087d0392%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Subversion Release Manager - Can't take build with Specific Revision

2016-08-30 Thread linson . joseph
Hello Support,

Recently we have got an issue with Subversion Release Manager plugin where 
we cannot take build using specific revision number. We have noticed the 
issue after upgrading Jenkins to version Jenkins ver. 2.7.1 
 from Jenkins 1.6.  Earlier we were able to take 
builds using specific revision number using Subversion Release Manager 
plugin. But after upgrade, it always take build using HEAD revision number 
only even though we choose specific revision number while taking the build. 
Is this reported issue and do we have any fix for this ?

In order to resolve this issue for the time being, we had to downgrade the 
Jenkins version back to ver. 1.639


-- 
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/c6885e39-f1b9-4766-b6af-b8ca1872578f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.