Re: create custom workspace for each execution of a job

2016-02-01 Thread Ryan Campbell
Standard recommendation is to write your job so that it can correctly clean
up the workspace before building, for instance with a git reset or similar.
Git scm step has flags for this.

If you want to analyze the workspace upon failure, perhaps use a try/catch
block and put an archive step in the catch.

On Mon, Feb 1, 2016 at 3:01 PM niristotle okram 
wrote:

> Yes, i started by thinking that the workspace will be auto unique. i
> noticed that when i trigger mulitple build for a job (trying to simulate
> the concurrency), it sometime creates workspaces like
>
> /opt/mount1/jenkins/jobs/GoogleFlow/workspace
>
> /opt/mount1/jenkins/jobs/GoogleFlow/workspace@2
>
> /opt/mount1/jenkins/jobs/GoogleFlow/workspace@3
>
> then, the next comes back to
>
> /opt/mount1/jenkins/jobs/GoogleFlow/workspace
>
>
>
> i am not sure why its coming back to  this workspace 
> "/opt/mount1/jenkins/jobs/GoogleFlow/workspace" instead of 
> "/opt/mount1/jenkins/jobs/GoogleFlow/workspace@4".
>
>
>
> My guess is that the first job that was using the 
> /opt/mount1/jenkins/jobs/GoogleFlow/workspace have moved to the next stage 
> and the workspace have been allocated to the 4th job in the series.
>
>
> This creates a mess to my job1's file in the same workspace as the job4. The 
> job4 starts rewriting on them. I have set my workspace to be like so now, so 
> that each instance of the job uses a specific workspace corresponding to the 
> BUILD_NUMBER. (Ignore the messy stupid code for the stages)
>
>
>
>
>
> node("master") {
> ws("/opt/mount1/jenkins/jobs/GoogleFlow/workspace/${env.BUILD_NUMBER}") {
> stage name: 'sync', concurrency: 1
>   echo "before sync"
>   sh '''touch buildFile
>   echo "This is from ${BUILD_NUMBER}" >> buildFile
>   cat buildFile'''
>   sh "sleep 5"
>   echo "after sync"
>   sh "date"
>
>
> stage name: 'build_and_test', concurrency: 1
>   stage name: 'build'
>   echo "before build"
>   sh "date"
>   sh '''sleep 10
>   cat buildFile'''
>   echo "build 1/3"
>   sh "sleep 5"
>   echo "build 2/3"
>   sh '''sleep 5
>   cat buildFile'''
>   echo "build 3/3"
>   sh "date"
>
> stage name: 'test', concurrency: 1
>   echo "before test"
>   sh "date"
>   sh '''sleep 10
>   cat buildFile'''
>   sh "date"
> }
> }
>
>
>
> I have to decide if i want to delete this workspace after each instance or
> leave them for debugging. If left, then find a way to purge them. Am
> putting myself in a cobweb now?? :)
>
>
>
>
>
>
>
> On Mon, Feb 1, 2016 at 2:48 PM, Ryan Campbell 
> wrote:
>
>> Workspaces should already be unique to a given concurrent build of
>> Jenkins. You shouldn't have to do anything special to enable this.
>>
>> On Mon, Feb 1, 2016, 2:38 PM niristotle okram 
>> wrote:
>>
>>> Okay - i figured out the point of error. i should be using the " instead
>>> of ' . So it should be
>>>
>>> ws("/opt/mount1/jenkins/jobs/GoogleFlow/workspace/${env.BUILD_NUMBER}")
>>>
>>>
>>> On Monday, February 1, 2016 at 2:23:10 PM UTC-6, niristotle okram wrote:

 i am trying to create unique workspace for my workflow/pipeline. The
 workspace will contain certain files that i don't want to mess up when the
 job runs concurrently. my workflow looks something like

 node("master") {
 stage name: 'sync', concurrency: 3
 ws('/opt/mount1/jenkins/jobs/GoogleFlow/workspace/(${env.BUILD_NUMBER})')
 {
 //code block
 }

 stage name: 'build_and_test', concurrency: 1
  ws('/opt/mount1/jenkins/jobs/GoogleFlow/workspace/(${env.BUILD_NUMBER})')
 {
   //code block
 }
 stage name: 'test', concurrency: 3
  ws('/opt/mount1/jenkins/jobs/GoogleFlow/workspace/(${env.BUILD_NUMBER})')
 {
   //code block
 }
 }

 I am expecting jenkins to create workspaces like inside the
 main/default workspace (/opt/mount1/jenkins/jobs/GoogleFlow/workspace) as
 /opt/mount1/jenkins/jobs/GoogleFlow/workspace/1
 /opt/mount1/jenkins/jobs/GoogleFlow/workspace/2
 /opt/mount1/jenkins/jobs/GoogleFlow/workspace/3


 how do i make the env variable ${env.BUILD_NUMBER} get the value while
 creating the workspace?

>>> --
>>> 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/47c32643-6963-47d2-adf0-c288fe7bda35%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
>> 

Re: create custom workspace for each execution of a job

2016-02-01 Thread niristotle okram
ahh - yes the try/catch is an option that i missed. Now for the delete, i
am referring to the various workspace folder that each run of the
job/workflow is going to create with my current script. My current workflow
script is creating directories with the name as the BUILD_NUMBER as unique
workspace for each run. So, i will end up with lots of directories under "
/opt/mount1/jenkins/jobs/GoogleFlow/workspace"

like

/opt/mount1/jenkins/jobs/GoogleFlow/workspace/1

/opt/mount1/jenkins/jobs/GoogleFlow/workspace/2

/opt/mount1/jenkins/jobs/GoogleFlow/workspace/3

/opt/mount1/jenkins/jobs/GoogleFlow/workspace/4

.

.

.

.

.

.

.


is there any DSL command to delete these workspaces, once the job succeeds?


ws("/opt/mount1/jenkins/jobs/GoogleFlow/workspace/${env.BUILD_NUMBER}")


i see an option "deleteDir()", can i use something like this (at the end of
my workflow)?

*deleteDir("/opt/mount1/jenkins/jobs/GoogleFlow/workspace/${env.BUILD_NUMBER}")*

On Mon, Feb 1, 2016 at 3:13 PM, Ryan Campbell 
wrote:

> Standard recommendation is to write your job so that it can correctly
> clean up the workspace before building, for instance with a git reset or
> similar. Git scm step has flags for this.
>
> If you want to analyze the workspace upon failure, perhaps use a try/catch
> block and put an archive step in the catch.
>
> On Mon, Feb 1, 2016 at 3:01 PM niristotle okram 
> wrote:
>
>> Yes, i started by thinking that the workspace will be auto unique. i
>> noticed that when i trigger mulitple build for a job (trying to simulate
>> the concurrency), it sometime creates workspaces like
>>
>> /opt/mount1/jenkins/jobs/GoogleFlow/workspace
>>
>> /opt/mount1/jenkins/jobs/GoogleFlow/workspace@2
>>
>> /opt/mount1/jenkins/jobs/GoogleFlow/workspace@3
>>
>> then, the next comes back to
>>
>> /opt/mount1/jenkins/jobs/GoogleFlow/workspace
>>
>>
>>
>> i am not sure why its coming back to  this workspace 
>> "/opt/mount1/jenkins/jobs/GoogleFlow/workspace" instead of 
>> "/opt/mount1/jenkins/jobs/GoogleFlow/workspace@4".
>>
>>
>>
>> My guess is that the first job that was using the 
>> /opt/mount1/jenkins/jobs/GoogleFlow/workspace have moved to the next stage 
>> and the workspace have been allocated to the 4th job in the series.
>>
>>
>> This creates a mess to my job1's file in the same workspace as the job4. The 
>> job4 starts rewriting on them. I have set my workspace to be like so now, so 
>> that each instance of the job uses a specific workspace corresponding to the 
>> BUILD_NUMBER. (Ignore the messy stupid code for the stages)
>>
>>
>>
>>
>>
>> node("master") {
>> ws("/opt/mount1/jenkins/jobs/GoogleFlow/workspace/${env.BUILD_NUMBER}") {
>> stage name: 'sync', concurrency: 1
>>   echo "before sync"
>>   sh '''touch buildFile
>>   echo "This is from ${BUILD_NUMBER}" >> buildFile
>>   cat buildFile'''
>>   sh "sleep 5"
>>   echo "after sync"
>>   sh "date"
>>
>>
>> stage name: 'build_and_test', concurrency: 1
>>   stage name: 'build'
>>   echo "before build"
>>   sh "date"
>>   sh '''sleep 10
>>   cat buildFile'''
>>   echo "build 1/3"
>>   sh "sleep 5"
>>   echo "build 2/3"
>>   sh '''sleep 5
>>   cat buildFile'''
>>   echo "build 3/3"
>>   sh "date"
>>
>> stage name: 'test', concurrency: 1
>>   echo "before test"
>>   sh "date"
>>   sh '''sleep 10
>>   cat buildFile'''
>>   sh "date"
>> }
>> }
>>
>>
>>
>> I have to decide if i want to delete this workspace after each instance
>> or leave them for debugging. If left, then find a way to purge them. Am
>> putting myself in a cobweb now?? :)
>>
>>
>>
>>
>>
>>
>>
>> On Mon, Feb 1, 2016 at 2:48 PM, Ryan Campbell 
>> wrote:
>>
>>> Workspaces should already be unique to a given concurrent build of
>>> Jenkins. You shouldn't have to do anything special to enable this.
>>>
>>> On Mon, Feb 1, 2016, 2:38 PM niristotle okram 
>>> wrote:
>>>
 Okay - i figured out the point of error. i should be using the "
 instead of ' . So it should be

 ws("/opt/mount1/jenkins/jobs/GoogleFlow/workspace/${env.BUILD_NUMBER}")


 On Monday, February 1, 2016 at 2:23:10 PM UTC-6, niristotle okram wrote:
