Re: FilePath in Jenkinsfile

2016-08-25 Thread Salvian Reynaldi
No need for recursion :)
Actually I tried using new File() firstly, but Jenkins sandbox seems 
prevent calling to new File() (and new DateTime(), etc.)
Moreover, as the docs for FilePath says:
Unlike File 

, which always implies a file path on the current computer, FilePath 
 represents a file path 
on a specific agent or the master
I assume using FilePath is preferred


On Friday, August 26, 2016 at 12:48:30 AM UTC+7, jer...@bodycad.com wrote:
>
> Not sure if you need recursion or not but:
>
> new File(".").eachDir() { it -> println it.getAbsolutePath() } 
> new File(".").eachFileRecurse() { it -> println it.getAbsolutePath() } 
>
> I had many problem with iterator into JenkinsFile where only the first 
> match ever get executed. But if your bash script work you still can leave 
> it there and simply call it with 
> sh "myscript.sh"
>
>
>
>
>

-- 
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/b5825313-c93a-407c-b398-9662bbbe01b3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Try/Catch around Failing Plugin

2016-08-25 Thread wakelt
only if the exception is thrown on that thread the try/catch is executing on. 
If any of the instructions in the try block spawn/use another thread, 
exceptions thrown on that spawned thread will NOT be caught by your catch 
block. 

- Original Message -

From: treadston...@gmail.com 
To: "Jenkins Users"  
Sent: Thursday, August 25, 2016 5:13:06 PM 
Subject: Try/Catch around Failing Plugin 

Hi, 

I'm trying to work around this bug where XUnit XMLs parsing crashes on Windows 
10 nodes (https://issues.jenkins-ci.org/browse/JENKINS-34106) 

I thought perhaps Pipeline steps might be the way to go and wrote this: 

for ( x = 0 ; x < 5 ; x ++) { 
try { 
step ([ $class : 'XUnitPublisher' , testTimeMargin : '3000' , thresholdMode : 1 
, thresholds : [[ $class : 'FailedThreshold' , failureNewThreshold : '' , 
failureThreshold : '' , unstableNewThreshold : '' , unstableThreshold : '0' ], 
[ $class : 'SkippedThreshold' , failureNewThreshold : '' , failureThreshold : 
'' , unstableNewThreshold : '' , unstableThreshold : '' ]], tools : [[ $class : 
'GoogleTestType' , deleteOutputFiles : true , failIfNotNew : false , pattern : 
"_results/*/${config}/${arch}/tests/gtest*.xml" , skipNoTestFiles : true , 
stopProcessingIfError : true ]]]) 
break 
} catch ( any ) { // XUnit fails on Win10, try again! 
echo "XUnit crashed, trying again!" 
sleep ( 5 ) 
} 
} 

But this simply isn't working: 



... 



12:08:16 [xUnit] [INFO] - Starting to record. 
12:08:16 [xUnit] [INFO] - Processing GoogleTest-1.6 
12:08:16 [xUnit] [INFO] - [GoogleTest-1.6] - 11 test report file(s) were found 
with the pattern '_results/*/release/x64/tests/gtest*.xml' relative to 
'c:\jenkins\workspace\pipeline_component_2' for the testing framework 
'GoogleTest-1.6'. 
12:08:21 [xUnit] [ERROR] - The plugin hasn't been performed correctly: remote 
file operation failed: c:\jenkins\workspace\pipeline_component_2 at 
hudson.remoting.Channel@4ef7f3ea:HOSTNAME: java.io.StreamCorruptedException: 
invalid type code: 43 
[Pipeline] } 
[Pipeline] // node 
[Pipeline] End of Pipeline 
Finished: FAILURE 



Shouldn't try/catch intercept the exception? Does anyone have any other ideas 
about how I can force it to retry? 

Thanks in advance! 



-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group. 
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com . 
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/4503604d-af57-4cf6-b5cd-1274c93eb172%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/846522085.7926676.1472160282126.JavaMail.zimbra%40comcast.net.
For more options, visit https://groups.google.com/d/optout.


Try/Catch around Failing Plugin

2016-08-25 Thread treadstoneit
Hi,

