Re: LTS Release Snapshots

2015-10-12 Thread Daniel Beck
/etc/sysconfig/jenkins or /etc/init.d/jenkins.

On 13.10.2015, at 01:40, rqui  wrote:

> Hmm...which config file should I check to see if it is using a different war 
> than what is in /usr/lib/jenkins?
> 
> 
> On Monday, October 12, 2015 at 4:20:07 PM UTC-7, Daniel Beck wrote:
> The RPM at 
> http://pkg.jenkins-ci.org/redhat-stable/jenkins-1.609.3-1.1.noarch.rpm 
> contains the same Jenkins 1.609.3 WAR as could be downloaded directly (MD5 
> 530e008b162bfec43f38652bd9aed4ed), so it does not appear to be an 
> infrastructure issue. 
> 
> Maybe something goes wrong during installation/upgrade? Or you set up Jenkins 
> to use a different war than /usr/lib/jenkins.war by editing the config files? 
> 
> On 13.10.2015, at 01:08, rqui  wrote: 
> 
> > I am using the yum repository to upgrade. I just installed the LTS release: 
> > jenkins.noarch 0:1.609.3-1.1 
> > 
> > 
> > On Monday, October 12, 2015 at 3:39:50 PM UTC-7, Daniel Beck wrote: 
> > How are you upgrading, and to which release? 
> > 
> > On 12.10.2015, at 23:44, rqui  wrote: 
> > 
> > > Hello, 
> > > 
> > > Whenever I update to an LTS release, I get the "snapshot" version of it. 
> > > How do I get the official GA version?? 
> > > 
> > > What is the difference between the "snapshot" and "non" snapshot? 
> > > 
> > > Thanks. 
> > > 
> > > -- 
> > > You received this message because you are subscribed to the Google Groups 
> > > "Jenkins Users" group. 
> > > To unsubscribe from this group and stop receiving emails from it, send an 
> > > email to jenkinsci-use...@googlegroups.com. 
> > > To view this discussion on the web visit 
> > > https://groups.google.com/d/msgid/jenkinsci-users/ea317e3f-4c77-41c4-899b-f1d89bfd4d59%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/c12c8b6e-8de5-47dc-bdf3-1e75f5f03bee%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/921F196A-C956-4B24-9AA5-021BE4BD14AA%40beckweb.net.
For more options, visit https://groups.google.com/d/optout.


Re: workspace authorization

2015-10-12 Thread Daniel Beck
You can't.

On 09.10.2015, at 18:52, Zhang Zening  wrote:

> Hello jenkins team,
> 
> My workspace in one job has several data. Let's say it's a,b,c. I want "a" 
> only viable for User A, and "b" only viable for User B, so as "c".
> 
> How can I do that?
> 
> Thank you so much!
> 
> -- 
> 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/a935b905-5155-4342-b9d7-b124b14d2435%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/08566564-D9C2-414F-A7BA-DF511A11E701%40beckweb.net.
For more options, visit https://groups.google.com/d/optout.


Beautify a JSON response in Console-Output & Email

2015-10-12 Thread Rami A.
Hi Guys,

We have a build that performs a REST call and gets a JSON response.
The response appears in the console-output not well formatted (just as a 
long string).

