How to monitor network folder using FSTrigger plugin

2016-10-09 Thread Ram D
Hi All,

Greetings!
Use case: I have to monitor (polling folder) a network folder for build
artifacts (.zip files). When ever there is new .zip file I have to copy it
and trigger downstream builds.

Solution: FSTrigger plugin - seems to do the work of polling folder and and
if changes present in target, build is triggered.

Question: How do I provide a network path for polling which requires
username and password to access it. e.g. *\\100.1.1.1\abc\pqr\xyz\pqr\*.zip*


If I open this in file system explorer it asks for username (with domain)
and password in order to open it. How to pass such parameters in FSTrigger
plugin.

More info: https://wiki.jenkins-ci.org/display/JENKINS/FSTrigger+Plugin

Any help or suggestions appreciated.

Regards,
Ramesh

-- 
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/CAAyu-G6LB96RtDVBUev%2Bb2jvYTRyW3x8ghNH1eM1x5%3DPLGaJYw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Email ext to send html body in Pipeline

2016-10-09 Thread Sam K
This works for most part.  Except, I have a html formatted file which I 
would like to send as the body.  Is it possible?  Thanks

emailext attachmentsPattern: '*.log, *.html', body: 'BUILD_URL = ' + 
env.BUILD_URL, subject: 'END Coded Pipeline Build SOURCE - ' + CODE_BRANCH 
+ ' TESTS - ' + TEST_BRANCH, to: MAILING_LIST

-- 
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/0dfd1488-8683-45fb-a71b-f00d3d915ec9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkinsfile to clone git repo and copy scripts to remote server

2016-10-09 Thread Mark Waite
I'm not sure you need a Jenkinsfile to do that, but it certainly seems like
it can be done with a Jenkinsfile if that is your preference.

https://github.com/jenkinsci/pipeline-examples/blob/master/pipeline-examples/unstash-different-dir/unstashDifferentDir.groovy
shows
how to checkout a repository, stash the files from the original directory,
then unstash them into a new directory on a different agent.

Mark Waite

On Sun, Oct 9, 2016 at 8:54 PM Mario Rodriguez  wrote:

> Hi, I'm new to Jenkins and I'm trying to find how to clone a git repo and
> then copy some of the files into another server.  Any suggestions what
> plugins can I use ?  or any examples?
>
> 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/154248b0-c8b9-4c01-a92e-d5607d3fa5e9%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/CAO49JtHesLH28epCEb9Ke4bH8ZJ%3DcVqBp0bU_iKsvnBB-Zgr_A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Jenkinsfile to clone git repo and copy scripts to remote server

2016-10-09 Thread Mario Rodriguez
Hi, I'm new to Jenkins and I'm trying to find how to clone a git repo and 
then copy some of the files into another server.  Any suggestions what 
plugins can I use ?  or any examples?

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/154248b0-c8b9-4c01-a92e-d5607d3fa5e9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Help with invoking scripts via CURL

2016-10-09 Thread Naveen Srinivasan
Hi, 

  I am trying to automate Jenkins fully using helm and kubernetes 
https://github.com/kubernetes/charts/tree/master/stable/jenkins . By doing 
this the admin password is available via kubernetes   secretes.  The goal 
is to automate bringing up jenkins without logging into the server 
manually. As part of that I would like to execute scripts pointing to 
jenkins server.


When I try to use admin with password 
curl --data-urlencode "script=$(<./test.groovy)" http://admin:cEunYtfPfP@
http://192.168.99.100:31419/scriptText


I am getting an exception
hudson.security.AccessDeniedException2: anonymous is missing the 
Overall/Read permission
at hudson.security.ACL.checkPermission(ACL.java:65)
at hudson.model.Node.checkPermission(Node.java:464)
at jenkins.model.Jenkins.getTarget(Jenkins.java:4426)
at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:674)
at org.kohsuke.stapler.Stapler.invoke(Stapler.java:876)


 Where as If I login into the server and get the API token for admin then 
the same code works if i use the API token.
curl --data-urlencode "script=$(<./test.groovy)" 
http://admin:b8d84d283000b5ce7b446a756f820352@192.168.99.100:31419/scriptText

What am I doing wrong? Is this possible?  Like I had mentioned I would like 
to use automate everything without ever logging into the server.

Thank you!
Naveen
 