>
> i am trying to create unique workspace for my workflow/pipeline. The
> workspace will contain certain files that i don't want to mess up when the
> job runs concurrently. my workflow looks something like
>
> node("master") {
> stage name: 'sync', concurrency: 3
> ws('/opt/mount1/jenkins/jobs/GoogleFlow/workspace/(${env.BUILD_NUMBER})')
> {
> //code block
> }
>
> stage name: 'build_and_test', concurrency: 1
>  ws('/opt/mount1/jenkins/jobs/GoogleFlow/workspace/(${env.BUILD_NUMBER})')
> {
>   //code block
> }
> stage name: 'test', concurrency: 3
>  ws('/opt/mount1/jenkins/jobs/GoogleFlow/workspace/(${env.BUILD_NUMBER})')
> {
>   //code block
> }
> }
>
> I am expecting jenkins to 

Re: How to List Plugin on Main Plugins Page

2016-02-01 Thread Steve Taylor
I updated the labels so they are now correct.  How long will it take for 
the changes to be picked up?

Thanks, Steve

On Monday, February 1, 2016 at 12:47:58 PM UTC-7, Andrew Bayer wrote:
>
> I've added the "plugin-must-be-labeled" label to your plugin wiki page. 
> That should eventually get it to show up in the bottom section of the page, 
> until you give it a more appropriate label.
>
> A.
>
> On Mon, Feb 1, 2016 at 11:15 AM, Steve Taylor <
> steve@openmakesoftware.com > wrote:
>
>>
>> I have this plugin:  
>> https://wiki.jenkins-ci.org/display/JENKINS/OpenMake+Release+Engineer+Plugin
>> and I would like it listed on: 
>> https://wiki.jenkins-ci.org/display/JENKINS/Plugins
>>
>> How do I go about getting that page updated?
>>
>> Thanks, Steve
>>
>> -- 
>> 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/2386692b-67ed-4e74-b560-c3e9bfcf8773%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/3de63e50-527e-418f-8d15-774e1b03902d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


How to List Plugin on Main Plugins Page

2016-02-01 Thread Steve Taylor

I have this plugin: 
 https://wiki.jenkins-ci.org/display/JENKINS/OpenMake+Release+Engineer+Plugin
and I would like it listed 
on: https://wiki.jenkins-ci.org/display/JENKINS/Plugins

How do I go about getting that page updated?

Thanks, Steve

-- 
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/2386692b-67ed-4e74-b560-c3e9bfcf8773%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: create custom workspace for each execution of a job

2016-02-01 Thread Ryan Campbell
Workspaces should already be unique to a given concurrent build of Jenkins.
You shouldn't have to do anything special to enable this.

On Mon, Feb 1, 2016, 2:38 PM niristotle okram 
wrote:

> Okay - i figured out the point of error. i should be using the " instead
> of ' . So it should be
>
> ws("/opt/mount1/jenkins/jobs/GoogleFlow/workspace/${env.BUILD_NUMBER}")
>
>
> On Monday, February 1, 2016 at 2:23:10 PM UTC-6, niristotle okram wrote:
>>
>> i am trying to create unique workspace for my workflow/pipeline. The
>> workspace will contain certain files that i don't want to mess up when the
>> job runs concurrently. my workflow looks something like
>>
>> node("master") {
>> stage name: 'sync', concurrency: 3
>> ws('/opt/mount1/jenkins/jobs/GoogleFlow/workspace/(${env.BUILD_NUMBER})')
>> {
>> //code block
>> }
>>
>> stage name: 'build_and_test', concurrency: 1
>>  ws('/opt/mount1/jenkins/jobs/GoogleFlow/workspace/(${env.BUILD_NUMBER})')
>> {
>>   //code block
>> }
>> stage name: 'test', concurrency: 3
>>  ws('/opt/mount1/jenkins/jobs/GoogleFlow/workspace/(${env.BUILD_NUMBER})')
>> {
>>   //code block
>> }
>> }
>>
>> I am expecting jenkins to create workspaces like inside the main/default
>> workspace (/opt/mount1/jenkins/jobs/GoogleFlow/workspace) as
>> /opt/mount1/jenkins/jobs/GoogleFlow/workspace/1
>> /opt/mount1/jenkins/jobs/GoogleFlow/workspace/2
>> /opt/mount1/jenkins/jobs/GoogleFlow/workspace/3
>>
>>
>> how do i make the env variable ${env.BUILD_NUMBER} get the value while
>> creating the workspace?
>>
> --
> 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/47c32643-6963-47d2-adf0-c288fe7bda35%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/CANHK%3DJ2SFE5TGQ_2r3oXd8mis7%2Bq__JvetXW45--A6dd%2BsbpDA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: fetch the api key for the current user?

2016-02-01 Thread milki milk
On Monday, February 1, 2016 at 7:38:49 AM UTC-8, Brian J. Murrell wrote:
>
> On Sun, 2016-01-31 at 23:45 +0100, Daniel Beck wrote: 
> > On 30.01.2016, at 19:10, Brian J. Murrell  > c...@public.gmane.org > wrote: 
> > I think any answer to this would likely be a security issue and 
> > should be reported as such, rather than posted here. 
>
> How do you figure?  And what exactly are you proposing to report and to 
> whom? 
>

The security part comes in when you fetch an arbitrary user's key which you 
generated as "the user running the job."

Fetching the current user's api key doesn't seem to have a REST API 
equivalent. Right now, I just scrape the user's configure page - 
/user/USERNAME/configure - and look for the pattern -- 
name="\_\.apiToken"[^>]+value="(\w+?)".

-milki

-- 
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/d415bfef-d899-4c2f-876c-619b7d1900fa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: create custom workspace for each execution of a job

2016-02-01 Thread niristotle okram
Okay - i figured out the point of error. i should be using the " instead of 
' . So it should be 

ws("/opt/mount1/jenkins/jobs/GoogleFlow/workspace/${env.BUILD_NUMBER}")

On Monday, February 1, 2016 at 2:23:10 PM UTC-6, niristotle okram wrote:
>
> i am trying to create unique workspace for my workflow/pipeline. The 
> workspace will contain certain files that i don't want to mess up when the 
> job runs concurrently. my workflow looks something like 
>
> node("master") {
> stage name: 'sync', concurrency: 3
> ws('/opt/mount1/jenkins/jobs/GoogleFlow/workspace/(${env.BUILD_NUMBER})') {
> //code block
> }
>
> stage name: 'build_and_test', concurrency: 1
>  ws('/opt/mount1/jenkins/jobs/GoogleFlow/workspace/(${env.BUILD_NUMBER})') 
> {
>   //code block
> }
> stage name: 'test', concurrency: 3
>  ws('/opt/mount1/jenkins/jobs/GoogleFlow/workspace/(${env.BUILD_NUMBER})') 
> {
>   //code block
> }
> }
>
> I am expecting jenkins to create workspaces like inside the main/default 
> workspace (/opt/mount1/jenkins/jobs/GoogleFlow/workspace) as 
> /opt/mount1/jenkins/jobs/GoogleFlow/workspace/1
> /opt/mount1/jenkins/jobs/GoogleFlow/workspace/2
> /opt/mount1/jenkins/jobs/GoogleFlow/workspace/3
>
>
> how do i make the env variable ${env.BUILD_NUMBER} get the value while 
> creating the workspace?
>

-- 
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/47c32643-6963-47d2-adf0-c288fe7bda35%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to List Plugin on Main Plugins Page

2016-02-01 Thread Andrew Bayer
I've added the "plugin-must-be-labeled" label to your plugin wiki page.
That should eventually get it to show up in the bottom section of the page,
until you give it a more appropriate label.

A.

On Mon, Feb 1, 2016 at 11:15 AM, Steve Taylor <
steve.tay...@openmakesoftware.com> wrote:

>
> I have this plugin:
> https://wiki.jenkins-ci.org/display/JENKINS/OpenMake+Release+Engineer+Plugin
> and I would like it listed on:
> https://wiki.jenkins-ci.org/display/JENKINS/Plugins
>
> How do I go about getting that page updated?
>
> Thanks, Steve
>
> --
> 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/2386692b-67ed-4e74-b560-c3e9bfcf8773%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/CAPbPdObx%3DUyPJNcQ0zLaMXbe0gyCwQ5%3DmcoAM%3DRx%3DbcoALzzYw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