I'm trying to work around this bug where XUnit XMLs parsing crashes on 
Windows 10 nodes (https://issues.jenkins-ci.org/browse/JENKINS-34106)

I thought perhaps Pipeline steps might be the way to go and wrote this:

for (x = 0; x < 5; x++) {
try {
step([$class: 'XUnitPublisher', testTimeMargin: '3000', 
thresholdMode: 1, thresholds: [[$class: 'FailedThreshold', 
failureNewThreshold: '', failureThreshold: '', unstableNewThreshold: '', 
unstableThreshold: '0'], [$class: 'SkippedThreshold', failureNewThreshold: 
'', failureThreshold: '', unstableNewThreshold: '', unstableThreshold: '']], 
tools: [[$class: 'GoogleTestType', deleteOutputFiles: true, failIfNotNew: 
false, pattern: "_results/*/${config}/${arch}/tests/gtest*.xml", 
skipNoTestFiles: true, stopProcessingIfError: true]]])
break
} catch (any) { // XUnit fails on Win10, try again!
echo "XUnit crashed, trying again!"
sleep(5)
}
}

But this simply isn't working:

...

12:08:16 [xUnit] [INFO] - Starting to record.
> 12:08:16 [xUnit] [INFO] - Processing GoogleTest-1.6
> 12:08:16 [xUnit] [INFO] - [GoogleTest-1.6] - 11 test report file(s) were 
> found with the pattern '_results/*/release/x64/tests/gtest*.xml' relative 
> to 'c:\jenkins\workspace\pipeline_component_2' for the testing framework 
> 'GoogleTest-1.6'.
>
> *12:08:21 [xUnit] [ERROR] - The plugin hasn't been performed correctly: 
> remote file operation failed: c:\jenkins\workspace\pipeline_component_2 at 
> hudson.remoting.Channel@4ef7f3ea:HOSTNAME: 
> java.io.StreamCorruptedException: invalid type code: 43*[Pipeline] }
> [Pipeline] // node
> [Pipeline] End of Pipeline
> Finished: FAILURE


Shouldn't try/catch intercept the exception?  Does anyone have any other 
ideas about how I can force it to retry?

Thanks in advance!

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


Re: Pipeline bat stdout redirection

2016-08-25 Thread jerome
I tried to execute the 
def out_str = bat([returnStdout:true, script:"..."]);
println out_str;
without any luck, still have the same result. That's sad, why does normal 
print succeed, the Subprocess are run, and the proper return code is 
returned for each subprocess indicating they are running and completing 
properly into Python but the stdout and stderr aren't working or seem to be 
empty!?!? like if something is flushing/rdirecting them into something else.

-- 
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/1b8d3df4-9bbd-4b7f-a524-a110e2192ef4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Pipeline bat stdout redirection

2016-08-25 Thread jerome
This is really weird, even making the subprocess.Popen redirect out and 
error to a file the content is empty inside Jenkinsfile script only. 
Running the same script with the same cwd and same parameters from a 
console work normaly. 
Also try to set sys.stdout = sys.__stdout__ just to make sure, but I guess 
the stdout is already mess up with!?!

-- 
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/05a11f91-5fd5-4869-b2f4-f28b1d7a7c90%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: FilePath in Jenkinsfile

2016-08-25 Thread jerome
See this link for more file manipulation with groovy:

http://grails.asia/groovy-file-examples

-- 
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/80b85542-b177-4c8e-9761-2e0f5c86be82%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Pipeline bat stdout redirection

2016-08-25 Thread jerome
Hi,
I have a problem when executing some batch script with python, everything 
work fine except when python try to run a subprocess.Popen() where the 
stdout and stderr doesn't seem to show into the console and cannot even 
PIPE them! they are eaten by something. The print from that script display 
normally however?!

If I run the Python script form command line the output is normally 
displayed for both subprocess and print.

So I suspect the pipeline is doing some kind of redirection of the stdout 
and stderr that is not clean and the subprocess spawn is not aware of that 
and get all messup.

Anybody know what is going on?

as for why I do Python script, my tooling was made into python and have 
many issue with groovy into JenkinsFile and iterator to still avoid porting 
right now.

Thanks
Jerome 

-- 
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/5ffca22e-0e3a-4205-ab7b-28433fe55f72%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: FilePath in Jenkinsfile

2016-08-25 Thread jerome
Not sure if you need recursion or not but:

new File(".").eachDir() { it -> println it.getAbsolutePath() } 
new File(".").eachFileRecurse() { it -> println it.getAbsolutePath() } 