0 New
Reply to all

-- 
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/7e52c4db-8759-4f38-8bcf-028930f76498%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Updating jenkins version in docker image cause exit 143

2016-10-09 Thread YusufSalahAdDin
Ok, i'll search it in logs.

I'm using nGinx for deploy in server.

El domingo, 9 de octubre de 2016, 0:34:16 (UTC-5), Baptiste Mathus escribió:
>
> docker logs container_id
>
> The Jenkins one I guess. Also curious why you're running nginx for that 
> test.
>
> Le 7 oct. 2016 9:41 AM, "YusufSalahAdDin"  
> a écrit :
>
>> Where can i found these login, because in bash docker doesn't show me any 
>> log, and, when i get in container, all jekins logs are fine.
>>
>> El viernes, 7 de octubre de 2016, 0:04:06 (UTC-5), Baptiste Mathus 
>> escribió:
>>>
>>> Hey,
>>>
>>> What do the "docker logs" say?
>>>
>>> Le 6 oct. 2016 2:00 AM, "YusufSalahAdDin"  a écrit :
>>>
 Ok, i run it with parameter *-d *and i have this:

 salahaddin@TulipanROG  ~/Proyectos/uzmantech/jenkins   master ●  
 docker-compose up 
 -d 
 
  ✓  4169  18:55:31 
 Starting jenkins_data_1
 Starting jenkins_slave_1
 Starting jenkins_master_1
 Starting jenkins_nginx_1
  salahaddin@TulipanROG  ~/Proyectos/uzmantech/jenkins   master ●  
 docker-compose 
 ps 

  ✓  4170  18:56:47 
   NameCommand   
 State  Ports

 ---
 jenkins_data_1 echo Data container for Je ...   Exit 
 0  
 jenkins_master_1   /bin/tini -- /usr/local/bi ...   Up   
 0.0.0.0:5->5/tcp, 8080/tcp 
 jenkins_nginx_1nginxUp   443/tcp, 
 0.0.0.0:80->80/tcp
 jenkins_slave_1/bin/bashExit 
 0  

 But browser can access to localhost.

 El miércoles, 5 de octubre de 2016, 18:13:33 (UTC-5), YusufSalahAdDin 
 escribió:
>
> I have this in bash:
>
>  docker-compose 
>> up   
>>
>>  1 ↵  4159  18:11:07 
>> Creating jenkins_slave_1
>> Creating jenkins_data_1
>> Creating jenkins_master_1
>> Creating jenkins_nginx_1
>> Attaching to jenkins_slave_1, jenkins_data_1, jenkins_master_1, 
>> jenkins_nginx_1
>> data_1| Data container for Jenkins
>> jenkins_data_1 exited with code 0
>> jenkins_slave_1 exited with code 0
>>
>
>
> El miércoles, 5 de octubre de 2016, 16:02:44 (UTC-5), Daniel Beck 
> escribió:
>>
>> Anything interesting getting logged during startup? 
>>
>> > On 05.10.2016, at 22:55, YusufSalahAdDin  
>> wrote: 
>> > 
>> > Hi guys! 
>> > 
>> > I have the next problem: 
>> > 
>> > I built an image with Jenkins 2.23 and run it, all is well. 
>> > 
>> > Today i want update jenkins to 2.24, so, i change some lines in the 
>> docker file, change version to 2.24 and update sha. 
>> > 
>> > I built it, all is well, but when i up the machine, well, i have an 
>> error 143: 
>> > docker-compose ps   
>>   ✓  4135  15:48:39 
>> >   NameCommandState 
>> Ports 
>> > 
>>  
>> > jenkins_data_1 echo Data container for Je ...   Exit 0 
>>   
>> > jenkins_master_1   /bin/tini -- /usr/local/bi ...   Exit 143   
>>   
>> > jenkins_nginx_1nginxExit 0 
>>   
>> > jenkins_slave_1/bin/bashExit 0   
>> > 
>> > Why? 
>> > 
>> > Can anyone help 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-use...@googlegroups.com. 
>> > To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/jenkinsci-users/e57d4497-0f78-41ce-9c42-a8698361e5bb%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/3f8a1981-d9bd-40b3-aacc-b65d9ee9dce6%40googlegroups.com
  
 

Re: Recommended to inject self-signed certificates in Jenkins official docker image