create custom workspace for each execution of a job

2016-02-01 Thread niristotle okram
i am trying to create unique workspace for my workflow/pipeline. The 
workspace will contain certain files that i don't want to mess up when the 
job runs concurrently. my workflow looks something like 

node("master") {
stage name: 'sync', concurrency: 3
ws('/opt/mount1/jenkins/jobs/GoogleFlow/workspace/(${env.BUILD_NUMBER})') {
//code block
}

stage name: 'build_and_test', concurrency: 1
 ws('/opt/mount1/jenkins/jobs/GoogleFlow/workspace/(${env.BUILD_NUMBER})') {
  //code block
}
stage name: 'test', concurrency: 3
 ws('/opt/mount1/jenkins/jobs/GoogleFlow/workspace/(${env.BUILD_NUMBER})') {
  //code block
}
}

I am expecting jenkins to create workspaces like inside the main/default 
workspace (/opt/mount1/jenkins/jobs/GoogleFlow/workspace) as 
/opt/mount1/jenkins/jobs/GoogleFlow/workspace/1
/opt/mount1/jenkins/jobs/GoogleFlow/workspace/2
/opt/mount1/jenkins/jobs/GoogleFlow/workspace/3


how do i make the env variable ${env.BUILD_NUMBER} get the value while 
creating the workspace?

-- 
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/a6f62ea6-e7f3-4d88-9a87-de450aa7b834%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: create custom workspace for each execution of a job

2016-02-01 Thread niristotle okram
Yes, i started by thinking that the workspace will be auto unique. i
noticed that when i trigger mulitple build for a job (trying to simulate
the concurrency), it sometime creates workspaces like

/opt/mount1/jenkins/jobs/GoogleFlow/workspace

/opt/mount1/jenkins/jobs/GoogleFlow/workspace@2

/opt/mount1/jenkins/jobs/GoogleFlow/workspace@3

then, the next comes back to

/opt/mount1/jenkins/jobs/GoogleFlow/workspace



i am not sure why its coming back to  this workspace
"/opt/mount1/jenkins/jobs/GoogleFlow/workspace" instead of
"/opt/mount1/jenkins/jobs/GoogleFlow/workspace@4".



My guess is that the first job that was using the
/opt/mount1/jenkins/jobs/GoogleFlow/workspace have moved to the next
stage and the workspace have been allocated to the 4th job in the
series.


This creates a mess to my job1's file in the same workspace as the
job4. The job4 starts rewriting on them. I have set my workspace to be
like so now, so that each instance of the job uses a specific
workspace corresponding to the BUILD_NUMBER. (Ignore the messy stupid
code for the stages)





node("master") {
ws("/opt/mount1/jenkins/jobs/GoogleFlow/workspace/${env.BUILD_NUMBER}") {
stage name: 'sync', concurrency: 1
  echo "before sync"
  sh '''touch buildFile
  echo "This is from ${BUILD_NUMBER}" >> buildFile
  cat buildFile'''
  sh "sleep 5"
  echo "after sync"
  sh "date"


stage name: 'build_and_test', concurrency: 1
  stage name: 'build'
  echo "before build"
  sh "date"
  sh '''sleep 10
  cat buildFile'''
  echo "build 1/3"
  sh "sleep 5"
  echo "build 2/3"
  sh '''sleep 5
  cat buildFile'''
  echo "build 3/3"
  sh "date"

stage name: 'test', concurrency: 1
  echo "before test"
  sh "date"
  sh '''sleep 10
  cat buildFile'''
  sh "date"
}
}



I have to decide if i want to delete this workspace after each instance or
leave them for debugging. If left, then find a way to purge them. Am
putting myself in a cobweb now?? :)







On Mon, Feb 1, 2016 at 2:48 PM, Ryan Campbell 
wrote:

> Workspaces should already be unique to a given concurrent build of
> Jenkins. You shouldn't have to do anything special to enable this.
>
> On Mon, Feb 1, 2016, 2:38 PM niristotle okram 
> wrote:
>
>> Okay - i figured out the point of error. i should be using the " instead
>> of ' . So it should be
>>
>> ws("/opt/mount1/jenkins/jobs/GoogleFlow/workspace/${env.BUILD_NUMBER}")
>>
>>
>> On Monday, February 1, 2016 at 2:23:10 PM UTC-6, niristotle okram wrote:
>>>
>>> i am trying to create unique workspace for my workflow/pipeline. The
>>> workspace will contain certain files that i don't want to mess up when the
>>> job runs concurrently. my workflow looks something like
>>>
>>> node("master") {
>>> stage name: 'sync', concurrency: 3
>>> ws('/opt/mount1/jenkins/jobs/GoogleFlow/workspace/(${env.BUILD_NUMBER})')
>>> {
>>> //code block
>>> }
>>>
>>> stage name: 'build_and_test', concurrency: 1
>>>  ws('/opt/mount1/jenkins/jobs/GoogleFlow/workspace/(${env.BUILD_NUMBER})')
>>> {
>>>   //code block
>>> }
>>> stage name: 'test', concurrency: 3
>>>  ws('/opt/mount1/jenkins/jobs/GoogleFlow/workspace/(${env.BUILD_NUMBER})')
>>> {
>>>   //code block
>>> }
>>> }
>>>
>>> I am expecting jenkins to create workspaces like inside the main/default
>>> workspace (/opt/mount1/jenkins/jobs/GoogleFlow/workspace) as
>>> /opt/mount1/jenkins/jobs/GoogleFlow/workspace/1
>>> /opt/mount1/jenkins/jobs/GoogleFlow/workspace/2
>>> /opt/mount1/jenkins/jobs/GoogleFlow/workspace/3
>>>
>>>
>>> how do i make the env variable ${env.BUILD_NUMBER} get the value while
>>> creating the workspace?
>>>
>> --
>> 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/47c32643-6963-47d2-adf0-c288fe7bda35%40googlegroups.com
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Jenkins Users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/jenkinsci-users/i-8gTNug3ck/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/CANHK%3DJ2SFE5TGQ_2r3oXd8mis7%2Bq__JvetXW45--A6dd%2BsbpDA%40mail.gmail.com
> 
> .
>
> For more options, visit https://groups.google.com/d/optout.
>



-- 

Re: fetch the api key for the current user?

2016-02-01 Thread Brian J. Murrell
On Mon, 2016-02-01 at 13:24 -0800, milki milk wrote:
> 
> The security part comes in when you fetch an arbitrary user's key 

I never ever said fetch an *arbitrary* user's key.  I said a job run as
user Bob would fetch the key of the user (again, Bob) who ran it, who
has to be already logged into Jenkins (again, as Bob) to even run the
job.  So it's absolutely no different from you logging into Jenkins,
and going to your user/USERNAME/ page and fetching your key.

> Fetching the current user's api key doesn't seem to have a REST API 
> equivalent.

Yeah.  That was the conclusion I was coming to.

>  Right now, I just scrape the user's configure page - 
> /user/USERNAME/configure - and look for the pattern -- 
> name="\_\.apiToken"[^>]+value="(\w+?)".

I guess that's one way.

Cheers,
b.

-- 
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/1454363076.10065.41.camel%40interlinx.bc.ca.
For more options, visit https://groups.google.com/d/optout.


signature.asc
Description: This is a digitally signed message part


Re: AWS ECS Plugin

2016-02-01 Thread Mulloy Morrow
Was able to get this working. Mounted the docker socket using the mount 
point configs in the jenkins plugin. However, I was getting a permission 
denied when trying to nc or curl the socket for info. I had to run the 
slaves as user root rather than user jenkins. Has either of you come across 
this issue? 

On Monday, February 1, 2016 at 10:48:15 AM UTC-8, Mulloy Morrow wrote:
>
>
> Has anyone successfully been able to mount the Docker UNIX socket on the 
> slave containers? I've attempted to mount this socket using the Jenkins ECS 
> plugin (v1.2) by configuring "container mount points".  (see jenkins config 
> screenshot below)
>
>
> 
>
> On Monday, January 25, 2016 at 7:52:30 AM UTC-8, nicolas de loof wrote:
>>
>> Latest development build for ECS plugin do let you define bind mounts, 
>> see https://jenkins.ci.cloudbees.com/job/plugins/job/amazon-ecs-plugin/
>>
>> 2016-01-25 16:33 GMT+01:00 Brandon Wagner :
>>
>>> If I'm understanding correctly, I would mount the docker.sock to the 
>>> slave container? I created an image extended from the jenkinsci/jnlp-slave 
>>> that does a wget for the docker CLI. 
>>>
>>> However, I don't see a place to mount the docker.sock through the ECS 
>>> configuration options. 
>>>
>>>
>>> -Brandon Wagner
>>>
>>> On Sat, Jan 23, 2016 at 1:08 PM, nicolas de loof  
>>> wrote:
>>>
 You could use docker-custom-build-environment-plugin for this exact 
 scenario, with bind mounted /var/run/docker.sock so you can run containers 
 side by side (vs "in-docker"). Would need some tests on my side to ensure 
 this scenario is supported, I have this on my TOD for a while but never 
 took time to setup a test environment for it...

 2016-01-22 21:01 GMT+01:00 Brandon Wagner :