I had many problem with iterator into JenkinsFile where only the first 
match ever get executed. But if your bash script work you still can leave 
it there and simply call it with 
sh "myscript.sh"




-- 
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/1e137cbc-6df9-4e8b-89eb-df252b0ca886%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Multibranch Pipelines, push, and ignoring commits in certain paths

2016-08-25 Thread Michael Lasevich
We have a setup where git server (Stash) notifies Jenkins server via 
WebHook of commits in certain branches and a MB job executes builds on 
branches matching the change 

This works fine, but we would like to ignore changes not affecting the 
build - so only react to changes in certain files/directories. Git Jenkins 
plugin appears to offer this via "Additional Behavior" called "Polling 
ignores commits in certain paths" - but having this configured, it does not 
appear to work in this scenario (build still happens, even when the change 
is outside of the included paths) - Should this work and do I need to do 
anything else to get it to work?


I realize that plugin is for Polling and we are using WebHook/PUSH - but as 
I understand (and I may be wrong) webhook/push builds simply trigger 
immediate polling mechanism - or is this not the case with push for 
multibranch/pipelines?

Thank you, 

-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/7431a91f-73e0-48b4-b53c-e2192b5b3858%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[ANN]: Ask the Experts Booth at Jenkins World

2016-08-25 Thread Alyssa Tong
Hello,


The event team is organizing the Open Source Hub at Jenkins World 2016
. So far I have secured the
following people to be in the booth to interact with the attendees. I'm
really proud of this list that includes many significant contributors, JAM
leads, board members. This has always been a popular part of the show, so I
expect it to be quite busy this year, too.

If you are coming to the event, please stop by, say hello, ask questions,
pickup stickers, take pictures, etc.


   -

   Omehegan  ( ir
   c: au
   to ja
   ck )
   -

   MarkEWaite  (
   gi t
   pl ug
   in )
   -

   P4paul  ( pe
   rf or
   ce  p
   lu gi
   n) 
   -

   R Tyler Croy  ( in
   fr a
   te am
   , bo
   ar d
   me mb
   er ,
   pu pp
   et  J
   en ki
   ns  m
   od ul
   e) 
   -

   Dty  ( bo
   ar d
   me mb
   er )
   -

   Orrc  ( An
   dr oi
   d)
   -

   Vega  (LA JAM leader)
   -

   Jh86  (LA JAM leader)
   -

   Eddumelendez  (Peru JAM leader)
   -

   Jglick  ( co
   re ,
   pi pe
   li ne
   )
   -

   oleg-nenashev  (
   co re
   , re
   mo ti
   ng )
   -

   And many more


If you are an active member of the Jenkins community and/or a contributor,
please consider being a part of this. This is a great opportunity to talk
to users and bond with other contributors.

Looking forward to meeting you at the conference.


BR,

Alyssa

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAC9wNawXBfwieMQUxe0dKtfD9oOR3jvGjwC%2BrPH%3DFusifL3RHw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Do not delete a completed job workspace under all conditions

2016-08-25 Thread Robert Beddow
Hi,

I'm trying to find a way to keep a workspace and prevent it from being 
deleted by Jenkins.

If I have a project called My_Jenkins_Job, and I run it multiple times 
concurrently, I end up with directories in the form:

./jenkins/workspace/My_Jenkins_Job
./jenkins/workspace/My_Jenkins_Job@2
./jenkins/workspace/My_Jenkins_Job@3
./jenkins/workspace/My_Jenkins_Job@4

If I later run My_Jenkins_Job again, and some of the above are finished, 
the lowest value workspace is removed and the new job runs under the same 
directory path.

e.g. 
Running: ./jenkins/workspace/My_Jenkins_Job
Finished: ./jenkins/workspace/My_Jenkins_Job@2
Finished: ./jenkins/workspace/My_Jenkins_Job@3
Running: ./jenkins/workspace/My_Jenkins_Job@4

I start a new My_Jenkins_Job, ./jenkins/workspace/My_Jenkins_Job@2 is 
deleted, then the new job will run under a new 
./jenkins/workspace/My_Jenkins_Job@2.

My request is to find out how to occasionally force jenkins to skip a 
finished directory because I want to keep it.