2016-10-09 Thread sleipnir
Thanks for the answer.
I was precisely trying to avoid maintaining a custom image just for the 
certificates, but if I don't have a choice, I'll go with it.


On Sunday, October 9, 2016 at 12:42:02 PM UTC-4, Victor Martinez wrote:
>
> If I understood correctly you don't need to custom anything but using the 
> FROM instruction in your Dockerfile to specify what Jenkins official image 
>  you would like to use and on the top of it you can set your certificates 
> accordingly:
>
> FROM jenkins:2.19.1
> COPY whatever_credentials /whatever_location
>  
> That's the advantage of using docker, reusing someone else's images and 
> specify your configuration by using the other docker instructions. It's 
> worth using some SCM tool to track any changes in your Dockerfile.
>
> Cheers
>
>
> On Sunday, 9 October 2016 16:43:50 UTC+1, sleipnir wrote:
>>
>> Hi there
>>
>> I am using the official jenkins image available here 
>> https://hub.docker.com/_/jenkins/ and everything is fine so far.
>> But in order to run my builds I need to install some self-signed 
>> certificates to access some internal servers, and I would rather keep using 
>> the default image and not create a custom one.
>>
>> What would be the proper clean way to tell the jenkins image to install 
>> my certificates ? 
>>
>> 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/9440eb9f-ed02-40d1-b48f-4bb7d2f38f7b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Recommended to inject self-signed certificates in Jenkins official docker image

2016-10-09 Thread Victor Martinez
If I understood correctly you don't need to custom anything but using the 
FROM instruction in your Dockerfile to specify what Jenkins official image 
 you would like to use and on the top of it you can set your certificates 
accordingly:

FROM jenkins:2.19.1
COPY whatever_credentials /whatever_location
 
That's the advantage of using docker, reusing someone else's images and 
specify your configuration by using the other docker instructions. It's 
worth using some SCM tool to track any changes in your Dockerfile.

Cheers


On Sunday, 9 October 2016 16:43:50 UTC+1, sleipnir wrote:
>
> Hi there
>
> I am using the official jenkins image available here 
> https://hub.docker.com/_/jenkins/ and everything is fine so far.
> But in order to run my builds I need to install some self-signed 
> certificates to access some internal servers, and I would rather keep using 
> the default image and not create a custom one.
>
> What would be the proper clean way to tell the jenkins image to install my 
> certificates ? 
>
> 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/2248c83f-aaec-45e8-b61d-89c2c395cd7b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Recommended to inject self-signed certificates in Jenkins official docker image

2016-10-09 Thread sleipnir
Hi there

I am using the official jenkins image available here 
https://hub.docker.com/_/jenkins/ and everything is fine so far.
But in order to run my builds I need to install some self-signed 
certificates to access some internal servers, and I would rather keep using 
the default image and not create a custom one.

What would be the proper clean way to tell the jenkins image to install my 
certificates ? 

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/cb117954-cc9f-4c3a-b35a-394b40dc1b3b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


RE: Add a new cloud button not working?

2016-10-09 Thread Jason Pyeron
Solved. I am not doing a root cause on this one because I do not care enough 
about smart-jenkins... Sorry.

> -Original Message-
> From: Jason Pyeron
> Sent: Sunday, October 09, 2016 11:09
> 
> > -Original Message-
> > From: Jason Pyeron
> > Sent: Sunday, October 09, 2016 10:23
> > 
> > I am atempting to follow:  
> https://wiki.jenkins-ci.org/display/JENKINS/Amazon+EC2+Plugin,
>  but I cannot get to step 1.
> > 
> > I think this is likely user error, but I get nothing when I 
>  click the button.
> 
> > 
> > What could I be doing wrong?
> 
> Conflicting plugins.

smart-jenkins 1.0 is the offending plugin.

-Jason

--
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
-   -
- Jason Pyeron  PD Inc. http://www.pdinc.us -
- Principal Consultant  10 West 24th Street #100-
- +1 (443) 269-1555 x333Baltimore, Maryland 21218   -
-   -
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- 


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


RE: Add a new cloud button not working?