> I would like to run Docker containers for all of my software projects 
> and dynamically allocate build slaves via ECS (so that I can have a core 
> cluster that can do builds quickly; in contrast to spinning up an EC2 
> instance).
>
>  For example, I have a Java application which is completely contained 
> in a Docker container (I can build it, run tests, and run the actual 
> application with Tomcat all within the container). I want to use this for 
> a 
> variety of different purposes (dev, testing, qa, and production). In 
> order 
> to make it reusable like that, I don't want to include Jenkins Slave 
> packages and expose ports. I'd rather deploy out a Jenkins-Slave 
> container 
> to my ECS cluster, and then have that slave handle running my 
> application's 
> docker container which also performs tests. 
>
> I also support other team applications which are already running 
> docker container builds in Jenkins (locally on the Jenkins Master). I 
> want 
> it to be transparent to them that I'm "outsourcing" build slaves to ECS. 
> It 
> shouldn't matter to them that I'm changing the way Jenkins is performing 
> builds.
>
> Let me know if you (or anyone else) have suggestions based on my goals.
>
> -Brandon Wagner
>
>
> On Fri, Jan 22, 2016 at 2:48 PM, nicolas de loof  > wrote:
>
>> privileged flag has been added to development build (
>> https://jenkins.ci.cloudbees.com/job/plugins/job/amazon-ecs-plugin/)
>> anyway, DinD is probably not a good idea (there's really few docker 
>> usages to actually require it). What's your actual need ?
>>
>> 2016-01-22 20:46 GMT+01:00 Brandon Wagner :
>>
>>> So I ended up figuring my issue out. I think there were a couple of 
>>> issues. My JNLP port was set to 50,000 instead of 5,000 which the 
>>> Jenkins 
>>> Docker Container I was using was mapping to the host port 5000. And my 
>>> Load 
>>> Balancer in front of Jenkins was not forwarding port 5000 to the host 
>>> (only 
>>> 443). Anyways, all of that is fixed and I can now run builds on slaves 
>>> in 
>>> ECS.
>>>
>>> My next problem: I want to use docker-in-docker to run docker builds 
>>> on my docker jenkins slaves. I'm trying to use 
>>> https://github.com/tehranian/dind-jenkins-slave which looks good, 
>>> but I don't see an option on the Jenkins ECS plugin to run the slave as 
>>> privileged which is necessary for docker-in-docker.
>>>
>>>
>>> -Brandon Wagner
>>>
>>> On Fri, Jan 22, 2016 at 7:11 AM, nicolas de loof <
>>> nicolas...@gmail.com> wrote:
>>>
 First look into jenkins logs.
 Also check on ECS a task definition has been created for 
 jenkins-slaves. 
 Also double check ECS nodes can ping your jenkins master URL.

 2016-01-21 

Re: fetch the api key for the current user?

2016-02-01 Thread Daniel Beck

On 01.02.2016, at 22:44, Brian J. Murrell  wrote:

> So it's absolutely no different from you logging into Jenkins,
> and going to your user/USERNAME/ page and fetching your key.

Except in one case you're in the same authenticated browsing session, and in 
the other case, you're not. Arbitrary programs launched e.g. through shell 
scripts don't magically inherit your session cookies.

-- 
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/AC0C7645-9443-4A4F-A588-D43775037DF7%40beckweb.net.
For more options, visit https://groups.google.com/d/optout.


RE: How can I POST data to a remote service in Jenkins pipeline/workflow?

2016-02-01 Thread Scott Richmond
How does one install httpbuilder a part of the Jenkins client? I’ve found
very little instruction on this.



Sent from Outlook Mail  for
Windows 10 phone






*From: *Craig Rodrigues
*Sent: *Monday, 1 February 2016 10:49 PM
*To: *Scott Richmond
*Cc: *Jenkins Users
*Subject: *Re: How can I POST data to a remote service in Jenkins
pipeline/workflow?




Yes, you would need to install HTTPBuilder.

You can decide if you want to install additional groovy libraries,
or if you prefer switch to a scripting language of your choice, which
you can call from inside a Jenkins job in order to access a REST service.
--
Craig

On Sun, Jan 31, 2016 at 2:49 PM, Scott Richmond 
wrote:

> The httpbuilder library doesn’t appear to work as it’s not available. Do I
> have to add it to the default libraries or something?
>
>
>
> Sent from Outlook Mail 
> for Windows 10 phone
>
>
>
>
>
>
> *From: *Craig Rodrigues
> *Sent: *Sunday, 31 January 2016 10:08 PM
> *To: *Jenkins Users
> *Cc: *s.t.richm...@gmail.com
> *Subject: *Re: How can I POST data to a remote service in Jenkins
> pipeline/workflow?
>
>
>
>
> Hi,
>
> curl is one way of calling a REST API from the command-line, but it
> is not the only way.  You can create a Jenkins job, and
> use many languages to call REST API's inside these jobs,
> even on Windows.
>
> For example, if you want to use groovy, using the HTTPBuilder library
> is one way to do it:
> https://www.google.com/search?q=groovy+rest+api
>
> If you want to use C#, you can look at using the restsharp library:
> https://www.google.com/search?q=c+sharp+rest+api
>
> --
> Craig
>
>
> On Sun, Jan 31, 2016 at 9:20 AM, Scott Richmond 
> wrote:
>
>> I require the ability to HTTP POST data to a remote service via some kind
>> of REST client. This will be done on Windows agents, so the native curl
>> support in sh is not suitable. Is there any way to do this in the groovy
>> script?
>>
>>

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


Re: How can I POST data to a remote service in Jenkins pipeline/workflow?

2016-02-01 Thread Craig Rodrigues
Yes, you would need to install HTTPBuilder.

You can decide if you want to install additional groovy libraries,
or if you prefer switch to a scripting language of your choice, which
you can call from inside a Jenkins job in order to access a REST service.
--
Craig

On Sun, Jan 31, 2016 at 2:49 PM, Scott Richmond 
wrote:

> The httpbuilder library doesn’t appear to work as it’s not available. Do I
> have to add it to the default libraries or something?
>
>
>
> Sent from Outlook Mail 
> for Windows 10 phone
>
>
>
>
>
>
> *From: *Craig Rodrigues
> *Sent: *Sunday, 31 January 2016 10:08 PM
> *To: *Jenkins Users
> *Cc: *s.t.richm...@gmail.com
> *Subject: *Re: How can I POST data to a remote service in Jenkins
> pipeline/workflow?
>
>
>
>
> Hi,
>
> curl is one way of calling a REST API from the command-line, but it
> is not the only way.  You can create a Jenkins job, and
> use many languages to call REST API's inside these jobs,
> even on Windows.
>
> For example, if you want to use groovy, using the HTTPBuilder library
> is one way to do it:
> https://www.google.com/search?q=groovy+rest+api
>
> If you want to use C#, you can look at using the restsharp library:
> https://www.google.com/search?q=c+sharp+rest+api
>
> --
> Craig
>
>
> On Sun, Jan 31, 2016 at 9:20 AM, Scott Richmond 
> wrote:
>
>> I require the ability to HTTP POST data to a remote service via some kind
>> of REST client. This will be done on Windows agents, so the native curl
>> support in sh is not suitable. Is there any way to do this in the groovy
>> script?
>>
>>

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


Re: Build pipeline plugin 1.1(.1) release

2016-02-01 Thread Ramnath Ananth
Hi Geoff,

Can I trigger a build using the build REST api in the build pipeline ? As 
of now I can directly trigger a job using /job/job_name/build. But this 
doesn't get reflected on the pipeline view.

Thanks
Ram

On Wednesday, April 13, 2011 at 11:04:33 PM UTC-7, Geoff Bullen wrote:
>
> New version of the build-pipeline plugin has been released.  Please 
> have a look at the release notes (http://www.centrumsystems.com.au/ 
> blog/?p=165 ) 
>
> Big ticket items are: 
>
> * Visualisation of forked pipelines 
> * Much improved look and feel (IMHO) 
> * Major defect fixes 
>
> Let us know what you think... 
> - 
> Geoff Bullen 
> Centrum Systems

-- 
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/96d4861e-b364-420a-a36d-40dc16ae75be%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How do I get a Jenkins server to push bash code to a different server?

2016-02-01 Thread Kiran
If the job just deploys a file to different servers (and uses no slaves) is 
a Freestyle project?

On Monday, February 1, 2016 at 8:53:50 AM UTC-5, Mark Waite wrote:
>
> Yes, a project that runs a job on multiple slaves is a multi-configuration 
> (or "matrix") project.
>
>
> http://stackoverflow.com/questions/7515730/jenkins-and-multi-configuration-matrix-jobs
>  gives 
> a good description of the differences between the two.
>
> https://wiki.jenkins-ci.org/display/JENKINS/Building+a+matrix+project also 
> describes multi-configuration jobs.
>
> Mark Waite
>
> On Mon, Feb 1, 2016 at 5:28 AM Kiran  wrote:
>
>> If I have a single job that I want to run on many computers, that is a 
>> multi-configuration job?  
>>
>> -- 
>> 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/24c25552-d279-4138-8984-b6003015871f%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/53de79c9-a44a-4d4e-a5db-fd0d01f12665%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How do I configure passwordless authentication with the jenkins user? Or is it not necessary?

2016-02-01 Thread Kiran
Part of the problem was that authorized_keys need to have its permissions 
set to 400.

-- 
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/11986737-34ba-47c4-a840-d3f9936a39d8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: create custom workspace for each execution of a job

2016-02-01 Thread Craig Rodrigues
deleteDir() doesn't  take arguments, so you would have to do:

*deleteDir()*

inside the directory that you want to delete.  See:

https://github.com/jenkinsci/workflow-plugin/blob/master/basic-steps/src/main/resources/org/jenkinsci/plugins/workflow/steps/DeleteDirStep/help.html
https://github.com/jenkinsci/workflow-plugin/blob/master/aggregator/src/test/java/org/jenkinsci/plugins/workflow/steps/DeleteDirStepTest.java

--
Craig

On Monday, February 1, 2016, niristotle okram 
wrote:

>
> i see an option "deleteDir()", can i use something like this (at the end
> of my workflow)?
>
>
> *deleteDir("/opt/mount1/jenkins/jobs/GoogleFlow/workspace/${env.BUILD_NUMBER}")*
>
>

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


Quiet Period and Build Now

2016-02-01 Thread Mark Bidewell
Is there a way to assign a quiet period in Jenkins such that it only 
affects automatic builds and build triggers, but "Build Now" requests still 
happen without delay?

-- 
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/6e02001b-e9cc-434b-8c81-615f6f980709%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Opinions for downstream jobs: Check "This build is parameterized" or not

2016-02-01 Thread Brantone
G'day,
Curious question on your own conventions when setting up a job that will be 
downstream (so when A triggers B).
Do you still check the "This build is parameterized" and and fill in *ALL* 
the params it's expecting, or use the params in the job as if they were 
defined and expect upstream calling jobs to know what params are required??
Cheers

-- 
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/48fb63dd-efb8-4294-bccc-ea51044d1051%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Pipeline Plugin: Adjusting the Visualization of Pipeline Steps

2016-02-01 Thread Baptiste Mathus
Thanks Brian.

2016-01-28 23:14 GMT+00:00 brian dawson :

> Unfortunately I am not aware of the ETA but it is imminent
> ᐧ
>
> On Thu, Jan 28, 2016 at 1:58 PM, Baptiste Mathus  wrote:
>
>> BTW, stealing the thread a bit: any ETA for that plugin to be pushed
>> public as announced by kohsuke when kickstarting 2.0?
>> Thanks Brian!
>> Le 28 janv. 2016 9:34 PM, "brian dawson"  a
>> écrit :
>>
>>> Leon,
>>>
>>> Is the attached Workflow Stage view screen a reasonable example of the
>>> level-of-detail you want to display in Workflow/Pipeline Steps UI?
>>>
>>>
>>> On Thursday, January 28, 2016 at 7:20:34 AM UTC-8, Leon Leon wrote:

 Hello everyone,

 We are trying to change the visualization of the pipeline steps to make
 it more understandable for Jenkins users (developers or managers) and make
 it only show relevant steps:.

 i.e: showing nodes like:
  - stages
 - running batch
 - parallel steps

 But not showing other steps like:
 - Allocate node : Start
 Allocate node : Body : Start
 Change Directory : Start

 My question: Is such an operation possible ?
 I tried to made the changes by starting with the class FlowGraphTable.

 Thank you in advance.
 Any help would be greatly appreciated"

>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Jenkins Users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to jenkinsci-users+unsubscr...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/jenkinsci-users/19872f8a-c530-4796-99a4-74537f1f13ce%40googlegroups.com
>>> 
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>> --
>> You received this message because you are subscribed to a topic in the
>> Google Groups "Jenkins Users" group.
>> To unsubscribe from this topic, visit
>> https://groups.google.com/d/topic/jenkinsci-users/GuCWI6U59fw/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/CANWgJS51oskKNKxxe-Gi%2BWi%2BbZAumbBqYZi9nHwDm0YLmVTPYw%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/CADeO%2Bby14iwzhDyuKb7r%3DXO5w8x3z8t%2B9PMS0vpKOOCd8FT%2B0g%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/CANWgJS7OR%2BacoFTnPOuGptPJMgKJ61Lm3%3Dppp%3DezVpiaz3pYYw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


scm sync plugin error on windows

2016-02-01 Thread Kelly Goedert
Hi,

I am successfully using the SCMSync plugin with git on a linux machine. 
Now, I would like to use it on windows. On windows, jenkins is running as a 
service. When trying to save any change I get this error:

Initializing SCM repository for scm-sync-configuration plugin ...
jan 29, 2016 2:04:11 PM INFORMAÇÕES 
hudson.plugins.scm_sync_configuration.ScmSyncConfigurationBusiness 
cleanChekoutScmDirectory
Deleting old checkout SCM directory ...
jan 29, 2016 2:04:11 PM MAIS DETALHADO org.apache.commons.io.FileUtils 
forceDelete
THROW
java.io.IOException: Unable to delete directory C:\Program Files 
(x86)\Jenkins\scm-sync-configuration\checkoutConfiguration.
at org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:1541)
at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:2270)
at 
hudson.plugins.scm_sync_configuration.ScmSyncConfigurationBusiness.cleanChekoutScmDirectory(ScmSyncConfigurationBusiness.java:101)
at 
hudson.plugins.scm_sync_configuration.ScmSyncConfigurationBusiness.initializeRepository(ScmSyncConfigurationBusiness.java:76)
at 
hudson.plugins.scm_sync_configuration.ScmSyncConfigurationPlugin.configure(ScmSyncConfigurationPlugin.java:234)
at 
jenkins.model.GlobalPluginConfiguration.configure(GlobalPluginConfiguration.java:26)
at jenkins.model.Jenkins.configureDescriptor(Jenkins.java:2965)
at jenkins.model.Jenkins.doConfigSubmit(Jenkins.java:2928)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:298)
at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:161)
at 
org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:96)
at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:121)
at 
org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)
at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:746)
at org.kohsuke.stapler.Stapler.invoke(Stapler.java:876)
at org.kohsuke.stapler.Stapler.invoke(Stapler.java:649)
at org.kohsuke.stapler.Stapler.service(Stapler.java:238)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:686)
at 
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1494)
at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:132)
at 
hudson.plugins.scm_sync_configuration.extensions.ScmSyncConfigurationFilter$1.call(ScmSyncConfigurationFilter.java:49)
at 
hudson.plugins.scm_sync_configuration.extensions.ScmSyncConfigurationFilter$1.call(ScmSyncConfigurationFilter.java:44)
at 
hudson.plugins.scm_sync_configuration.ScmSyncConfigurationDataProvider.provideRequestDuring(ScmSyncConfigurationDataProvider.java:106)
at 
hudson.plugins.scm_sync_configuration.extensions.ScmSyncConfigurationFilter.doFilter(ScmSyncConfigurationFilter.java:44)
at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:129)
at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:123)
at 
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482)
at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:49)
at 
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482)
at 
hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
at 
hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76)
at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:171)
at 
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482)
at 
org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:49)
at 
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482)
at 
hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:81)
at 
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482)
at 
org.kohsuke.stapler.DiagnosticThreadNameFilter.doFilter(DiagnosticThreadNameFilter.java:30)
at 
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1474)
at 
org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:499)
at 
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)
at 
org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:533)
at 
org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)
at 
org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1086)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:428)
at 
org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)
at 
org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1020)
at 