How can we print a nicely formatted JSON structure to the console?
Same but to an email? (we use the "Extended E-mail Notification" plugin to 
print the content but it's nicely printed either)

thank you,

Rami

-- 
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/f7d52388-1b40-4007-b955-0adcf6cb536f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Build Java Source code and create a Jar File in Jenkins

2015-10-12 Thread Subramanya Avadhani
Hi Vineet,
   You have to write a compile routine yourself either using Ant or
Maven. Jenkins would then act as an orchestration layer using the plugins.

Thanks,
Subbu

On Tue, Oct 13, 2015 at 11:34 AM, Vineet Yadav 
wrote:

> Hello Guys,
>
>
> how to create a Jar file in Jenkins .I Have a Java Source but i want when
> i build this source code its create A runanable Jar file
>
> --
> 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/1e16bd8d-2009-4b0b-8562-d21833fa565c%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/CADiXxf9HVpL%2B99tJiBdk5Qwu78xjxknML%3Dh2irdGYwp%2B9Xjyow%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Workflow question vs. pipelines

2015-10-12 Thread Stephen Connolly
That sounds like you need the "James Nord operator"

Workflow can do that, because the specific use case was requested by the
person it was named after

On Monday 12 October 2015, Nigel Magnay  wrote:

> I'm migrating a lot of fairly hairy infrastructure around to use
> jerkins-workflow.
>
> At the moment, we have a number of projects that use triggering: -
>
> proj-build
> proj-ITU
> proj-robot-tests
>
> What I want to migrate is - proj-build builds every commit. proj-ITU is
> very expensive, so it gets triggered on successful proj-build builds; but -
> it only builds against *master*, so multiple triggerings will just queue
> it to build once.
>
> I'm not sure the best way to model that in workflow (or even if that's the
> best option).
>
> Something like a stage that says
>
> 1) "if there is an 'ITU' stage currently building, wait until it finishes.
> 2) If there is another build, where the build number is later than us, and
> that build started the ITU stage (or is, like us, waiting to enter that
> stage) then exit. (I.E: no point in running integration tests against a
> version that's now stale).
>
> Is that something do-able in workflow?
>
> --
> 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/CAPYP83RtRLXwCSV8ZqbpoA_cBg4OSzV-G30s9RhMgYqaoP_Y5Q%40mail.gmail.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>


-- 
Sent from my phone

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


Build Java Source code and create a Jar File in Jenkins

2015-10-12 Thread Vineet Yadav
Hello Guys,


how to create a Jar file in Jenkins .I Have a Java Source but i want when i 
build this source code its create A runanable Jar file

-- 
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/1e16bd8d-2009-4b0b-8562-d21833fa565c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Testlink integration with Maven project in Jenkins

2015-10-12 Thread manasi sattarkar


On Tuesday, 13 October 2015 11:29:43 UTC+5:30, manasi sattarkar wrote:
>
> Hi,
>
> I have below configurations:
> Jenkins : 1.632,
> Testlink : 1.9.13
> Maven : 3.3.3
> JDK : 1.8
>
> I have created Maven project in jenkins.
> added Testlink configurations in pre steps.
> When I execute the job, I get below console output:
>
> Started by user anonymous 
> Building in workspace C:\Users\admin\.jenkins\workspace\Testlink with maven 
> project
> Preparing TestLink client API.
> Using TestLink URL: 
> http://localhost:8087/testlink/lib/api/xmlrpc/v1/xmlrpc.php
>
> Found 2 automated test cases in TestLink.
>
> Sorting automated test cases by TestLink test plan execution order.
>
> Executing single Build Steps.
>
> Executing iterative Build Steps.
>
> Looking for the test results of TestLink test cases.
>
> Looking for test results in TestNG methods by its name.
>
> Found 2 test result(s).
>
> There are failed tests, setting the build result as UNSTABLE.
> Build step 'Invoke TestLink' changed build result to UNSTABLE
> Parsing POMs
> Established TCP socket on 54746
> [Testlink with maven project] $ "C:\Program Files\Java\jdk1.8.0_45/bin/java" 
> -cp 
> C:\Users\admin\.jenkins\plugins\maven-plugin\WEB-INF\lib\maven32-agent-1.7.jar;D:\softwares\apache-maven-3.3.3\boot\plexus-classworlds-2.5.2.jar;D:\softwares\apache-maven-3.3.3/conf/logging
>  jenkins.maven3.agent.Maven32Main D:\softwares\apache-maven-3.3.3 
> C:\Users\admin\.jenkins\war\WEB-INF\lib\remoting-2.52.jar 
> C:\Users\admin\.jenkins\plugins\maven-plugin\WEB-INF\lib\maven32-interceptor-1.7.jar
>  
> C:\Users\admin\.jenkins\plugins\maven-plugin\WEB-INF\lib\maven3-interceptor-commons-1.7.jar
>  54746
> <===[JENKINS REMOTING CAPACITY]===>channel started
> Executing Maven:  -B -f C:\Users\admin\.jenkins\workspace\Testlink with maven 
> project\pom.xml test -Dsuite.xml=.\testNG-xml\TestNG_Smoke.xml
> [INFO] Scanning for projects...[WARNING] [WARNING] Some problems were 
> encountered while building the effective model for 
>
> *project:project*:jar:1.0-SNAPSHOT
> [WARNING] 'dependencies.dependency.systemPath' for 
> com.microsoft.sqlserver:sqljdbc4:jar should not point at files within the 
> project directory, ${basedir}/lib/sqljdbc4.jar will be unresolvable by 
> dependent projects @ line 86, column 16 [WARNING] 
> 'dependencies.dependency.systemPath' for 
> net.jsourcerer.webdriver:JSErrorCollector:jar should not point at files 
> within the project directory, ${basedir}/lib/JSErrorCollector-0.6.jar will 
> be unresolvable by dependent projects @ line 93, column 16 [WARNING] 
> 'build.plugins.plugin.version' for ch.fortysix:maven-postman-plugin is 
> missing. @ line 137, column 12 [WARNING] [WARNING] It is highly 
> recommended to fix these problems because they threaten the stability of 
> your build. [WARNING] [WARNING] For this reason, future Maven versions 
> might no longer support building such malformed projects. [WARNING] [INFO] 
> [INFO] 
>  
> [INFO] Building lampsplus 1.0-SNAPSHOT [INFO] 
>  
> [WARNING] 
> The POM for javax.xml:saaj-api:pom:1.3 is invalid, transitive dependencies 
> (if any) will not be available, enable debug logging for more details [INFO] 
> [INFO] 
>
>
> *--- maven-resources-plugin:2.6:resources (default-resources) @ 
> project---*[INFO] 
> Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 0 
> resource [INFO] [INFO] 
>
>
> *--- maven-compiler-plugin:3.2:compile (default-compile) @ project---*[INFO] 
> Nothing to compile - all classes are up to date [INFO] [INFO] 
>
>
> *--- maven-resources-plugin:2.6:testResources (default-testResources) @ 
> project---*[INFO] Using 'UTF-8' encoding to copy filtered resources. 
> [INFO] Copying 0 resource [INFO] [INFO] 
>
>
> *--- maven-compiler-plugin:3.2:testCompile (default-testCompile) @ 
> project---*[INFO] Changes detected - recompiling the module! [INFO] 
> Compiling 7 source files to C:\Users\admin\.jenkins\workspace\Testlink with 
> maven project\target\test-classes [INFO] [INFO] *--- 
> maven-surefire-plugin:2.18.1:test (default-test) @ lampsplus --- *[INFO] 
> Surefire report directory: C:\Users\admin\.jenkins\workspace\Testlink with 
> maven project\target\surefire-reports 
> --- T E S T S 
> --- Running TestSuite 
> Started InternetExplorerDriver server (64-bit) 2.46.0.0 Listening on port 
> 17231 log4j:WARN No appenders could be found for logger 
> (org.apache.http.client.protocol.RequestAddCookies). log4j:WARN Please 
> initialize the log4j system properly. log4j:WARN See 
> http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info. Oct 
> 09, 2015 3:15:30 PM org.openqa.selenium.os.UnixProcess$SeleniumWatchDog 
> destroyHarder INFO: Command failed to close cleanly. Destroyi

Testlink integration with Maven project in Jenkins

2015-10-12 Thread manasi sattarkar
Hi,

I have below configurations:
Jenkins : 1.632,
Testlink : 1.9.13
Maven : 3.3.3
JDK : 1.8

I have created Maven project in jenkins.
added Testlink configurations in pre steps.
When I execute the job, I get below console output:

Started by user anonymous 
Building in workspace C:\Users\admin\.jenkins\workspace\Testlink with maven 
project
Preparing TestLink client API.
Using TestLink URL: http://localhost:8087/testlink/lib/api/xmlrpc/v1/xmlrpc.php

Found 2 automated test cases in TestLink.

Sorting automated test cases by TestLink test plan execution order.

Executing single Build Steps.

Executing iterative Build Steps.

Looking for the test results of TestLink test cases.

Looking for test results in TestNG methods by its name.

Found 2 test result(s).

There are failed tests, setting the build result as UNSTABLE.
Build step 'Invoke TestLink' changed build result to UNSTABLE
Parsing POMs
Established TCP socket on 54746
[Testlink with maven project] $ "C:\Program Files\Java\jdk1.8.0_45/bin/java" 
-cp 
C:\Users\admin\.jenkins\plugins\maven-plugin\WEB-INF\lib\maven32-agent-1.7.jar;D:\softwares\apache-maven-3.3.3\boot\plexus-classworlds-2.5.2.jar;D:\softwares\apache-maven-3.3.3/conf/logging
 jenkins.maven3.agent.Maven32Main D:\softwares\apache-maven-3.3.3 
C:\Users\admin\.jenkins\war\WEB-INF\lib\remoting-2.52.jar 
C:\Users\admin\.jenkins\plugins\maven-plugin\WEB-INF\lib\maven32-interceptor-1.7.jar
 
C:\Users\admin\.jenkins\plugins\maven-plugin\WEB-INF\lib\maven3-interceptor-commons-1.7.jar
 54746
<===[JENKINS REMOTING CAPACITY]===>channel started
Executing Maven:  -B -f C:\Users\admin\.jenkins\workspace\Testlink with maven 
project\pom.xml test -Dsuite.xml=.\testNG-xml\TestNG_Smoke.xml
[INFO] Scanning for projects...[WARNING] [WARNING] Some problems were 
encountered while building the effective model for 

*project:project*:jar:1.0-SNAPSHOT
[WARNING] 'dependencies.dependency.systemPath' for 
com.microsoft.sqlserver:sqljdbc4:jar should not point at files within the 
project directory, ${basedir}/lib/sqljdbc4.jar will be unresolvable by 
dependent projects @ line 86, column 16 [WARNING] 
'dependencies.dependency.systemPath' for 
net.jsourcerer.webdriver:JSErrorCollector:jar should not point at files 
within the project directory, ${basedir}/lib/JSErrorCollector-0.6.jar will 
be unresolvable by dependent projects @ line 93, column 16 [WARNING] 
'build.plugins.plugin.version' for ch.fortysix:maven-postman-plugin is 
missing. @ line 137, column 12 [WARNING] [WARNING] It is highly recommended 
to fix these problems because they threaten the stability of your build. 
[WARNING] 
[WARNING] For this reason, future Maven versions might no longer support 
building such malformed projects. [WARNING] [INFO] [INFO] 
 
[INFO] Building lampsplus 1.0-SNAPSHOT [INFO] 
 
[WARNING] 
The POM for javax.xml:saaj-api:pom:1.3 is invalid, transitive dependencies 
(if any) will not be available, enable debug logging for more details [INFO] 
[INFO] 


*--- maven-resources-plugin:2.6:resources (default-resources) @ 
project---*[INFO] 
Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 0 
resource [INFO] [INFO] 


*--- maven-compiler-plugin:3.2:compile (default-compile) @ project---*[INFO] 
Nothing to compile - all classes are up to date [INFO] [INFO] 


*--- maven-resources-plugin:2.6:testResources (default-testResources) @ 
project---*[INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] 
Copying 0 resource [INFO] [INFO] 


*--- maven-compiler-plugin:3.2:testCompile (default-testCompile) @ 
project---*[INFO] Changes detected - recompiling the module! [INFO] 
Compiling 7 source files to C:\Users\admin\.jenkins\workspace\Testlink with 
maven project\target\test-classes [INFO] [INFO] *--- 
maven-surefire-plugin:2.18.1:test (default-test) @ lampsplus --- *[INFO] 
Surefire report directory: C:\Users\admin\.jenkins\workspace\Testlink with 
maven project\target\surefire-reports 
--- T E S T S 
--- Running TestSuite 
... ... TestNG 6.8.9beta by Cédric Beust (ced...@beust.com) ... Started 
InternetExplorerDriver server (64-bit) 2.46.0.0 Listening on port 17231 
log4j:WARN No appenders could be found for logger 
(org.apache.http.client.protocol.RequestAddCookies). log4j:WARN Please 
initialize the log4j system properly. log4j:WARN See 
http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info. Oct 
09, 2015 3:15:30 PM org.openqa.selenium.os.UnixProcess$SeleniumWatchDog 
destroyHarder INFO: Command failed to close cleanly. Destroying forcefully 
(v2). org.openqa.selenium.os.UnixProcess$SeleniumWatchDog@4da4253 Tests 
run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 18.844 sec - in 
TestSuite Results : Tests run: 1, Failures

Re: LTS Release Snapshots

2015-10-12 Thread rqui
Hmm...which config file should I check to see if it is using a different 
war than what is in /usr/lib/jenkins?


On Monday, October 12, 2015 at 4:20:07 PM UTC-7, Daniel Beck wrote:
>
> The RPM at 
> http://pkg.jenkins-ci.org/redhat-stable/jenkins-1.609.3-1.1.noarch.rpm 
> contains the same Jenkins 1.609.3 WAR as could be downloaded directly (MD5 
> 530e008b162bfec43f38652bd9aed4ed), so it does not appear to be an 
> infrastructure issue. 
>
> Maybe something goes wrong during installation/upgrade? Or you set up 
> Jenkins to use a different war than /usr/lib/jenkins.war by editing the 
> config files? 
>
> On 13.10.2015, at 01:08, rqui > wrote: 
>
> > I am using the yum repository to upgrade. I just installed the LTS 
> release: jenkins.noarch 0:1.609.3-1.1 
> > 
> > 
> > On Monday, October 12, 2015 at 3:39:50 PM UTC-7, Daniel Beck wrote: 
> > How are you upgrading, and to which release? 
> > 
> > On 12.10.2015, at 23:44, rqui  wrote: 
> > 
> > > Hello, 
> > > 
> > > Whenever I update to an LTS release, I get the "snapshot" version of 
> it. How do I get the official GA version?? 
> > > 
> > > What is the difference between the "snapshot" and "non" snapshot? 
> > > 
> > > Thanks. 
> > > 
> > > -- 
> > > You received this message because you are subscribed to the Google 
> Groups "Jenkins Users" group. 
> > > To unsubscribe from this group and stop receiving emails from it, send 
> an email to jenkinsci-use...@googlegroups.com. 
> > > To view this discussion on the web visit 
> https://groups.google.com/d/msgid/jenkinsci-users/ea317e3f-4c77-41c4-899b-f1d89bfd4d59%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/c12c8b6e-8de5-47dc-bdf3-1e75f5f03bee%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/43d10a1b-bd70-478b-8cdd-4ca8a2b546b4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Distribution Groups from Outlook

2015-10-12 Thread rqui
Thanks, Richard. I will inquire with my IT dept to allow emails from the 
"outside".

Thanks!!



On Monday, October 12, 2015 at 3:45:20 PM UTC-7, Richard Bywater wrote:
>
> The plugin just sends emails via normal SMTP based mail protocols so if 
> the distribution group has an "internet" email address (e.g. 
> your...@yourcompany.com ) then there's no reason for it not 
> to work as long as the distribution group is allowed to receive emails from 
> the "outside".
>
> Richard.
>
> On Tue, 13 Oct 2015 at 11:11 rqui > 
> wrote:
>
>> Hello,
>>
>> Does Jenkins (newer than v1.580) support the ability to use distribution 
>> groups from Outlook in the email-ext plugin?
>>
>> Thanks.
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Jenkins Users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to jenkinsci-use...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/jenkinsci-users/f3d729d8-bd52-48d2-8669-8ac612adc306%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/e06dbcf5-581a-4f6f-a5b2-0c96c680a137%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


October JAMs and meetups

2015-10-12 Thread Alyssa Tong
Hi All,

There are some upcoming Jenkins Area Meetups in the following areas. Pls
join us if you can or tell a friend. Of course if you're interested in
participating via speaking, food/bev sponsorship at future JAMs pls reach
out to jenkinsci-...@googlegroups.com

*Oct 15: Richmond, Virgina (CIA)*
http://www.meetup.com/DevOps-RVA/events/220815716/

*Oct.22: Atlanta, Georgia *
http://www.meetup.com/Atlanta-Jenkins-Meetup/events/225877826/

*Oct. 28:  Bay Area, California*
http://www.meetup.com/jenkinsmeetup/events/225860998/

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


Re: LTS Release Snapshots

2015-10-12 Thread Daniel Beck
The RPM at 
http://pkg.jenkins-ci.org/redhat-stable/jenkins-1.609.3-1.1.noarch.rpm contains 
the same Jenkins 1.609.3 WAR as could be downloaded directly (MD5 
530e008b162bfec43f38652bd9aed4ed), so it does not appear to be an 
infrastructure issue.

Maybe something goes wrong during installation/upgrade? Or you set up Jenkins 
to use a different war than /usr/lib/jenkins.war by editing the config files?

On 13.10.2015, at 01:08, rqui  wrote:

> I am using the yum repository to upgrade. I just installed the LTS release: 
> jenkins.noarch 0:1.609.3-1.1
> 
> 
> On Monday, October 12, 2015 at 3:39:50 PM UTC-7, Daniel Beck wrote:
> How are you upgrading, and to which release? 
> 
> On 12.10.2015, at 23:44, rqui  wrote: 
> 
> > Hello, 
> > 
> > Whenever I update to an LTS release, I get the "snapshot" version of it. 
> > How do I get the official GA version?? 
> > 
> > What is the difference between the "snapshot" and "non" snapshot? 
> > 
> > Thanks. 
> > 
> > -- 
> > You received this message because you are subscribed to the Google Groups 
> > "Jenkins Users" group. 
> > To unsubscribe from this group and stop receiving emails from it, send an 
> > email to jenkinsci-use...@googlegroups.com. 
> > To view this discussion on the web visit 
> > https://groups.google.com/d/msgid/jenkinsci-users/ea317e3f-4c77-41c4-899b-f1d89bfd4d59%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/c12c8b6e-8de5-47dc-bdf3-1e75f5f03bee%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/FB1BC802-8C10-4DFC-BF18-A79F845D5E18%40beckweb.net.
For more options, visit https://groups.google.com/d/optout.


Re: Questions about serious security bugs

2015-10-12 Thread Daniel Beck
It looks like the email I'm responding to never made it to the users or dev 
list; and it was lost in moderation in the infra list. Given the important of 
the topic, I'm responding anyway, including the users list.

---

When you install Jenkins, it doesn't set up access control automatically. 
You're expected to do this afterwards (which has its problems[1], but that's 
the way it is right now). Jenkins even tells you to do that on the "Manage 
Jenkins" screen if security has not been set up.