2016-10-09 Thread Jason Pyeron
> -Original Message-
> From: Jason Pyeron
> Sent: Sunday, October 09, 2016 10:23
> 
> I am atempting to follow:  
> https://wiki.jenkins-ci.org/display/JENKINS/Amazon+EC2+Plugin, but I cannot 
> get to step 1.
> 
> I think this is likely user error, but I get nothing when I  click the button.

> 
> What could I be doing wrong?

Conflicting plugins.

I ripped out plugins (indiscriminately) until it works, below is the list of 
removed plugins:

compound-slaves 1.2
cvs 2.12
libvirt-slave 1.8.5
maven-plugin 2.13
nodelabelparameter 1.7.2
one-shot-executor 1.1
openstack-cloud 2.11
pipeline-milestone-step 1.1
pipeline-rest-api 2.1
pipeline-stage-view 2.1
powershell 1.3
slave-setup 1.10
slave-status 1.6
slave-utilization-plugin 1.8
smart-jenkins 1.0
ssh-slaves 1.11
subversion 2.6
throttle-concurrents 1.9.0
timestamper 1.8.7
virtualbox 0.7
workflow-aggregator 2.4
workflow-durable-task-step 2.5
ws-cleanup 0.30

-Jason
--
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
-   -
- Jason Pyeron  PD Inc. http://www.pdinc.us -
- Principal Consultant  10 West 24th Street #100-
- +1 (443) 269-1555 x333Baltimore, Maryland 21218   -
-   -
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- 


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


Add a new cloud button not working?

2016-10-09 Thread Jason Pyeron
I am atempting to follow: 
https://wiki.jenkins-ci.org/display/JENKINS/Amazon+EC2+Plugin, but I cannot get 
to step 1.

I think this is likely user error, but I get nothing when I click the button.

I have goolged, to no results.

I tried chrome and IE 11, not observable differences.

I used developer tools in chrome and saw:

On page load:

Uncaught TypeError: Ajax.Request is not a constructor 
http://127.0.0.1:8099/adjuncts/a8d75a0c/lib/form/select/select.js:40
Uncaught TypeError: Ajax.Request is not a constructor 
http://127.0.0.1:8099/static/a8d75a0c/scripts/hudson-behavior.js:1491

On button selection:
[no new console entries]

Below is a dump of http://127.0.0.1:8099/systemInfo

What could I be doing wrong?

-Jason

--
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
-   -
- Jason Pyeron  PD Inc. http://www.pdinc.us -
- Principal Consultant  10 West 24th Street #100-
- +1 (443) 269-1555 x333Baltimore, Maryland 21218   -
-   -
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-


System Properties
awt.toolkit sun.awt.windows.WToolkit 
executable-war C:\Program Files (x86)\Jenkins\jenkins.war 
file.encoding Cp1252 
file.encoding.pkg sun.io 
file.separator \ 
hudson.diyChunking true 
hudson.lifecycle hudson.lifecycle.WindowsServiceLifecycle 
java.awt.graphicsenv sun.awt.Win32GraphicsEnvironment 
java.awt.headless true 
java.awt.printerjob sun.awt.windows.WPrinterJob 
java.class.path C:\Program Files (x86)\Jenkins\jenkins.war 
java.class.version 52.0 
java.endorsed.dirs C:\Program Files (x86)\Jenkins\jre\lib\endorsed 
java.ext.dirs C:\Program Files 
(x86)\Jenkins\jre\lib\ext;C:\Windows\Sun\Java\lib\ext 
java.home C:\Program Files (x86)\Jenkins\jre 
java.io.tmpdir C:\Windows\TEMP\ 
java.library.path C:\Program Files (x86)\Jenkins\jre\bin;TRIMMED-FOR-PRIVACY 
java.runtime.name Java(TM) SE Runtime Environment 
java.runtime.version 1.8.0_66-b18 
java.specification.name Java Platform API Specification 
java.specification.vendor Oracle Corporation 
java.specification.version 1.8 
java.vendor Oracle Corporation 
java.vendor.url http://java.oracle.com/ 
java.vendor.url.bug http://bugreport.sun.com/bugreport/ 
java.version 1.8.0_66 
java.vm.info mixed mode 
java.vm.name Java HotSpot(TM) Client VM 
java.vm.specification.name Java Virtual Machine Specification 
java.vm.specification.vendor Oracle Corporation 
java.vm.specification.version 1.8 
java.vm.vendor Oracle Corporation 
java.vm.version 25.66-b18 
jna.loaded true 
jnidispatch.path C:\Windows\TEMP\jna-683614956\jna4477903569206811723.dll 
line.separator 
 