Re: Logentries Forwarder - Token

2016-02-01 Thread GS_L
The secret text didn't work for me.

I defined secret text in 'Manage Credentials'.
In the job configuration I checked the 'Use secret text(s) or file(s)',
added a variable base on the secret text I pre defined.
in the 'Logentries Forwarder' - I entered the $var - it didn't work
The 'Use secret text(s) or file(s)' appears after the 'Logentries 
Forwarder', maybe that is the reason it doesn't recognize the $var.


On Wednesday, January 27, 2016 at 10:19:38 AM UTC+2, Victor Martinez wrote:
>
> Hi,
>
>  I'm not sure whether the above suggested post is related to this entry:
>
>  
> https://cloudbees.zendesk.com/hc/en-us/articles/203802500-Injecting-Secrets-into-Jenkins-Build-Jobs
>
>  Which it might help you to set "secrets" globally and be able to use them 
> among different jobs.
>
> Cheers
>
> On Tuesday, 26 January 2016 17:25:25 UTC, GS_L wrote:
>>
>>
>> Hi
>> Is there a way to set the token as global secret param, so I can use it 
>> from several jobs?
>> 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/696a2086-448e-4ad7-bce2-baddbb890754%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How do I get a Jenkins server to push bash code to a different server?

2016-02-01 Thread Mark Waite
Yes, a project that runs a job on multiple slaves is a multi-configuration
(or "matrix") project.