And when on the "Configure Global Security" page, one of the options is a 
checkbox that says "Prevent Cross Site Request Forgery exploits". Its help text 
basically explains why it's not enabled by default:

> Enabling this option can result in some problems, like the following:
> 
>   • Some Jenkins features (like the remote API) are more difficult to use 
> when this option is enabled.
>   • Some features, especially in plugins not tested with this option 
> enabled, may not work at all.
>   • If you are accessing Jenkins through a reverse proxy, it may strip 
> the CSRF HTTP header, resulting in some protected actions failing.


I tested a few of the examples provided, and none worked when I enabled this 
protection. I really doubt any of them work.

So, don't just install and start Jenkins, and then go home. Set it up properly, 
and you're safe.

More on setting up security in Jenkins: 
https://wiki.jenkins-ci.org/display/JENKINS/Securing+Jenkins

1: 
https://wiki.jenkins-ci.org/display/SECURITY/Jenkins+Security+Advisory+2015-10-01

On 08.09.2015, at 23:47, Paulos Yibelo  wrote:

> Hi,
> 
> Its been days since a 0day in Jenkins have been announced to the
> public, that can almost do anything to Jenkins. including code
> execution: https://www.exploit-db.com/exploits/37999/
> 
> But since then, there appears to be no update on the change log or no
> security advisories have come out. is this normal? shouldn't for a
> project this big, such issues, not only should be fixed in hrs but not
> found in the first place. am just curios if the next version is going
> to contain the advisories.
> 
> Please anyone with a knowledge of this, speak up.
> 
> Thanks,
> P
> ___
> Jenkins-infra mailing list
> jenkins-in...@lists.jenkins-ci.org
> http://lists.jenkins-ci.org/mailman/listinfo/jenkins-infra
> 