So:
Running: ./jenkins/workspace/My_Jenkins_Job
Finished & keep: ./jenkins/workspace/My_Jenkins_Job@2
Finished: ./jenkins/workspace/My_Jenkins_Job@3
Running: ./jenkins/workspace/My_Jenkins_Job@4

and I start a new My_Jenkins_Job, ./jenkins/workspace/My_Jenkins_Job@2 is 
skipped, ./jenkins/workspace/My_Jenkins_Job@3 is deleted, then the new job 
will run under a new ./jenkins/workspace/My_Jenkins_Job@3.

The options I've seen/thought of are:
Custom Workspace - set a custom workspace for each run. This isn't what I 
need, as normally I want standard behaviour, i.e. cycle through the 
workspaces replacing them as they finish. Also, I may decide to keep a 
workspace after the build has started.

Archive workspace - some of the paths in the job are absolute. I believe 
that archiving the workspace will move it to another parent directory, 
which would break all the full paths. Also, this could only be enabled up 
front

Force the job to keep "building" even when it is finished. This doesn't 
work if jenkins is restarted, and again it can only be enabled up front.

The only solution that I can think of is to "touch" a file within the 
workspace e.g.:
./jenkins/workspace/My_Jenkins_Job@2/.jenkins_keepme
And jenkins treats that workspace directory as if it is still building. 
This way I can manually choose to add the file at any time. Also it works 
if jenkins is restarted.

Is there anything like this out there? Or does anyone have any suggestions 
of how else I could get the functionality I'm looking for?

Thanks,
Robert


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


Copy artifact Plugin

2016-08-25 Thread inforedaster .
Hello,

I have a Jenkins 1.642.2 with linux slave

Two jobs for the same project the first A for the build and seconde B to
deploy the artifact the two jobs build in the slave

the jenkins home in the master : /var/lib/jenkins
in the slave : /lun/data1/jenkins_slave

when i start the job B it copie all archived artifactd from Job A but also
i have this error :

Copied 5 artifacts from "MOSAIC_INT_FR_MAVEN-slave" build number 1
/var/lib/jenkins/jobs/Project/modules/com.project.boas$applet-exchange/builds/1/archive

so how can i do to force the copy artifact plugin to look at the slave
home(/lun/data1/jenkins_slave) instead  the master home ( /var/lib/jenkins)

thank you


-- 

*Cordilally*

*Cordialement.*

-- 
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/CAE-yB-NZCK6pWMXdaKL%3DwRA5Eyrsab9oAce%3Dyi1bBLmzoO5P%2BQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Position -- MDM HUB Architecture With Informatica Platform

2016-08-25 Thread Anchit Bajpai
*Hi ,*

*Please reply to*

*anc...@1pointsys.com*






*Position -- MDM HUB Architecture With Informatica Platform*

*Location: Reston, VA*

*LOCAL ONLY*

*Duration: 2 years+*

*Interview Process : Strictly in person.*

*ONLY USC / GC / GC EAD / H1B*



*Description :- *

1. Sound knowledge of MDM HUB architecture and Informatica platform
2. Good experience in working with* Power Center , Data Director, Active
VOS, TOMCXAT, JBOSS, WEBLOGIC and Model Repository.*
3. Excellent knowledge and experience in *installing, configuring and
upgrading Informatica , MDM on UNIX based environments*, workflow
deployment, backup , restore of MDM, Metadata Manager
4. Backup, restore, upgrade Metadata Manager and good knowledge of its
function.
5. *Functional knowledge about ODBC, ORACLE, DB2,SQL SERVER and other RDBMS
systems with DataWarehousing architecture*.
6. Very good *UNIX scripting,* commands and knowledge about tools like
Autosys or other scheduler.








*Anchit Bajpai*

*Technical Recruiter*

1 Point System LLC

Unit 103, 206 N College St, Pineville, North Carolina, 28134

*P*: *803-792-4353* *E* : *anc...@1pointsys.com *

*Yahoo:* *anchit1point...@yahoo.com *  *Hangout:
**anchit1po...@gmail.com *

*W:* www.1pointsys.com

For Job Updates please add: *1 Point System-Jobs/Hotlist*



   *An E-Verified company | An Equal Opportunity Employer*