mail.smtp.sendpartial true 
mail.smtps.sendpartial true 
os.arch x86 
os.name Windows 7 
os.version 6.1 
path.separator ; 
sun.arch.data.model 32 
sun.boot.class.path C:\Program Files 
(x86)\Jenkins\jre\lib\resources.jar;C:\Program Files 
(x86)\Jenkins\jre\lib\rt.jar;C:\Program Files 
(x86)\Jenkins\jre\lib\sunrsasign.jar;C:\Program Files 
(x86)\Jenkins\jre\lib\jsse.jar;C:\Program Files 
(x86)\Jenkins\jre\lib\jce.jar;C:\Program Files 
(x86)\Jenkins\jre\lib\charsets.jar;C:\Program Files 
(x86)\Jenkins\jre\lib\jfr.jar;C:\Program Files (x86)\Jenkins\jre\classes 
sun.boot.library.path C:\Program Files (x86)\Jenkins\jre\bin 
sun.cpu.endian little 
sun.cpu.isalist pentium_pro+mmx pentium_pro pentium+mmx pentium i486 i386 i86 
sun.desktop windows 
sun.io.unicode.encoding UnicodeLittle 
sun.java.command C:\Program Files (x86)\Jenkins\jenkins.war --httpPort=8099 
--webroot=C:\Program Files (x86)\Jenkins\war 
sun.java.launcher SUN_STANDARD 
sun.jnu.encoding Cp1252 
sun.management.compiler HotSpot Client Compiler 
sun.os.patch.level Service Pack 1 
svnkit.http.methods Digest,Basic,NTLM,Negotiate 
svnkit.ssh2.persistent false 
user.country US 
user.dir C:\Program Files (x86)\Jenkins 
user.home C:\Windows\system32\config\systemprofile 
user.language en 
user.name YYY$ 
user.script  
user.timezone America/New_York 
user.variant  

Environment Variables



Name  ↓ 


Value

[some values removed/redacted for privacy]
ALLUSERSPROFILE C:\ProgramData 
APPDATA C:\Windows\system32\config\systemprofile\AppData\Roaming 
BASE C:\Program Files (x86)\Jenkins 
CommonProgramFiles C:\Program Files (x86)\Common Files 
CommonProgramFiles(x86) C:\Program Files (x86)\Common Files 
CommonProgramW6432 C:\Program Files\Common Files 
COMPUTERNAME YYY 
ComSpec C:\Windows\system32\cmd.exe 
DISPLAY :0.0 
FP_NO_HOST_CHECK NO 
JENKINS_HOME C:\Program Files (x86)\Jenkins 
LOCALAPPDATA C:\Windows\system32\config\systemprofile\AppData\Local 
NUMBER_OF_PROCESSORS 2 
OMP_NUM_THREADS 2 
OS Windows_NT 
Path REMOVED-FOR-PRIVACY
PATHEXT .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC 
PROCESSOR_ARCHITECTURE x86 
PROCESSOR_ARCHITEW6432 AMD64 
PROCESSOR_IDENTIFIER Intel64 Family 6 Model 23 Stepping 10, GenuineIntel 
PROCESSOR_LEVEL 6 

Re: Jenkins 2.7.4 seems to leave behind a Java TestNG process (on Windows slave) if the build is aborted/slave loses connection

2016-10-09 Thread Greg Fraley
Thank you for the reply!  Unfortunately, we tried something similar, but 
killing a specific Java process is hard, especially when Jenkins itself is 
a Java process.  The only identifying information has to be accessed 
through the JVM, and the tools to do it are in the JDK, not the JRE, which 
would be a long and gruesome process to put on all our slaves.

I did end up filing a bug, and providing details on related issues, so 
here's to hoping that a fix can be coordinated.