-- 
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/F00853A6-26AC-4FD8-B63C-4A7944E72F64%40beckweb.net.
For more options, visit https://groups.google.com/d/optout.


Re: LTS Release Snapshots

2015-10-12 Thread rqui
I am using the yum repository to upgrade. I just installed the LTS release: 
jenkins.noarch 0:1.609.3-1.1


On Monday, October 12, 2015 at 3:39:50 PM UTC-7, Daniel Beck wrote:
>
> How are you upgrading, and to which release? 
>
> On 12.10.2015, at 23:44, rqui > wrote: 
>
> > Hello, 
> > 
> > Whenever I update to an LTS release, I get the "snapshot" version of it. 
> How do I get the official GA version?? 
> > 
> > What is the difference between the "snapshot" and "non" snapshot? 
> > 
> > Thanks. 
> > 
> > -- 
> > You received this message because you are subscribed to the Google 
> Groups "Jenkins Users" group. 
> > To unsubscribe from this group and stop receiving emails from it, send 
> an email to jenkinsci-use...@googlegroups.com . 
> > To view this discussion on the web visit 
> https://groups.google.com/d/msgid/jenkinsci-users/ea317e3f-4c77-41c4-899b-f1d89bfd4d59%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/c12c8b6e-8de5-47dc-bdf3-1e75f5f03bee%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Distribution Groups from Outlook

2015-10-12 Thread Richard Bywater
The plugin just sends emails via normal SMTP based mail protocols so if the
distribution group has an "internet" email address (e.g.
yourgr...@yourcompany.com) then there's no reason for it not to work as
long as the distribution group is allowed to receive emails from the
"outside".

Richard.

On Tue, 13 Oct 2015 at 11:11 rqui  wrote:

> Hello,
>
> Does Jenkins (newer than v1.580) support the ability to use distribution
> groups from Outlook in the email-ext plugin?
>
> Thanks.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/f3d729d8-bd52-48d2-8669-8ac612adc306%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/CAMui947-BjWg-TBQrNQFM9CmnPRJaTn-B4-zC2%3D8i-tYQ9YP%2Bg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: LTS Release Snapshots

2015-10-12 Thread Daniel Beck
How are you upgrading, and to which release?

On 12.10.2015, at 23:44, rqui  wrote:

> Hello,
> 
> Whenever I update to an LTS release, I get the "snapshot" version of it. How 
> do I get the official GA version??
> 
> What is the difference between the "snapshot" and "non" snapshot?
> 
> Thanks.
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/jenkinsci-users/ea317e3f-4c77-41c4-899b-f1d89bfd4d59%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/1FC5C8A1-9D6B-497A-9130-F347B9F3BCCA%40beckweb.net.
For more options, visit https://groups.google.com/d/optout.


Distribution Groups from Outlook

2015-10-12 Thread rqui
Hello,

Does Jenkins (newer than v1.580) support the ability to use distribution 
groups from Outlook in the email-ext plugin?

Thanks.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/f3d729d8-bd52-48d2-8669-8ac612adc306%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [git plugin] Querying last author's email address for further usage

2015-10-12 Thread Martin Braun
On 09.10.2015 18:02, Martin Braun wrote:
> * I can read the email address using `git log -1 --pretty=%ae` from the
> 'Execute Shell' section. But then how can I use it later on? I was
> hoping that 'Capture build context information' -> 'Capture Environment
> variables' would allow me to export variables from the shell section,
> but that doesn't seem to work. I will admit I don't really know what the
> BuildContextCapture Plugin does.

I ended up piping the output of said git command into a properties file,
then using that in subsequent triggers by injecting it using the
EnvInject plugin.

M

-- 
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/561C2D1A.9090600%40ettus.com.
For more options, visit https://groups.google.com/d/optout.


LTS Release Snapshots

2015-10-12 Thread rqui
Hello,

Whenever I update to an LTS release, I get the "snapshot" version of it. 
How do I get the official GA version??

What is the difference between the "snapshot" and "non" snapshot?

Thanks.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/ea317e3f-4c77-41c4-899b-f1d89bfd4d59%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Git plugin unable to acces local repository

2015-10-12 Thread milki milk
Yes, that should be it. Defined credentials and using that credential in 
the selection box for your scm. Are you sure the credentials work? I see 
you are also using localhost. The scm polling job doesn't havee a node 
restriction, but the job that does the checkout is done locally on the node 
it runs on. In general, you'll want the server to be accessible from all 
nodes.

-- 
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/41c7b8f8-ad41-49b3-9fd7-a44d28aacfe8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins with a DB?

2015-10-12 Thread barbine.michael


Hello!
Happy to help with that. Do you use Google hangouts or Skype? I'm at the office 
currently but one evening this week I can hop on and chat with you on that. 
I'm currently in central time. 





Sent on the new Sprint Network from my Samsung Galaxy S®4

 Original message 
From: MV  
Date: 10/12/2015  9:59 AM  (GMT-06:00) 
To: Jenkins Users  
Subject: Re: Jenkins with a DB? 


Hi Jonathan,

I am looking for ways to extract code coverage details from the jenkins jobs 
latest build information (recent 10-15 builds) and export this data into MySql 
database to use in various tasks. Your work resembles quite similar to me. 
Could you please give some insight on this?
Thank you,Veena  

What do you mean by "all the data"? More importantly, what is the ultimate 
goal? I wrote a script which extracts job and build information via the Jenkins 
API and inserts/updates a PostgreSQL database so I could analyze it more 
easily. Is that similar to what you're trying to do? 




-- 

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/wHxZ9dm-JE4/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/4c09e746-0c55-4ec2-a88e-1c735d3b547f%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/3jf0h32i9seugigyxdh1qpsf.1444664991969%40email.android.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins with a DB?

2015-10-12 Thread MV


> Hi Jonathan,
>>
>
I am looking for ways to extract code coverage details from the jenkins 
jobs latest build information (recent 10-15 builds) and export this data 
into MySql database to use in various tasks. Your work resembles quite 
similar to me. Could you please give some insight on this?

Thank you,
Veena  

>
>>
> What do you mean by "all the data"? More importantly, what is the ultimate 
> goal? I wrote a script which extracts job and build information via the 
> Jenkins API and inserts/updates a PostgreSQL database so I could analyze it 
> more easily. Is that similar to what you're trying to do? 
>

-- 
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/4c09e746-0c55-4ec2-a88e-1c735d3b547f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Use Master/Slave architecture on the same linux machine.

2015-10-12 Thread Mark Waite
Slave resource usage depends very much on the build jobs you run on the
slave.  Your use case (a separate slave logged in as this specific user)
seems unlikely to cause you to create less than 5 additional slaves on that
machine.  General jobs will associate with the default slave.  Jobs which
require the specific permissions of that user will associate with the slave
designated (and labeled) for that user.

Mark Waite

On Mon, Oct 12, 2015 at 6:38 AM iostrym  wrote:

> Thanks a lot. tested with success. master and slave on same unix machine
> without doing anything else that playing with "add a node" in Jenkins
> administration.
>
> Concerning ressource taken by jenkins slave. do you have an idea ? Because
> if we need one slave per user on the unix machine, there could be a
> ressource problem.
>
> Le samedi 10 octobre 2015 00:02:43 UTC+2, Mark Waite a écrit :
>>
>>
>> On Fri, Oct 9, 2015 at 3:58 PM armando  wrote:
>>
>>> thanks a lot for details.
>>>
>>> I was told that one jenkins installation must be configured as master OR
>>> slave.
>>>
>>> When I read your post, it seems that it is possible to configure a slave
>>> on the same machine without installing another Jenkins installation and
>>> configure it as a slave:
>>>
>>> one jenkins installation could be configured as a master and also be
>>> used to configure other slaves ? right ?
>>>
>>
>> That's right.
>>
>> The general guidance is one slave per machine because a single slave can
>> have multiple executors.  Executors are lighter weight than slaves, since
>> they exist within a slave.  Your use case is atypical because you need
>> different system level attributes (logged in user, signing certificate
>> access, etc.) for different jobs.
>>
>> Mark Waite
>>
>>
> 2015-10-09 23:51 GMT+02:00 Mark Waite :
>>>
>> I can confirm that it is possible to have a master and a slave on the
 same Linux machine where the master runs as one user and the slave runs as
 another user.

 It is atypical because most Jenkins users don't need a specific user to
 execute their build steps.  It is not abnormal or hard to do.

 I've never seen any documentation which describes how to do that,
 though there are help icons beside each of the fields which control that
 behavior.

 Using our Jenkins server (running as the user "jenkins"), I configured
 a slave to run as the user "mwaite" on the same machine by configuring a
 slave, and selecting credentials for the user mwaite from the "Advanced"
 section of the Jenkins nodes configuration page.  Then I ran a job on that
 slave which executed the command "id".  That command showed that the slave
 is running as the user "mwaite" as expected.

 Mark Waite