-- 
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/CAMWoRprba9F0UWW6fx6%2BSOy-%3DwW-G9DD_Ux8sktuGU5iQPJgbQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Position -- Java Developer With Guidewire Gosu Experience

2016-08-25 Thread Anchit Bajpai
*Hi ,*

*Please reply to*

*anc...@1pointsys.com*






*Position -- Java Developer With Guidewire Gosu Experience*



*Location – Urbandale Lowa  or Willmington DE*



*Only USC / GC / GC EAD*



*6+ Months *







*Position Summary::*



*Key Accountabilities:*



   - Demonstrates the capability to resolve routine problems within a
   system or process
   - Design, develop, unit test Guidewire Claim Center Configuration &
   integration solutions
   - Develop custom integration and configuration points to connect
   ClaimCenter application with other internal and external systems
   - Responsible for designing and implementing integration points between
   external applications/services and ClaimCenter
   - Configuring or modifying screen layouts; may include creation of new
   screens, in XML files
   - Writing business rules and other business logic in GOSU, PCF
   - Programming in Java/J2EE, spring, hibernate, web services, MQ,
   Enterprise Java Bean (EJB), SQL
   - Web and application server development; i.e. Web Sphere, Tomcat or Web
   Logic
   - Modify existing functionality or provide minor improvements with
   limited direction
   - Demonstrates solid development processes including code review,
   documentation, unit testing and the ability to debug software issues
   - Work independently on multiple projects while meeting the timely needs
   of the customer
   - May provide rotating on-call support of production systems
   - Travel for this position is approximately 5-10%



*Minimum Qualifications (Education/Experience/Certification/Skills): *



   - 5 years of experience in development of JAVA/J2EE, spring, hibernate,
   web services, Enterprise Java Bean (EJB) & SQL.
   - 2 years of experience developing GOSU (Guidewire Claim Center
   Application)
   - Experience with Software Development Life Cycle
   - 2 years of experience in integrating Guidewire Claim Center
   applicationwith other external systems.
   - 2 years of experience in web and application server development, i.e
   Web sphere, Tomcat , JBOSS or Web Logic.
   - Experience with Scrum or other Agile development methodologies
   - Bachelor’s degree in Computer Science or other related field.













*Anchit Bajpai*

*Technical Recruiter*

1 Point System LLC

Unit 103, 206 N College St, Pineville, North Carolina, 28134

*P*: *803-792-4353* *E* : *anc...@1pointsys.com *

*Yahoo:* *anchit1point...@yahoo.com *  *Hangout:
**anchit1po...@gmail.com *

*W:* www.1pointsys.com

For Job Updates please add: *1 Point System-Jobs/Hotlist*



   *An E-Verified company | An Equal Opportunity Employer*

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


Re: regarding jenkins CD in jenkins 2.0

2016-08-25 Thread Zue Sani
This is when I tried wiith "LET JENKINS CONTROL THIS WINDOWS SLAVE AS A
WINDOWS SERVICE".

Help would be appreciated.

On Wed, Aug 24, 2016 at 10:23 PM, Zue Sani  wrote:

> Hi,
>
> I had setup windows slave using java web start setup. and I tried
> downloaded the jnlp file and tried to run on the jenkins master. It says
> cannot connect to application. (connection refused).
>
> Could you please help me with this.
>
> On Thu, Aug 11, 2016 at 9:34 AM, Jesse McCormick <
> jesse.mccorm...@gmail.com> wrote:
>
>> I wasn't really advocating running SQL scripts manually or via script
>> runner, but if you have the requirement, it can be done.
>>
>> Since we are a java project, we use Flyway.
>>
>> On Thursday, August 11, 2016 at 9:40:39 AM UTC-4, Zue Sani wrote:
>>>
>>> one more quick fire: I had a script for CD. for example if I had 5
>>> successful builds... If I want to deploy build 4 , is the possible???
>>>
>>> And could any let me know what is the best build and deployment scripts
>>> for sql DB??
>>>
>>> On Wed, Aug 10, 2016 at 10:24 AM, suresh kumar 
>>> wrote:
>>>
 Hi Jesse McCormick,
 Every time when deploying done manually updating the Jobs with sql
 scripts is not suggestible as this doesn't give full automation. As much as
 possible we have to eliminate manual tasks while achieving continuous
 deployment.

 -Suresh


 On Wednesday, August 3, 2016 at 8:55:33 PM UTC+5:30, Jesse McCormick
 wrote:
>
> If you can script the SQL commands into a bash/batch script, then you
> should still be able to execute them. If you are using Oracle, there is
> also this plugin: https://wiki.jenkins-ci.org/di
> splay/JENKINS/SQLPlus+Script+Runner+Plugin
>
>
> On Wednesday, August 3, 2016 at 10:28:26 AM UTC-4, Zue Sani wrote:
>>
>> Can we run sql scripts to deploy, which we have been using for manual
>> running of scripts
>>
>> On Sat, Jul 30, 2016 at 10:10 PM, suresh kumar 
>> wrote:
>>
>>> Hi Zue Sani,
>>> There are lot of Open Source and Commercial tools which provides
>>> options for migrating database sql scripts.
>>> Each having their own process to prepare scripts.
>>> Some of OpenSource tools and also having Jenkins plugins to migrate
>>> scripts.
>>> 1) Liquibase
>>> 2) Flyway
>>>
>>> Have a look at these official documentation and usage of Jenkins of
>>> their respective plugins.
>>>
>>> -Suresh
>>>
>>> On Saturday, July 30, 2016 at 7:44:46 PM UTC+5:30, Zue Sani wrote:

 hi,

 I had few questions on CD:


 1.) we are performing deployments manually using sql scripts. Can
 the same scripts run on jenkins when we automate the deployment?.  (I 
 heard
 we need to change them to dacpac scripts is that true?)


 --
>>> 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/to
>>> pic/jenkinsci-users/JxJ-uIO-AD8/unsubscribe.
>>> To unsubscribe from this group and all its topics, send an email to
>>> jenkinsci-use...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/jenkinsci-users/36caa94b-5
>>> 39f-4880-a093-5519b0d9b601%40googlegroups.com
>>> 
>>> .
>>>
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>> --
 You received this message because you are subscribed to a topic in the
 Google Groups "Jenkins Users" group.
 To unsubscribe from this topic, visit https://groups.google.com/d/to
 pic/jenkinsci-users/JxJ-uIO-AD8/unsubscribe.
 To unsubscribe from this group and all its topics, send an email to
 jenkinsci-use...@googlegroups.com.
 To view this discussion on the web visit https://groups.google.com/d/ms
 gid/jenkinsci-users/25cc034e-da2a-4ad8-9e58-825750859d1a%40g
 ooglegroups.com
 
 .

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

>>>
>>> --
>> You received this message because you are subscribed to a topic in the
>> Google Groups "Jenkins Users" group.
>> To unsubscribe from this topic, visit https://groups.google.com/d/to
>> pic/jenkinsci-users/JxJ-uIO-AD8/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/ms
>> 

Building multiple times for same and old commit

2016-08-25 Thread Ashish Yadav
I am seeing Jenkins kick off the build job 3-4 times for the same commit. Is 
most cases the commit was from an earlier time.

Example:

Commit #1: 8/24/16 at 5:34pm
 - Jenkins kicks off build job as expected.

commit notification 41365xxx


Build #2: 8/25/16 at 7:58am
 - Jenkins kicks off build job for the same commit even though it already did 
it last night.

commit notification 41365xxx

Build #3: 8/25/16 at 8:03am
 - Jenkins kicks off build job for the same commit even though it already did 
it last night.

commit notification 41365xxx




What could be causing Jenkins to build for the same commit multiple times and 
at different intervals?
I am running Jenkins v1.642.3 on CentOS 7

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


Re: Jenkins takes too long for loading recent changes of current job (15min approx)

2016-08-25 Thread Mark Waite
The job in the original picture showed only 7 items in its history.  Are
some of your jobs retaining many, many history entries?  If so, that will
slow the Jenkins startup time, and might slow the time to compute changes.
The configuration slicing plugin is very effective at showing (and
changing) the amount of history retained for all jobs in the system.

Has the file system changed any significant characteristics (switched from
a local fast file system to a USB 2.0 file system, or to a storage area
network or to an NFS mount, or some other form of remote file system)?