On Sunday, October 9, 2016 at 1:26:42 AM UTC-4, Baptiste Mathus wrote:
>
> We worked around a similar issue in the past with selenium with a job that 
> would leave the webdriver process behind sometimes. 
> The idea for you is to find the right command for finding then killing 
> processes under Windows (or do whatever cleanup is required).
> Then just call that before or after each build.
>
> Le 6 oct. 2016 6:11 PM, "Greg Fraley"  a 
> écrit :
>
>> We have a build step that runs a TestNG suite, with the command looking 
>> something like this:
>>
>> java -jar -Done-jar.main.class=org.testng.TestNG the-jar.jar TheTest.xml
>>
>>
>>  
>> If the process is aborted in any way (manual intervention, Jenkins build 
>> timeout, etc.) OR if the slave loses connection from the master long enough 
>> to fail the build, then there is a Java process left behind.
>>
>> This is particularly damaging to us, as we load a DLL in the Java 
>> process, locking the file handle.  If we attempt the job again, we cannot 
>> load the DLL again, meaning that all future builds will fail without manual 
>> intervention (killing the leftover process manually).
>>
>> Has anyone encountered a similar problem/have a workaround/have the 
>> ability to escalate a bug, if necessary?
>>
>> -- 
>> 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/11c2dda4-ed02-43ba-966c-fddc7c8766f9%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/ca5f61d2-9047-459d-a36c-1f0a9f17472d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: maven.jenkins-ci.org not reachable ? - can't release a plugin ...

2016-10-09 Thread Baptiste Mathus
Hey, better use the dev list fot that question next time.

Wipe out the following lines from your pom to inherit the right ones:
https://github.com/jenkinsci/tikal-multijob-plugin/blob/master/pom.xml#L17L22

That address has long been deprecated in favor of repo.j.o. And in general
it's better to just not override it when possible for the reason above.

HTH

2016-10-09 7:51 GMT+02:00 hagzag :

> Hi all,
>
> Did any of you encounter unavailability of maven.jenkins-ci.org ?
> "http://maven.jenkins-ci.org/content/repositories/releases; doesn't load
> in browser either ...
>
> I am getting this during release:
>
> Uploading: http://maven.jenkins-ci.org/content/repositories/releases/
> org/jenkins-ci/plugins/jenkins-multijob-plugin/1.23/
> jenkins-multijob-plugin-1.23.hpi
> Uploading: http://maven.jenkins-ci.org/content/repositories/releases/
> org/jenkins-ci/plugins/jenkins-multijob-plugin/1.23/
> jenkins-multijob-plugin-1.23.pom
> [INFO] 
> 
> [INFO] BUILD FAILURE
> [INFO] 
> 
> [INFO] Total time: 03:17 min
> [INFO] Finished at: 2016-10-09T08:43:28+03:00
> [INFO] Final Memory: 89M/1585M
> [INFO] 
> 
> [ERROR] Failed to execute goal org.apache.maven.plugins:
> maven-deploy-plugin:2.8.2:deploy (default-deploy) on project
> jenkins-multijob-plugin: Failed to deploy artifacts: Could not transfer
> artifact org.jenkins-ci.plugins:jenkins-multijob-plugin:hpi:1.23 from/to
> maven.jenkins-ci.org (http://maven.jenkins-ci.org/
> content/repositories/releases/): Connect to maven.jenkins-ci.org:80 [
> maven.jenkins-ci.org/199.193.196.24] failed: Operation timed out -> [Help
> 1]
> [ERROR]
> [ERROR] To see the full stack trace of the errors, re-run Maven with
> the -e switch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR]
> [ERROR] For more information about the errors and possible solutions,
> please read the following articles:
> [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/
> MojoExecutionException
> [INFO] 
> 
> [INFO] BUILD FAILURE
> [INFO] 
> 
> [INFO] Total time: 05:53 min
> [INFO] Finished at: 2016-10-09T08:43:28+03:00
> [INFO] Final Memory: 22M/367M
> [INFO] 
> 
> [ERROR] Failed to execute goal org.apache.maven.plugins:
> maven-release-plugin:2.4.2:perform (default-cli) on project
> jenkins-multijob-plugin: Maven execution failed, exit code: '1' -> [Help 1]
> [ERROR]
> [ERROR] To see the full stack trace of the errors, re-run Maven with the
> -e switch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR]
> [ERROR] For more information about the errors and possible solutions,
> please read the following articles:
> [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/
> MojoExecutionException
>
> --
> 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/4ee3d61c-1eb0-44ed-9e79-883177b0900e%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/CANWgJS4WBDP8g6zS%2BA%2B6ptoQw1oH25KMdj5RS-uwzrwUvpR4MA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.