>>> On Fri, Oct 9, 2015 at 3:15 PM iostrym  wrote:

>>> Thanks a lot for your answer.
>
> Then can you confirm me that it is possible to have a master (user
> jenkins) and its slave (user TOTO) on the same linux machine ?
>
> If yes, is it a abnormal and tricky way of doing (hard to do, badly
> documented, with low chance of success) or is it a common way of doing ?
>
>
> Le vendredi 9 octobre 2015 22:58:05 UTC+2, Mark Waite a écrit :
>
>> The Jenkins slave launch will allow you to launch the slave as the
>> user TOTO.  Then all jobs which run on that slave will be executed as the
>> user TOTO.  You can even run multiple slaves as the same user (though I
>> don't know why you would), so long as you use a distinct directory for 
>> each
>> of the slaves.
>>
>> Mark Waite
>>
>> On Fri, Oct 9, 2015 at 9:03 AM iostrym  wrote:
>>
> We have a multi-user linux server.
>>>
>>> Jenkins in installed and configured as master.
>>>
>>> Some jobs need to be run by a user TOTO for some specific reasons
>>> (license access for example)
>>>
>>> One of our solution is to use "execute shell script on remote host
>>> using ssh" but then the workspace is still on the jenkins user whereas 
>>> data
>>> are generated on the TOTO home directory. We would like to avoid a 
>>> script
>>> to move data generated (pretty dirty)
>>>
>>> So I wonder if it is possible to install a slave jenkins for each
>>> user on the same linux machine ? Then the job workspace will be on TOTO
>>> homespace.
>>>
>>> What is the most-used multi-user linux architecture for Jenkins ?
>>>
>>> Best regards,
>>>
>>> --
>>> 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/68956858-28c3-4b0d-bc1c-f789c3f644fc%40googlegroups.com
>>> 

Re: Workflow question vs. pipelines

2015-10-12 Thread Vincent Latombe
In that case, you could try a stage with concurrency: 1
https://github.com/jenkinsci/workflow-plugin/blob/master/TUTORIAL.md#creating-stages

Vincent

2015-10-12 16:11 GMT+02:00 Nigel Magnay :

> We use the multibranch-workflow. It's ace! :-)
>
> Not sure how it helps though. Our ITU suite is in the same repository on
> the same branch, it's currently split into a separate *job* in order to
> run at a lower cadence than the main build.
>
> e.g:
> Build #1: start 09:00. Enters ITU 09:10. Exits ITU 10:00
> Build #2 : start 09:10.  09:20 Waits @ ConsiderITU until 10:00
> Build #3 : start 09:30.  09:40 Waits @ ConsiderITU until 10:00
>
> At 10:00, Build #2 does not execute ITU step, but build #3 does.
>
>
> I could probably add a function, something like (pseudocode). Feels like a
> kind of global threadlock between projects which makes me wonder if there
> is already a higher-level construct already in existence.
>
>
> node('build') {
>
>build();
>
>if( shouldRunItu() )
>   runITU();
>..
> }
>
> runITU() {
>   stage "ITU";
> }
>
> bool shouldRunItu() {
> stage "ConsiderITU";
>
> while(true) {
>   def builds = get_list_of_builds_for_this_project_and_branch();
>   if( builds contains job in stage ITU )
>sleep for a bit;
>   else {
>  def later_builds =
> filter_builds_that_are_bigger_buildnumber_than_us(builds);
>  def builds_itu =
> filter_only_items_passed_stage_ConsiderITU(later_builds);
>  return ( builds_itu == 0 );
>
>   }
> }
> }
>
>
>
>
>
>
>
>
>
> On Mon, Oct 12, 2015 at 2:21 PM, Vincent Latombe <
> vincent.lato...@gmail.com> wrote:
>
>> Hi Nigel,
>>
>> as far as I understand your statement, I think the multibranch-workflow
>> plugin (currently in beta) could help.
>>
>> I'd get the current branch and only run the ITU stage only if it's
>> currently working on master.
>>
>> Vincent
>>
>> 2015-10-12 13:05 GMT+02:00 Nigel Magnay :
>>
>>> I'm migrating a lot of fairly hairy infrastructure around to use
>>> jerkins-workflow.
>>>
>>> At the moment, we have a number of projects that use triggering: -
>>>
>>> proj-build
>>> proj-ITU
>>> proj-robot-tests
>>>
>>> What I want to migrate is - proj-build builds every commit. proj-ITU is
>>> very expensive, so it gets triggered on successful proj-build builds; but -
>>> it only builds against *master*, so multiple triggerings will just
>>> queue it to build once.
>>>
>>> I'm not sure the best way to model that in workflow (or even if that's
>>> the best option).
>>>
>>> Something like a stage that says
>>>
>>> 1) "if there is an 'ITU' stage currently building, wait until it
>>> finishes.
>>> 2) If there is another build, where the build number is later than us,
>>> and that build started the ITU stage (or is, like us, waiting to enter that
>>> stage) then exit. (I.E: no point in running integration tests against a
>>> version that's now stale).
>>>
>>> Is that something do-able in workflow?
>>>
>>> --
>>> 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/CAPYP83RtRLXwCSV8ZqbpoA_cBg4OSzV-G30s9RhMgYqaoP_Y5Q%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/CAH-zGCgaCCSoKzSHFS2i0uiiaBwA%2BQ98Raq%3D-KAmRpTE-n9HWw%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/CAPYP83SXD_4C9GhPKRymh7OM%3DwZFdhROcgYEsOtnU7kWSNp%3Dcw%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

Re: Jenkins Job

2015-10-12 Thread Baptiste Mathus
Looking for your issue leads to
https://github.com/ansible/ansible/issues/4186

Wild guess here, are you sure your inventory/prod file is correct? This
seems like a pure Ansible error. I would really try and execute the very
same thing through CLI (on the slave manually, here) to see if this does
work or not.

HTH

2015-10-12 16:12 GMT+02:00 Baptiste Mathus :

> (Hi, please use users list in the future for this kind of question, I just
> redirected it to there.)
>
>
> Cheers
>
> PS : you should also try and choose a more specific email subject next
> time. As you can imagine, a lot of things going on here are about "Jenkins
> jobs" ;-).
>
> 2015-10-12 15:47 GMT+02:00 GBANE FETIGUE :
>
>>
>> Hey guys,
>>
>>
>> I built a Jenkins job and for some reason it's not working everything
>> seems fine but the console ouput gives me that error :
>>
>> ERROR: Invalid ini entry: ansible - need more than 1 value to unpack
>> Build step 'Execute shell' marked build as failure
>> Finished: FAILURE
>>
>> By the way here is my ansible script
>>
>> #!/bin/bash
>>
>>
>> ARTIFACT_VERSION=$GIT_COMMIT-$BUILD_ID--$BUILD_NUMBER
>> ARTIFACT_NAME=cs-system-status-$ARTIFACT_VERSION.tar.gz
>>
>> /bin/rm *.tar.gz
>> /bin/tar -cvzf $ARTIFACT_NAME .
>> /usr/bin/s3cmd put $ARTIFACT_NAME s3://snapav-code/cs-system-status/
>>
>> #!/bin/bash
>>
>> ARTIFACT_VERSION=$GIT_COMMIT-$BUILD_ID--$BUILD_NUMBER
>>
>> /bin/echo "$version"
>> cd /usr/bin/ansible
>>
>> cd /var/lib/jenkins/jobs/build-cs-utils/workspace/playbooks
>>
>> ansible-playbook -i inventory/prod -e "
>> target=status
>> artifact_name=cs-system-status
>> artifact_version=$ARTIFACT_VERSION
>> " deploy_system_status.yml
>>
>> #!/bin/bash
>>
>> s3cmd ls s3://snapav-code/cs-system-status/ | sort -r | awk '{NF > 0;print 
>> $4}' | grep ".tar.gz" | tail -n +51 | xargs -r s3cmd del
>>
>>
>>
>> Anybody has an idea ?
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Jenkins Developers" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to jenkinsci-dev+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/jenkinsci-dev/c60e954a-d06c-4188-80db-8de63d9ba99f%40googlegroups.com
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> --
> Baptiste  MATHUS - http://batmat.net
> Sauvez un arbre,
> Mangez un castor !
>