Is the slower performance specific to a few jobs, or general to all jobs?
If specific to a few jobs, then you might investigate if the workspace
directories for those jobs would benefit by being "wiped" (using the "Wipe
workspace" additional behaviour of the git plugin) and reconstructed the
next time the job runs.

The job in the original picture showed "Git polling log" as one of the
links.  If you're using git, did you change the git version at the same
time you updated Jenkins?  Command line git is generally very fast to
compute changes, so this is an unlikely scenario.

You could check the "raw git" performance in those repositories by changing
into the workspace directory of one or more jobs and executing "git log"
commands of various forms to confirm that command line git is performing
well.

Mark Waite

On Thu, Aug 25, 2016 at 4:48 AM Ravalika  wrote:

> I have tried applying the workaround mentioned for SECURITY-243, but no
> luck
> When i click on recent changes, still takes approx 15 min to display the
> messages.
>
> Thank you
> Renuka
>
>
> On Thursday, August 25, 2016 at 11:26:13 AM UTC+5:30, Ravalika wrote:
>>
>> Thank you,
>> Old Jenkin version is 1.6.3 migrated to jenkins stable version 2.7.1
>>
>>
>> On Monday, August 22, 2016 at 4:54:44 PM UTC+5:30, Daniel Beck wrote:
>>>
>>> When asking about a possible regression, it helps to mention both the
>>> version you're using now, as well as the version you were using before.
>>>
>>> Try applying the workaround mentioned for SECURITY-243 here:
>>>
>>>
>>> https://wiki.jenkins-ci.org/display/SECURITY/Jenkins+Security+Advisory+2016-05-11
>>>
>>>
>>> > On 22.08.2016, at 08:42, Renuka Pampana  wrote:
>>> >
>>> > Hi,
>>> >
>>> > We have migrated recently to Jenkins new stable version. After
>>> migration, Jenkins takes too long for displaying the changes of the current
>>> job (approx. 15min).
>>> >
>>> > Can you please provide me some suggestions to improve the speed?
>>> >
>>> >
>>> > Thanks,
>>> > Renuka
>>> >
>>> > --
>>> > 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/283e63c8-5cd2-459c-8161-0dc95138%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/d4ebe6bc-9eba-4e0e-bc1a-1af6be7cf0af%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/CAO49JtHVJssX6ku3sbqrnEvZL2GD%2Bb-VNEr4Gr4J2hDE3C-LOQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: i am belove problem please help me

2016-08-25 Thread Mark Waite
If you had Jenkins installed previously on that computer, check that
/etc/default/jenkins is setting the value of RUN_STANDALONE=true.  I
believe that the Jenkins installer for Ubuntu (and Debian) wants to start
the Jenkins server, and it won't start the Jenkins server if
RUN_STANDALONE=false.

Mark Waite

On Thu, Aug 25, 2016 at 6:19 AM Mark Waite 
wrote:

> Use "java -version" to check that the java installation is at least Java
> 7.  The latest Jenkins requires at least Java 7.
>
> Check that openjdk or Oracle Java are the java implementations, rather
> than gcj.  Jenkins does not run with gcj as the java implementation.
>
> Ubuntu 12.04 is an older Linux release, nearing the end of its vendor
> provided support life (April 2017 will end support for it).  You might
> perform a test installation on a different computer running a newer Ubuntu
> version (like 14.04 or 16.04).
>
> Mark Waite
>
> On Thu, Aug 25, 2016 at 5:41 AM Shivaji Patne 
> wrote:
>
>> how could i solve this problem ..while installing jenkins on mu
>> ubuntu12.04
>>
>>
>> Setting up jenkins (2.19) ...
>>  * Starting Jenkins Continuous Integration Server jenkins
>>  [fail]
>> invoke-rc.d: initscript jenkins, action "start" failed.
>> dpkg: error processing jenkins (--configure):
>>  subprocess installed post-installation script returned error exit status
>> 7
>> Errors were encountered while processing:
>>  jenkins
>> E: Sub-process /usr/bin/dpkg returned an error code (1)
>>
>>
>>
>> --
>> 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/8391e800-ca65-4791-8f83-5ffd4c51d17b%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/CAO49JtH6d28pZRUkdos8hpq4FRgNQq1i_m7SBpj2067_v66GFw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: i am belove problem please help me

2016-08-25 Thread Mark Waite
Use "java -version" to check that the java installation is at least Java
7.  The latest Jenkins requires at least Java 7.

Check that openjdk or Oracle Java are the java implementations, rather than
gcj.  Jenkins does not run with gcj as the java implementation.

Ubuntu 12.04 is an older Linux release, nearing the end of its vendor
provided support life (April 2017 will end support for it).  You might
perform a test installation on a different computer running a newer Ubuntu
version (like 14.04 or 16.04).

Mark Waite

On Thu, Aug 25, 2016 at 5:41 AM Shivaji Patne  wrote:

> how could i solve this problem ..while installing jenkins on mu ubuntu12.04
>
>
> Setting up jenkins (2.19) ...
>  * Starting Jenkins Continuous Integration Server jenkins
>  [fail]
> invoke-rc.d: initscript jenkins, action "start" failed.
> dpkg: error processing jenkins (--configure):
>  subprocess installed post-installation script returned error exit status 7
> Errors were encountered while processing:
>  jenkins
> E: Sub-process /usr/bin/dpkg returned an error code (1)
>
>
>
> --
> 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/8391e800-ca65-4791-8f83-5ffd4c51d17b%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/CAO49JtHwXPoWUSc%3Do7ojyBNjLsn3%2B8dbnd%2B1S%3DywB%3DEbkkDcTg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


i am belove problem please help me

2016-08-25 Thread Shivaji Patne
how could i solve this problem ..while installing jenkins on mu ubuntu12.04


Setting up jenkins (2.19) ...
 * Starting Jenkins Continuous Integration Server jenkins   
 [fail] 
invoke-rc.d: initscript jenkins, action "start" failed.
dpkg: error processing jenkins (--configure):
 subprocess installed post-installation script returned error exit status 7
Errors were encountered while processing:
 jenkins
E: Sub-process /usr/bin/dpkg returned an error code (1)



-- 
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/8391e800-ca65-4791-8f83-5ffd4c51d17b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins takes too long for loading recent changes of current job (15min approx)

2016-08-25 Thread Ravalika
I have tried applying the workaround mentioned for SECURITY-243, but no luck
When i click on recent changes, still takes approx 15 min to display the 
messages.

Thank you
Renuka

On Thursday, August 25, 2016 at 11:26:13 AM UTC+5:30, Ravalika wrote:
>
> Thank you,
> Old Jenkin version is 1.6.3 migrated to jenkins stable version 2.7.1
>
>
> On Monday, August 22, 2016 at 4:54:44 PM UTC+5:30, Daniel Beck wrote:
>>
>> When asking about a possible regression, it helps to mention both the 
>> version you're using now, as well as the version you were using before. 
>>
>> Try applying the workaround mentioned for SECURITY-243 here: 
>>
>>
>> https://wiki.jenkins-ci.org/display/SECURITY/Jenkins+Security+Advisory+2016-05-11
>>  
>>
>>
>> > On 22.08.2016, at 08:42, Renuka Pampana  wrote: 
>> > 
>> > Hi, 
>> > 
>> > We have migrated recently to Jenkins new stable version. After 
>> migration, Jenkins takes too long for displaying the changes of the current 
>> job (approx. 15min). 
>> > 
>> > Can you please provide me some suggestions to improve the speed? 
>> > 
>> > 
>> > Thanks, 
>> > Renuka 
>> > 
>> > -- 
>> > 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/283e63c8-5cd2-459c-8161-0dc95138%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/d4ebe6bc-9eba-4e0e-bc1a-1af6be7cf0af%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Unable to obtain reports using HTML Publisher Plugin

2016-08-25 Thread Daniel Beck
That's not how URLs in Jenkins work.

There's no 'index.html' file in that directory, but your job is configured to 
show that initially. That's the problem.

> On 24.08.2016, at 19:40, Andy Suarez  wrote:
> 
> So I'm using Jenkins 1.617 and HTML Publisher Plugin.
> 
> The issue:
> 
> Build works, everything is great.
> Reports are created.
> 
> However when I click on the hyperlink, the folder structure is missing parts 
> of the path. Also, there is the index.html page that it is referencing which 
> I don't have in the directory. 
> 
> Does anyone know about this?
> 
> Pictures attached of setup and folder structure. 
> 
> 
> -- 
> 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/b0cb68e8-6ca5-4b08-a5c3-dc9154cdaacf%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/96A9B106-F04A-4A0B-89F9-8EA8E0CB7F52%40beckweb.net.
For more options, visit https://groups.google.com/d/optout.