http://stackoverflow.com/questions/7515730/jenkins-and-multi-configuration-matrix-jobs
gives
a good description of the differences between the two.

https://wiki.jenkins-ci.org/display/JENKINS/Building+a+matrix+project also
describes multi-configuration jobs.

Mark Waite

On Mon, Feb 1, 2016 at 5:28 AM Kiran  wrote:

> If I have a single job that I want to run on many computers, that is a
> multi-configuration job?
>
> --
> 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/24c25552-d279-4138-8984-b6003015871f%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/CAO49JtHqbz72z5PCor23ms8jg3Yc_FYuJp4zuU_Zm0quoaQR6A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: How do I configure a Jenkins build to push a file to a specific server on the network?

2016-02-01 Thread Eric Pyle
If I understand the question, you check "Restrict where this project can 
be run" in the job configuration to control where to run the job, 
assuming that the machine where you want to run it is a Jenkins slave.


Eric

On 2/1/2016 7:25 AM, Kiran wrote:
I have those installed.  I click "New Item."  I have some options.  
Where in the "New Item" options do I configure the machine (e.g., DNS 
name)?


On Sunday, January 31, 2016 at 12:16:25 PM UTC-5, Victor Martinez wrote:

You can use the below plugins:
-
https://wiki.jenkins-ci.org/display/JENKINS/Publish+Over+SSH+Plugin 

- https://wiki.jenkins-ci.org/display/JENKINS/SSH+plugin


Then you can configure your job to run certain scripts among
different machines.

I hope it helps

On Saturday, 30 January 2016 03:48:08 UTC, Kiran wrote:

I have Jenkins installed on a Linux server. It can run builds
on itself. I want to create either a Freestyle Project or an
External Job that transfers a bash script and runs it on two
separate linux servers. Where in the GUI do I configure the
destination server when I create a build? I have added "nodes"
in the GUI. I can see the free space of the servers in the
Jenkins GUI, so I know the credentials work. But when I create
a build, I see no field that would tell Jenkins to push the
bash scripts and run them on certain servers.

--
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/11cb70d5-813d-4006-8660-c52b03de12b3%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/56AF6287.6050505%40cd-adapco.com.
For more options, visit https://groups.google.com/d/optout.


Re: REST api to trigger a job in the build pipeline

2016-02-01 Thread Ramnath Ananth
Yes , thats correct.
On Jan 31, 2016 11:26 PM, "Michael Neale"  wrote:

> Well you certainly can call jobB, but I think you want it to show up in
> the plugin visualisation.
>
> On Mon, Feb 1, 2016 at 5:31 PM Ramnath Ananth 
> wrote:
>
>> Yes, for example imagine job A to be build job for a project and job B is
>> a job to deploy the artifacts archived from job A to a DEV or a UAT
>> environment.
>>
>> Basically I want to deploy artifacts to an environment using job B
>> through the REST api, in which I am not successful so far. Maybe this is
>> not possible currently through REST.
>>
>> Will have to explore more.
>>
>>
>>
>> On Sunday, January 31, 2016 at 10:21:07 PM UTC-8, Michael Neale wrote:
>>>
>>> OK I think I understand. So you can trigger jobA (and things work as
>>> expected) but sometimes you want to trigger jobB without jobA, but you
>>> still want it to show up in the pipeline view you have?
>>>
>>> I don't think there is a way to do that at the moment, as the pipeline
>>> viewer plugins only look at the starting job I believe (starting at B would
>>> almost look like a different pipeline).
>>>
>>> I wonder if one way is to trigger jobA, but with an optional parameter
>>> that makes its steps a no-op, so it just flows on to jobB (that is the best
>>> I can think of).
>>>
>>> On Monday, February 1, 2016 at 2:23:49 PM UTC+11, Ramnath Ananth wrote:

 Hi Michael

 This is a freestyle job and yes, I am triggering the job to run.

 I tried your solution to add post build action to trigger job B after
 job A is triggered through the api and it works.

 But my use case is to trigger job B not immediately but at any given
 time.

 So as of now whenever I trigger job B using /job/JobB/build api job B
 successfully runs , but I can't see it on the UI pipeline view of jenkins ,
 the way you see it in the pipeline view when you trigger from the UI
 On Jan 31, 2016 7:10 PM, "Michael Neale"  wrote:

> Ramnath, some questions:
>
> 1) what type of job - freestyle, workflow/pipeline or something else?
> 2) when you say "trigger a deploy job remotely" - do you mean create
> the job? or just trigger it to run ?
>
> Normally what people do is check "Build after other projects are
> built" on JobB config (in the "Build Triggers" section) - and put JobA in
> there. Then, any time JobA completes, JobB will run.
>
> Alternatively, in JobA you could put a post build action to trigger
> JobB.
>
> Then, from an api, you only ever need to trigger JobA and JobB will
> follow.
>
> Otherwise, I don't know what you mean by "linked to the pipeline or
> not".
>
>
>
>
>
> On Saturday, January 30, 2016 at 10:50:06 AM UTC+11, Ramnath Ananth
> wrote:
>>
>> My question is the same as this discussion
>>
>>
>> https://groups.google.com/d/topic/jenkinsci-users/wbggN5aBHgU/discussion
>>
>> Hope this helps
>>
>> Thanks
>> Ramnath
>> On Friday, January 29, 2016 at 2:27:53 PM UTC-8, Ramnath Ananth wrote:
>>>
>>> Hi Jason.
>>>
>>> I have used the mentioned build with parameters option and it works
>>> through REST api. But the build result is not getting reflected in the
>>> Build pipeline view. It is still in its original pipeline color and the
>>> builds are not getting promoted further.
>>>
>>> Thanks
>>> Ramnath
>>>
>>>
>>>
>>> On Friday, January 29, 2016 at 1:35:47 PM UTC-8, Jason Tran wrote:

 Maybe this will help:

 https://wiki.jenkins-ci.org/display/JENKINS/Parameterized+Build

 Look at 'Launching a build with parameters'

 http://server/job/myjob/buildWithParameters?PARAMETER=Value



 On Friday, January 29, 2016 at 10:36:43 AM UTC-8, Ramnath Ananth
 wrote:
>
> Hello,
>
> I am trying to trigger a deploy job remotely using REST api and so
> far I couldn't find any api which would know if the job is linked to 
> the
> pipeline or not.
>
> I want to trigger a build job A. After successful completion of
> job A , I want to trigger deploy job B. But there is no api to link 
> the two
> jobs although I can directly trigger job B successfully.
>
> Please can anyone help me on this.
>
> Thanks
> Ramnath
>
> Discussion link from dev group :
> https://groups.google.com/d/topic/jenkinsci-dev/ucokqMfMQnA/discussion
>
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Jenkins Users" group.
> To unsubscribe from this topic, visit
> 

Re: How do I get a Jenkins server to push bash code to a different server?

2016-02-01 Thread Kiran
If I have a single job that I want to run on many computers, that is a 
multi-configuration job?  

-- 
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/24c25552-d279-4138-8984-b6003015871f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How do I configure a Jenkins build to push a file to a specific server on the network?

2016-02-01 Thread Victor Martinez
Probably in your global settings http://YOUR_JENKINS_URL/configure

On Monday, 1 February 2016 12:25:41 UTC, Kiran wrote:
>
> I have those installed.  I click "New Item."  I have some options.  Where 
> in the "New Item" options do I configure the machine (e.g., DNS name)?
>
> On Sunday, January 31, 2016 at 12:16:25 PM UTC-5, Victor Martinez wrote:
>>
>> You can use the below plugins:
>> - https://wiki.jenkins-ci.org/display/JENKINS/Publish+Over+SSH+Plugin
>> - https://wiki.jenkins-ci.org/display/JENKINS/SSH+plugin
>>
>> Then you can configure your job to run certain scripts among different 
>> machines.
>>
>> I hope it helps
>>
>> On Saturday, 30 January 2016 03:48:08 UTC, Kiran wrote:
>>>
>>> I have Jenkins installed on a Linux server. It can run builds on itself. 
>>> I want to create either a Freestyle Project or an External Job that 
>>> transfers a bash script and runs it on two separate linux servers. Where in 
>>> the GUI do I configure the destination server when I create a build? I have 
>>> added "nodes" in the GUI. I can see the free space of the servers in the 
>>> Jenkins GUI, so I know the credentials work. But when I create a build, I 
>>> see no field that would tell Jenkins to push the bash scripts and run them 
>>> on certain servers.
>>>
>>

-- 
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/2a2be699-0a1b-4005-96b0-f79e6d0ac34b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How do I configure a Jenkins build to push a file to a specific server on the network?

2016-02-01 Thread Kiran
I have those installed.  I click "New Item."  I have some options.  Where 
in the "New Item" options do I configure the machine (e.g., DNS name)?