-- 
Baptiste  MATHUS - http://batmat.net
Sauvez un arbre,
Mangez un castor !

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


Re: Jenkins Job

2015-10-12 Thread Baptiste Mathus
(Hi, please use users list in the future for this kind of question, I just
redirected it to there.)


Cheers

PS : you should also try and choose a more specific email subject next
time. As you can imagine, a lot of things going on here are about "Jenkins
jobs" ;-).

2015-10-12 15:47 GMT+02:00 GBANE FETIGUE :

>
> Hey guys,
>
>
> I built a Jenkins job and for some reason it's not working everything
> seems fine but the console ouput gives me that error :
>
> ERROR: Invalid ini entry: ansible - need more than 1 value to unpack
> Build step 'Execute shell' marked build as failure
> Finished: FAILURE
>
> By the way here is my ansible script
>
> #!/bin/bash
>
>
> ARTIFACT_VERSION=$GIT_COMMIT-$BUILD_ID--$BUILD_NUMBER
> ARTIFACT_NAME=cs-system-status-$ARTIFACT_VERSION.tar.gz
>
> /bin/rm *.tar.gz
> /bin/tar -cvzf $ARTIFACT_NAME .
> /usr/bin/s3cmd put $ARTIFACT_NAME s3://snapav-code/cs-system-status/
>
> #!/bin/bash
>
> ARTIFACT_VERSION=$GIT_COMMIT-$BUILD_ID--$BUILD_NUMBER
>
> /bin/echo "$version"
> cd /usr/bin/ansible
>
> cd /var/lib/jenkins/jobs/build-cs-utils/workspace/playbooks
>
> ansible-playbook -i inventory/prod -e "
> target=status
> artifact_name=cs-system-status
> artifact_version=$ARTIFACT_VERSION
> " deploy_system_status.yml
>
> #!/bin/bash
>
> s3cmd ls s3://snapav-code/cs-system-status/ | sort -r | awk '{NF > 0;print 
> $4}' | grep ".tar.gz" | tail -n +51 | xargs -r s3cmd del
>
>
>
> Anybody has an idea ?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jenkinsci-dev+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-dev/c60e954a-d06c-4188-80db-8de63d9ba99f%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Baptiste  MATHUS - http://batmat.net
Sauvez un arbre,
Mangez un castor !

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


Re: Workflow question vs. pipelines

2015-10-12 Thread Nigel Magnay
We use the multibranch-workflow. It's ace! :-)

Not sure how it helps though. Our ITU suite is in the same repository on
the same branch, it's currently split into a separate *job* in order to run
at a lower cadence than the main build.

e.g:
Build #1: start 09:00. Enters ITU 09:10. Exits ITU 10:00
Build #2 : start 09:10.  09:20 Waits @ ConsiderITU until 10:00
Build #3 : start 09:30.  09:40 Waits @ ConsiderITU until 10:00

At 10:00, Build #2 does not execute ITU step, but build #3 does.


I could probably add a function, something like (pseudocode). Feels like a
kind of global threadlock between projects which makes me wonder if there
is already a higher-level construct already in existence.


node('build') {

   build();

   if( shouldRunItu() )
  runITU();
   ..
}

runITU() {
  stage "ITU";
}

bool shouldRunItu() {
stage "ConsiderITU";

while(true) {
  def builds = get_list_of_builds_for_this_project_and_branch();
  if( builds contains job in stage ITU )
   sleep for a bit;
  else {
 def later_builds =
filter_builds_that_are_bigger_buildnumber_than_us(builds);
 def builds_itu =
filter_only_items_passed_stage_ConsiderITU(later_builds);
 return ( builds_itu == 0 );

  }
}
}









On Mon, Oct 12, 2015 at 2:21 PM, Vincent Latombe 
wrote:

> Hi Nigel,
>
> as far as I understand your statement, I think the multibranch-workflow
> plugin (currently in beta) could help.
>
> I'd get the current branch and only run the ITU stage only if it's
> currently working on master.
>
> Vincent
>
> 2015-10-12 13:05 GMT+02:00 Nigel Magnay :
>
>> I'm migrating a lot of fairly hairy infrastructure around to use
>> jerkins-workflow.
>>
>> At the moment, we have a number of projects that use triggering: -
>>
>> proj-build
>> proj-ITU
>> proj-robot-tests
>>
>> What I want to migrate is - proj-build builds every commit. proj-ITU is
>> very expensive, so it gets triggered on successful proj-build builds; but -
>> it only builds against *master*, so multiple triggerings will just queue
>> it to build once.
>>
>> I'm not sure the best way to model that in workflow (or even if that's
>> the best option).
>>
>> Something like a stage that says
>>
>> 1) "if there is an 'ITU' stage currently building, wait until it finishes.
>> 2) If there is another build, where the build number is later than us,
>> and that build started the ITU stage (or is, like us, waiting to enter that
>> stage) then exit. (I.E: no point in running integration tests against a
>> version that's now stale).
>>
>> Is that something do-able in workflow?
>>
>> --
>> 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/CAPYP83RtRLXwCSV8ZqbpoA_cBg4OSzV-G30s9RhMgYqaoP_Y5Q%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/CAH-zGCgaCCSoKzSHFS2i0uiiaBwA%2BQ98Raq%3D-KAmRpTE-n9HWw%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/CAPYP83SXD_4C9GhPKRymh7OM%3DwZFdhROcgYEsOtnU7kWSNp%3Dcw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Workflow question vs. pipelines

2015-10-12 Thread Vincent Latombe
Hi Nigel,

as far as I understand your statement, I think the multibranch-workflow
plugin (currently in beta) could help.

I'd get the current branch and only run the ITU stage only if it's
currently working on master.

Vincent

2015-10-12 13:05 GMT+02:00 Nigel Magnay :

> I'm migrating a lot of fairly hairy infrastructure around to use
> jerkins-workflow.
>
> At the moment, we have a number of projects that use triggering: -
>
> proj-build
> proj-ITU
> proj-robot-tests
>
> What I want to migrate is - proj-build builds every commit. proj-ITU is
> very expensive, so it gets triggered on successful proj-build builds; but -
> it only builds against *master*, so multiple triggerings will just queue
> it to build once.
>
> I'm not sure the best way to model that in workflow (or even if that's the
> best option).
>
> Something like a stage that says
>
> 1) "if there is an 'ITU' stage currently building, wait until it finishes.
> 2) If there is another build, where the build number is later than us, and
> that build started the ITU stage (or is, like us, waiting to enter that
> stage) then exit. (I.E: no point in running integration tests against a
> version that's now stale).
>
> Is that something do-able in workflow?
>
> --
> 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/CAPYP83RtRLXwCSV8ZqbpoA_cBg4OSzV-G30s9RhMgYqaoP_Y5Q%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/CAH-zGCgaCCSoKzSHFS2i0uiiaBwA%2BQ98Raq%3D-KAmRpTE-n9HWw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Get build status info along with url , and build number from JSON API

2015-10-12 Thread Vincent Latombe
Hi Bhupendra,

I've copied the Jenkins Users mailing list, the Dev mailing list isn't
suited for your question.

Try adding ?depth=1 to your url, you'll retrieve more infos about builds.
Make sure you read the API help page available at *http://:8080/jenkins/view//job/validation__cmd/api/.*

Vincent

2015-10-12 14:42 GMT+02:00 bhupendra negi :

> Hello ,
>
> I am building an front-end application for my jenkins server. The
>  objective is to show build history of the job along with status {
> success,failed ,aborted etc:).
>
> I tried this JSON REST API : *  http:// server>:8080/jenkins/view//job/validation__cmd/api/json   , 
> *this
> api gives me this info
>
> "buildable" : true,
>   "builds" : [
> {
>   "number" : 32,
>   "url" : "http://**>/jenkins/view/* name>*/job/*validation__cmd*d/32/"
> },
> {
>   "number" : 31,
>   "url" : "http://**/jenkins/view/* name>*/job/*validation__cmd*/31/"
> },
>
> ]
>
>
> along with other info , I also require status of each build along with number 
> and url , how can I achieve this.  Although i can get Individual build result 
> if I go to  http://**/jenkins/view/* name>*/job/*validation__cmd*/31/api/json . i get result as Success or 
> failure etc.
>
> But I need at once all build url , number , status , so that I can use this 
> info to show in my front end.
>
>
> Thanks ,
>
> Bhupendra
>
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jenkinsci-dev+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-dev/9defba57-0daf-4442-acad-4e1567c97a6d%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/CAH-zGCjquya8psNEfS5Dio5n53nHdZ1EFck%2Bdd2UAw9xF1CZBg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


RE: password change option through email

2015-10-12 Thread Matthew.Webber
> Is there any plugins to provide option for  noraml user to reset password by 
> email. My agenda is user itself should change the password when he/she forgot 
> the password
I’m not aware of any, but anyhow won’t that depend on what authentication 
method Jenkins is using? There are quite a few different ways.

-- 
This e-mail and any attachments may contain confidential, copyright and or 
privileged material, and are for the use of the intended addressee only. If you 
are not the intended addressee or an authorised recipient of the addressee 
please notify us of receipt by returning the e-mail and do not use, copy, 
retain, distribute or disclose the information in or attached to the e-mail.
Any opinions expressed within this e-mail are those of the individual and not 
necessarily of Diamond Light Source Ltd. 
Diamond Light Source Ltd. cannot guarantee that this e-mail or any attachments 
are free from viruses and we cannot accept liability for any damage which you 
may sustain as a result of software viruses which may be transmitted in or with 
the message.
Diamond Light Source Limited (company no. 4375679). Registered in England and 
Wales with its registered office at Diamond House, Harwell Science and 
Innovation Campus, Didcot, Oxfordshire, OX11 0DE, United Kingdom

-- 
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/6836E1DC2DDC174C9D64B7860E5AF5FCA8FF1692%40EXCHMBX01.fed.cclrc.ac.uk.
For more options, visit https://groups.google.com/d/optout.


Re: Use Master/Slave architecture on the same linux machine.

2015-10-12 Thread iostrym
Thanks a lot. tested with success. master and slave on same unix machine 
without doing anything else that playing with "add a node" in Jenkins 
administration.

Concerning ressource taken by jenkins slave. do you have an idea ? Because 
if we need one slave per user on the unix machine, there could be a 
ressource problem.

Le samedi 10 octobre 2015 00:02:43 UTC+2, Mark Waite a écrit :
>
>
> On Fri, Oct 9, 2015 at 3:58 PM armando  > wrote:
>
>> thanks a lot for details. 
>>
>> I was told that one jenkins installation must be configured as master OR 
>> slave.
>>
>> When I read your post, it seems that it is possible to configure a slave 
>> on the same machine without installing another Jenkins installation and 
>> configure it as a slave:
>>
>> one jenkins installation could be configured as a master and also be used 
>> to configure other slaves ? right ?
>>
>
> That's right.
>
> The general guidance is one slave per machine because a single slave can 
> have multiple executors.  Executors are lighter weight than slaves, since 
> they exist within a slave.  Your use case is atypical because you need 
> different system level attributes (logged in user, signing certificate 
> access, etc.) for different jobs.
>
> Mark Waite
>  
>
>> 2015-10-09 23:51 GMT+02:00 Mark Waite 
>> >:
>>
>>> I can confirm that it is possible to have a master and a slave on the 
>>> same Linux machine where the master runs as one user and the slave runs as 
>>> another user.
>>>
>>> It is atypical because most Jenkins users don't need a specific user to 
>>> execute their build steps.  It is not abnormal or hard to do.
>>>
>>> I've never seen any documentation which describes how to do that, though 
>>> there are help icons beside each of the fields which control that behavior.
>>>
>>> Using our Jenkins server (running as the user "jenkins"), I configured a 
>>> slave to run as the user "mwaite" on the same machine by configuring a 
>>> slave, and selecting credentials for the user mwaite from the "Advanced" 
>>> section of the Jenkins nodes configuration page.  Then I ran a job on that 
>>> slave which executed the command "id".  That command showed that the slave 
>>> is running as the user "mwaite" as expected.
>>>
>>> Mark Waite
>>>
>>> On Fri, Oct 9, 2015 at 3:15 PM iostrym > 
>>> wrote:
>>>
 Thanks a lot for your answer.

 Then can you confirm me that it is possible to have a master (user 
 jenkins) and its slave (user TOTO) on the same linux machine ?

 If yes, is it a abnormal and tricky way of doing (hard to do, badly 
 documented, with low chance of success) or is it a common way of doing ?


 Le vendredi 9 octobre 2015 22:58:05 UTC+2, Mark Waite a écrit :

> The Jenkins slave launch will allow you to launch the slave as the 
> user TOTO.  Then all jobs which run on that slave will be executed as the 
> user TOTO.  You can even run multiple slaves as the same user (though I 
> don't know why you would), so long as you use a distinct directory for 
> each 
> of the slaves.
>
> Mark Waite
>
> On Fri, Oct 9, 2015 at 9:03 AM iostrym  wrote:
>
 We have a multi-user linux server.
>>
>> Jenkins in installed and configured as master.
>>
>> Some jobs need to be run by a user TOTO for some specific reasons 
>> (license access for example)
>>
>> One of our solution is to use "execute shell script on remote host 
>> using ssh" but then the workspace is still on the jenkins user whereas 
>> data 
>> are generated on the TOTO home directory. We would like to avoid a 
>> script 
>> to move data generated (pretty dirty)
>>
>> So I wonder if it is possible to install a slave jenkins for each 
>> user on the same linux machine ? Then the job workspace will be on TOTO 
>> homespace.
>>
>> What is the most-used multi-user linux architecture for Jenkins ? 
>>
>> Best regards,
>>
>> -- 
>> 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/68956858-28c3-4b0d-bc1c-f789c3f644fc%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/

password change option through email

2015-10-12 Thread Mallepally Sandeep Reddy
Hi folks


Is there any plugins to provide option for  noraml user to reset password 
by email. My agenda is user itself should change the password when he/she 
forgot the password 


Regards,
Sandeep




-- 
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/1fae7267-193c-4f2a-82e6-6a6dcb29f7e6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins HTTP frontend not acceccable, jenkins/java service needs most CPU/RAM capacity on jenkins service

2015-10-12 Thread jje
Needless to say, that http-frontend is accessible, but it needs a lot of 
time to load which seems very unusual to 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/2042491b-40e0-4769-b4ba-7e03781a3c32%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Workflow question vs. pipelines

2015-10-12 Thread Nigel Magnay
I'm migrating a lot of fairly hairy infrastructure around to use
jerkins-workflow.

At the moment, we have a number of projects that use triggering: -

proj-build
proj-ITU
proj-robot-tests

What I want to migrate is - proj-build builds every commit. proj-ITU is
very expensive, so it gets triggered on successful proj-build builds; but -
it only builds against *master*, so multiple triggerings will just queue it
to build once.

I'm not sure the best way to model that in workflow (or even if that's the
best option).

Something like a stage that says

1) "if there is an 'ITU' stage currently building, wait until it finishes.
2) If there is another build, where the build number is later than us, and
that build started the ITU stage (or is, like us, waiting to enter that
stage) then exit. (I.E: no point in running integration tests against a
version that's now stale).

Is that something do-able in workflow?

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


Re: How is the TFS plugin supposed to checkout sources on remote nodes

2015-10-12 Thread Stefan Drissen
I would steer away from the 4.0.0 plug-in until it is more stable.

   1. a job created with 3.2.0 plugin will simply fail with 4.0.0 plugin - 
   see https://issues.jenkins-ci.org/browse/JENKINS-30355
   2. list workspaces lists all workspaces on all servers - 
   see https://issues.jenkins-ci.org/browse/JENKINS-30330
   3. (windows) slaves have been giving all sorts of NumberFormatExceptions 
   - https://issues.jenkins-ci.org/browse/JENKINS-30382
   

Since installing 4.0.0 slaves were crashing frequently. On the windows 
slaves I uninstalled the TFS clients (VS Team Explorer) and the get latest 
was /generally/ working but often resulting in an unsatisified link error.

Everything was (and now is again) working quite nicely with 3.2.0. On my 
one Linux slave the TEE client is installed.


On Monday, 5 October 2015 20:36:16 UTC+2, Andy Falanga wrote:
>
> I've updated my TFS plugin to 4.0.0 (the latest).  Jenkins is running on a 
> Windows system.  I must build in Linux.  We have 3 systems configured as 
> slave nodes for this purpose.  The project that I configured in Jenkins did 
> farm the job to one of the correct slave nodes.  However, although the 
> build log shows that all of the TFS workspaces (rather irritating that this 
> term is overloaded) were listed, it doesn't show that any sources were 
> checked out.  
>
> I scrapped my old project because it just wasn't working correctly.  I 
> made a "free-style software project" and put in the settings necessary to 
> check out code from my branch in TFS.  How is this normal flow supposed to 
> work?  Am I going to have to use the TEE client on the slave nodes?  If so, 
> I thought that version 4.0.0 of the TFS plugin was supposed to mitigate 
> this?  It claims to at least.  I'd appreciate knowing how this is supposed 
> to work with remote nodes.
>
> Thanks for any help.
>

-- 
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/5d3d3f9e-94b4-423d-9f2d-2b526aa32243%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins slave error

2015-10-12 Thread Sunny Kumar

*Hello Sir, Sorry for the late reply.Bt we have upgraded the jenkins 
slave but still getting the error as below*


*Problem signature:*
  Problem Event Name:APPCRASH
  Application Name: java.exe
  Application Version:   7.0.720.14
  Application Timestamp: 54261f1a
  Fault Module Name:  StackHash_6ba7
  Fault Module Version:6.1.7601.18933
  Fault Module Timestamp:  55a6a196
  Exception Code:  c374
  Exception Offset:000bffc2
  OS Version:  6.1.7601.2.1.0.274.10
  Locale ID: 1033
  Additional Information 1:  6ba7
  Additional Information 2:  
6ba77b6a55d819ca280bd2a92b6490ff
  Additional Information 3:  17ad
  Additional Information 4:  
17ad8868c1a2bbc718c652a26b7cb84f
 

On Thursday, September 24, 2015 at 8:11:15 PM UTC+5:30, 
matthew...@diamond.ac.uk wrote:
>
> Are you using an old version of slave.jar? It needs to be compatible with 
> the version of master.
>
> Also, when reporting problems, it helps to say what Jenkins version you 
> are running, and on what platforms.
>
> *From:* jenkins...@googlegroups.com  [mailto:
> jenkins...@googlegroups.com ] *On Behalf Of *Sunny Kumar
> *Sent:* 24 September 2015 15:12
> *To:* Jenkins Users
> *Subject:* Re: Jenkins slave error
>
>  
>
> Here is the error message i got :
>
>  
>
> INFO: Ping failed. Terminating the channel.
>
> java.net.SocketException: Software caused connection abort: socket write 
> error
>
> at java.net.SocketOutputStream.socketWrite0(Native Method)
>
> at java.net.SocketOutputStream.socketWrite(Unknown Source)
>
> at java.net.SocketOutputStream.write(Unknown Source)
>
> at java.io.BufferedOutputStream.flushBuffer(Unknown Source)
>
> at java.io.BufferedOutputStream.flush(Unknown Source)
>
> at java.io.ObjectOutputStream$BlockDataOutputStream.flush(Unknown 
> Source
>
> )
>
> at java.io.ObjectOutputStream.flush(Unknown Source)
>
> at 
> hudson.remoting.ClassicCommandTransport.write(ClassicCommandTransport
>
> .java:53)
>
> at hudson.remoting.Channel.send(Channel.java:528)
>
> at hudson.remoting.Request.callAsync(Request.java:208)
>
> at hudson.remoting.Channel.callAsync(Channel.java:749)
>
> at hudson.remoting.PingThread.ping(PingThread.java:99)
>
> at hudson.remoting.PingThread.run(PingThread.java:81)
>
>  
>
> Sep 11, 2015 12:20:43 PM hudson.slaves.ChannelPinger$1 onDead
>
> SEVERE: Failed to terminate the channel:
>
> java.net.SocketException: Software caused connection abort: socket write 
> error
>
> at java.net.SocketOutputStream.socketWrite0(Native Method)
>
> at java.net.SocketOutputStream.socketWrite(Unknown Source)
>
> at java.net.SocketOutputStream.write(Unknown Source)
>
> at java.io.BufferedOutputStream.flushBuffer(Unknown Source)
>
> at java.io.BufferedOutputStream.flush(Unknown Source)
>
> at java.io.ObjectOutputStream$BlockDataOutputStream.flush(Unknown 
> Source
>
> )
>
> at java.io.ObjectOutputStream.flush(Unknown Source)
>
> at 
> hudson.remoting.ClassicCommandTransport.write(ClassicCommandTransport
>
> .java:53)
>
> at hudson.remoting.Channel.send(Channel.java:528)
>
> at hudson.remoting.Channel.close(Channel.java:1006)
>
> at hudson.slaves.ChannelPinger$1.onDead(ChannelPinger.java:110)
>
> at hudson.remoting.PingThread.run(PingThread.java:91)
>
>  
>
>  
>
>
> On Thursday, September 24, 2015 at 12:46:08 PM UTC+5:30, Sunny Kumar wrote:
>
> Hello All,
>
> I an getting an error in jenkins slave... " java.io.IOException: An 
> existing connection was forcibly closed by the remote host"Please 
> suggest possible solutions.Thamks in advanced
>
> -- 
> 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/491c0758-bef4-4588-aee8-d7b391e5709d%40googlegroups.com
>  
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>
>  
>
> -- 
>
> This e-mail and any attachments may contain confidential, copyright and or 
> privileged material, and are for the use of the intended addressee only. If 
> you are not the intended addressee or an authorised recipient of the 
> addressee please notify us of receipt by returning the e-m

Re: LDAP in Jenkins Fails, but ldapsearch works

2015-10-12 Thread Sverre Moe
I spoke to soon. It worked for a short while, but now I am getting several 
invalid login "Invalid login information. Please try again. "
There is still nothing in the log.

What is Jenkins doing different than ldapsearch. It should communicate with 
the server on default port 389. I am using a Proxy, but both Jenkins and 
Java has been configured to use this proxy.

fredag 9. oktober 2015 13.47.32 UTC+2 skrev Sverre Moe følgende:
>
> I have done nothing with the LDAP configuration, but now it works. It 
> takes 30 seconds before I'm logged in.
> The only thing I have done is to add Proxy configuration to Jenkins.
>
> I have tried both samaccountname and sAMAccountName. I don't think ours 
> is case sensitive.
>
> Using DOMAIN\username does not work.
>
> fredag 9. oktober 2015 13.29.46 UTC+2 skrev maciej følgende:
>>
>> Sverre Moe (2015-10-09 09:22):
>>
>> User search base: ou=users
>>
>>
>> I think it should be "CN=Users".
>>
>>
>> User search filter: samaccountname={0}
>>
>> Not sure if case matters, but we use "sAMAccountName={0}"
>>
>> Manager DN: ldapu...@arctic.company.com
>>
>>
>> This is Windows AD? If so then I think you should use "domain\user" 
>> format. At least it works for me.
>>
>> 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/f8b9a102-d570-427f-818a-8c1faac79476%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.