On Sunday, January 31, 2016 at 12:16:25 PM UTC-5, Victor Martinez wrote:
>
> You can use the below plugins:
> - https://wiki.jenkins-ci.org/display/JENKINS/Publish+Over+SSH+Plugin
> - https://wiki.jenkins-ci.org/display/JENKINS/SSH+plugin
>
> Then you can configure your job to run certain scripts among different 
> machines.
>
> I hope it helps
>
> On Saturday, 30 January 2016 03:48:08 UTC, Kiran wrote:
>>
>> I have Jenkins installed on a Linux server. It can run builds on itself. 
>> I want to create either a Freestyle Project or an External Job that 
>> transfers a bash script and runs it on two separate linux servers. Where in 
>> the GUI do I configure the destination server when I create a build? I have 
>> added "nodes" in the GUI. I can see the free space of the servers in the 
>> Jenkins GUI, so I know the credentials work. But when I create a build, I 
>> see no field that would tell Jenkins to push the bash scripts and run them 
>> on certain servers.
>>
>

-- 
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/11cb70d5-813d-4006-8660-c52b03de12b3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [theme] New Jenkins Material Design Theme

2016-02-01 Thread Afonso F
Hi jierin,

The theme still need a lot of improvements, I created with some
restrictions in mind:

   - Do not make it heavy: Using SVG images avoid the necessity of
   multi-size images
   - Do not use external resources: All images were embeded to the css file
   (planning to do the same with Roboto font)
   - Do not change Jenkins structure: It might affect a plugin behavior
   - Do not use Javascript: I don't want to make it complex or slow. Only
   one css can be used in a sort of ways. Simple Theme Plugin, Self hosted,
   Stylish etc.
   - Use the power of community: There are lots of Jenkins plugins and I
   know that I wont be able to make it works with all of them. But we can try
   to adapt to the most popular ones. We are receiving some pull requests and
   issues with plugin incompatibilities fixes.

I hope in few weeks, with the increase of people using it and reporting
bugs we may release a gorgeous version!

Feel free to help us opening issues or pull requests :D

On Sat, Jan 30, 2016 at 1:41 AM jieryn  wrote:

> +1
>
> Default no-plugin install looks beautiful. Soon as you add any plugin that
> adds an Action, it doesn't look so good anymore (mixed icons).
>
> On Fri, Jan 29, 2016 at 10:30 PM, James Dumay 
> wrote:
>
>> Hi Afonso,
>>
>> Super impressed with your work here! Google have done an excellent job
>> with their Material Design Language – works well in a lot of situations.
>>
>> Did you have to do any changes that could break plugin compatibility
>> along the way? I know when various people have looked at this sort of work
>> here at CloudBees we've found it difficult to do this in a way that doesn't
>> mess up plugins. If there is anything you could share on this topic that
>> would be fantastic.
>>
>> Thanks,
>> James Dumay
>> CloudBees
>>
>> On Friday, January 22, 2016 at 4:16:50 AM UTC+11, Afonso F wrote:
>>>
>>> Hi guys,
>>>
>>> I created a Jenkins theme based on Google Material Design. It changes
>>> the layout and icons using SVG ones. Take a look!
>>>
>>> http://afonsof.com/jenkins-material-theme/
>>>
>>>
>>> 
>>> 
>>> 
>>>
>>>
>>>
>>>
>>>
>>> --
>>
> 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/31c07159-c02b-4742-a079-9717c6fb7dcf%40googlegroups.com
>> 
>> .
>>
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Jenkins Users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/jenkinsci-users/j-61ry_Qp6M/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/CAArU9iZm1uEpoQ%2BdOUTQAOHFp3hq74SKCRHym82qh%2Bsh%2BcnYfA%40mail.gmail.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>
-- 

Afonso F

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


Re: AWS ECS Plugin

2016-02-01 Thread nicolas de loof
docker socket is only accessible to users in docker group or to root.
running from a container doesn't bypass such permission check.

2016-02-01 23:55 GMT+01:00 Mulloy Morrow :

> Was able to get this working. Mounted the docker socket using the mount
> point configs in the jenkins plugin. However, I was getting a permission
> denied when trying to nc or curl the socket for info. I had to run the
> slaves as user root rather than user jenkins. Has either of you come across
> this issue?
>
>
> On Monday, February 1, 2016 at 10:48:15 AM UTC-8, Mulloy Morrow wrote:
>>
>>
>> Has anyone successfully been able to mount the Docker UNIX socket on the
>> slave containers? I've attempted to mount this socket using the Jenkins ECS
>> plugin (v1.2) by configuring "container mount points".  (see jenkins config
>> screenshot below)
>>
>>
>> 
>>
>> On Monday, January 25, 2016 at 7:52:30 AM UTC-8, nicolas de loof wrote:
>>>
>>> Latest development build for ECS plugin do let you define bind mounts,
>>> see https://jenkins.ci.cloudbees.com/job/plugins/job/amazon-ecs-plugin/
>>>
>>> 2016-01-25 16:33 GMT+01:00 Brandon Wagner :
>>>
 If I'm understanding correctly, I would mount the docker.sock to the
 slave container? I created an image extended from the jenkinsci/jnlp-slave
 that does a wget for the docker CLI.

 However, I don't see a place to mount the docker.sock through the ECS
 configuration options.


 -Brandon Wagner

 On Sat, Jan 23, 2016 at 1:08 PM, nicolas de loof 
 wrote:

> You could use docker-custom-build-environment-plugin for this exact
> scenario, with bind mounted /var/run/docker.sock so you can run containers
> side by side (vs "in-docker"). Would need some tests on my side to ensure
> this scenario is supported, I have this on my TOD for a while but never
> took time to setup a test environment for it...
>
> 2016-01-22 21:01 GMT+01:00 Brandon Wagner :
>
>> I would like to run Docker containers for all of my software projects
>> and dynamically allocate build slaves via ECS (so that I can have a core
>> cluster that can do builds quickly; in contrast to spinning up an EC2
>> instance).
>>
>>  For example, I have a Java application which is completely contained
>> in a Docker container (I can build it, run tests, and run the actual
>> application with Tomcat all within the container). I want to use this 
>> for a
>> variety of different purposes (dev, testing, qa, and production). In 
>> order
>> to make it reusable like that, I don't want to include Jenkins Slave
>> packages and expose ports. I'd rather deploy out a Jenkins-Slave 
>> container
>> to my ECS cluster, and then have that slave handle running my 
>> application's
>> docker container which also performs tests.
>>
>> I also support other team applications which are already running
>> docker container builds in Jenkins (locally on the Jenkins Master). I 
>> want
>> it to be transparent to them that I'm "outsourcing" build slaves to ECS. 
>> It
>> shouldn't matter to them that I'm changing the way Jenkins is performing
>> builds.
>>
>> Let me know if you (or anyone else) have suggestions based on my
>> goals.
>>
>> -Brandon Wagner
>>
>>
>> On Fri, Jan 22, 2016 at 2:48 PM, nicolas de loof <
>> nicolas...@gmail.com> wrote:
>>
>>> privileged flag has been added to development build (
>>> https://jenkins.ci.cloudbees.com/job/plugins/job/amazon-ecs-plugin/)
>>> anyway, DinD is probably not a good idea (there's really few docker
>>> usages to actually require it). What's your actual need ?
>>>
>>> 2016-01-22 20:46 GMT+01:00 Brandon Wagner :
>>>
 So I ended up figuring my issue out. I think there were a couple of
 issues. My JNLP port was set to 50,000 instead of 5,000 which the 
 Jenkins
 Docker Container I was using was mapping to the host port 5000. And my 
 Load
 Balancer in front of Jenkins was not forwarding port 5000 to the host 
 (only
 443). Anyways, all of that is fixed and I can now run builds on slaves 
 in
 ECS.

 My next problem: I want to use docker-in-docker to run docker
 builds on my docker jenkins slaves. I'm trying to use
 https://github.com/tehranian/dind-jenkins-slave which looks good,
 but I don't see an option on the Jenkins ECS plugin to run the slave as
 privileged which is necessary for docker-in-docker.


 -Brandon Wagner

 On Fri, Jan 22, 2016 at 7:11 AM, nicolas de loof 

Re: AWS ECS Plugin

2016-02-01 Thread Mulloy Morrow



Has anyone successfully been able to mount the Docker UNIX socket on the 
slave containers? I've attempted to mount this socket using the Jenkins ECS 
plugin (v1.2) by configuring "container mount points".  (see jenkins config 
screenshot below)



On Monday, January 25, 2016 at 7:52:30 AM UTC-8, nicolas de loof wrote:
>
> Latest development build for ECS plugin do let you define bind mounts, see 
> https://jenkins.ci.cloudbees.com/job/plugins/job/amazon-ecs-plugin/
>
> 2016-01-25 16:33 GMT+01:00 Brandon Wagner  >:
>
>> If I'm understanding correctly, I would mount the docker.sock to the 
>> slave container? I created an image extended from the jenkinsci/jnlp-slave 
>> that does a wget for the docker CLI. 
>>
>> However, I don't see a place to mount the docker.sock through the ECS 
>> configuration options. 
>>
>>
>> -Brandon Wagner
>>
>> On Sat, Jan 23, 2016 at 1:08 PM, nicolas de loof > > wrote:
>>
>>> You could use docker-custom-build-environment-plugin for this exact 
>>> scenario, with bind mounted /var/run/docker.sock so you can run containers 
>>> side by side (vs "in-docker"). Would need some tests on my side to ensure 
>>> this scenario is supported, I have this on my TOD for a while but never 
>>> took time to setup a test environment for it...
>>>
>>> 2016-01-22 21:01 GMT+01:00 Brandon Wagner >> >:
>>>
 I would like to run Docker containers for all of my software projects 
 and dynamically allocate build slaves via ECS (so that I can have a core 
 cluster that can do builds quickly; in contrast to spinning up an EC2 
 instance).

  For example, I have a Java application which is completely contained 
 in a Docker container (I can build it, run tests, and run the actual 
 application with Tomcat all within the container). I want to use this for 
 a 
 variety of different purposes (dev, testing, qa, and production). In order 
 to make it reusable like that, I don't want to include Jenkins Slave 
 packages and expose ports. I'd rather deploy out a Jenkins-Slave container 
 to my ECS cluster, and then have that slave handle running my 
 application's 
 docker container which also performs tests. 

 I also support other team applications which are already running docker 
 container builds in Jenkins (locally on the Jenkins Master). I want it to 
 be transparent to them that I'm "outsourcing" build slaves to ECS. It 
 shouldn't matter to them that I'm changing the way Jenkins is performing 
 builds.

 Let me know if you (or anyone else) have suggestions based on my goals.

 -Brandon Wagner


 On Fri, Jan 22, 2016 at 2:48 PM, nicolas de loof  wrote:

> privileged flag has been added to development build (
> https://jenkins.ci.cloudbees.com/job/plugins/job/amazon-ecs-plugin/)
> anyway, DinD is probably not a good idea (there's really few docker 
> usages to actually require it). What's your actual need ?
>
> 2016-01-22 20:46 GMT+01:00 Brandon Wagner  >:
>
>> So I ended up figuring my issue out. I think there were a couple of 
>> issues. My JNLP port was set to 50,000 instead of 5,000 which the 
>> Jenkins 
>> Docker Container I was using was mapping to the host port 5000. And my 
>> Load 
>> Balancer in front of Jenkins was not forwarding port 5000 to the host 
>> (only 
>> 443). Anyways, all of that is fixed and I can now run builds on slaves 
>> in 
>> ECS.
>>
>> My next problem: I want to use docker-in-docker to run docker builds 
>> on my docker jenkins slaves. I'm trying to use 
>> https://github.com/tehranian/dind-jenkins-slave which looks good, 
>> but I don't see an option on the Jenkins ECS plugin to run the slave as 
>> privileged which is necessary for docker-in-docker.
>>
>>
>> -Brandon Wagner
>>
>> On Fri, Jan 22, 2016 at 7:11 AM, nicolas de loof <
>> nicolas...@gmail.com > wrote:
>>
>>> First look into jenkins logs.
>>> Also check on ECS a task definition has been created for 
>>> jenkins-slaves. 
>>> Also double check ECS nodes can ping your jenkins master URL.
>>>
>>> 2016-01-21 22:13 GMT+01:00 Brandon Wagner >> >:
>>>
 I'm trying to use the Jenkins AWS EC2 Container Service (ECS) 
 plugin to deploy Jenkins Slave Containers for builds. I have an ECS 
 cluster 
 setup, and I have it configured in my Jenkins Configuration. 
 Everything 
 appears to be good until I try to build a job, restricting to the ecs 
 cloud 
 label I setup, and it just comes back with "(pending—
 

Re: fetch the api key for the current user?

2016-02-01 Thread Brian J. Murrell
On Sun, 2016-01-31 at 23:45 +0100, Daniel Beck wrote:
> On 30.01.2016, at 19:10, Brian J. Murrell  c...@public.gmane.org> wrote:
> 
> > I am looking for a REST API handle to get the API key of the user
> > that
> > ran a job.
> 
> I think any answer to this would likely be a security issue and
> should be reported as such, rather than posted here.

How do you figure?  And what exactly are you proposing to report and to
whom?

This is nothing more than user Bob being able to ask the REST API,
(_when_he_is_already_logged_in_to_Jenkins_), "what is my API key?" and
more accurately the job that Bob run, (again when Bob has already
logged in using Bob's credentials) to initiate further API calls on his
behalf, because you know, Bob did ask to run the job.

b.

-- 
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/1454341086.10065.15.camel%40interlinx.bc.ca.
For more options, visit https://groups.google.com/d/optout.


signature.asc
Description: This is a digitally signed message part


QA -- healthcare|Charlotte NC

2016-02-01 Thread Neha Kumari
Hello,

GREETINGS !!

This is Neha from Apetan consulting,

Please find the below job description and send me your update resume
matching to it along with Contact details, Current location, Visa and
Availability ASAP.



POSITION: QA Engineer

LOCATION: Charlotte NC

Start :ASAP



Job Overview:







Requirements:

A Bachelor's degree (BA, BS) in Computer Science or related discipline.

Required

3

Years





Experience in a quality assurance role with quality assurance processes
primarily with software application life cycle development processes

Required







Experience in JAVA based development environment; Experienced in test
automation with Cucumber/Gherkin, Selenium, Java/Junit development

Required











Our leading edge healthcare client does performance improvement alliance
for approximately 3,600 U.S. hospitals and 120,000 other providers.  Their
mission is simple: To improve the health of communities.  As an industry
leader, our Charlotte NC based client has created one of the most
comprehensive databases of actionable data, best practices and cost
reduction strategies.  Their award winning technology enable their partners
and members to collaborate more easily and efficiently.  Their goal is to
improve their members’ quality outcomes, while safely reducing costs.  By
engaging members and revealing new opportunities, they empower the alliance
to improve the performance of healthcare organizations.

They were named one of the world’s MOST ETHICAL COMPANIES  8 years in a
row!  They are well-equipped to transform the future of healthcare.  Be a
part of this awesome organization.

Assists in the development and implementation of quality automated test
strategies and methods.



We are seeking a senior level QA Engineer with the following skill set:



*Technologies:*

Java

Cucumber/Gherkin

Selenium

Strong SQL (PL/SQL a plus)

Maven builds

Testing business processes



Responsible for analyzing, testing, tracking and issue reporting of IT
product lines that are developed for our customers. This position works in
collaboration with Application Development, the Quality Assurance team,
Project Management, Business Analysts, and other IT stakeholders to ensure
that the applications development projects have been tested thoroughly and
meet the required deliverables and quality standards. Role includes
planning, designing, executing and tracking the results of associated test
efforts.



*Minimum Requirements:*

A Bachelor's degree (BA, BS) required. Area of study in Computer Science or
related discipline. 3 – 5 years of experience. Experience in a quality
assurance role with quality assurance processes primarily with software
application life cycle development processes.  Proven experience in a
healthcare environment preferred.  Strong command of SQL and understanding
of relational databases. Experience with Unix commands to execute automated
processes.



Minimum of 3 years work experience in IT Applications Development to
include: JAVA technology; Windows/XP/UNIX platforms; Verifying queries,
validating input; Writing complex SQL and automation test scripts; ETL
processes and testing; object oriented programming; Java, JSP; UNIX/Linux,
and Windows XP Systems ; J2EE, Spring, JavaScript, XML, REST/SOAP/JSON,
Server side platforms:  Red Hat, Apache Http Server, Tomcat and JBoss;
Development tools:  ANT, Git, Maven, Hudson, Cucumber/Gherkin/Selenium;
Junit/DbUnit/FlexUnit, Eclipse. 2-3 years application development in a Java
environment.



*Degree Requirement: *yes- 4 year









*Neha Kumari |* *Technical Recruiter* | *Apetan Consulting LLC*

Tel:201-620-9700* 106 | Fax: 201-526-6869 | 72 Van

Reipen Avenue # 255 Jersey City, NJ 07306 |

n...@apetan.com | www.apetan.com  |

*Disclaimer:* We respect your Online Privacy. This e-mail message,
including any attachments, is for the sole use of the intended recipient(s)
and may contain confidential and privileged information. Any unauthorized
review, use, disclosure or distribution is prohibited. If you are not the
intended recipient, please contact the sender by reply e-mail and destroy
all copies of the original message. If you are not interested in receiving
our e-mails then please reply with a "REMOVE" in the subject line at
rem...@apetan.com and mention all the e-mail addresses to be removed with
any e-mail addresses, which might be diverting the e mails to you. We are
sorry for the inconvenience.

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


How to make a full backup of a Jenkins Installation

2016-02-01 Thread _n00n_
Hi, 

I started to learn jenkins and my first problem: 

I would like to create a install script, which is also installing all 
plugins and all settings for this plugins. 
The current backup plugins are not working prober. Could make backups, but 
not restore them anymore

Any hint for me?

regards 
Dirk 

-- 
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/abcaced0-860e-44ee-831b-b6791617860e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.