Re: Stage View in Parallel Exectution

2017-04-27 Thread vishad alekh
Can some please assist on this . Also it will be of great help if anyone 
can tell whether this is possible even ?

On Monday, April 24, 2017 at 7:29:48 PM UTC-5, vishad alekh wrote:
>
> Hi All,
>
>
> I am looking to implement stage view for parallel execute jobs . Let 
> suppose i have five independent job . These five jobs will be called 
> through one job . Now i want to show the stage of all the five jobs 
> separately in the main job from where they are called . Please help me with 
> this .
>
>
>
> Thanks and Regards
> Vishad Alekh
>

-- 
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/b38afbfb-0afe-493d-8b6c-bef3e1b29412%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


DISK USAGE Pipeline Job

2017-04-27 Thread vishad alekh
Hi All,

I have a pipeline job in which i am not able to see the size of jenkins 
build. whereas the same is coming in freestyle job . I have disk usage 
plugin installed . Can someone please help me with this  I need to get the 
size of jenkins build for a pipeline job.




Thanks and Regards
Vishad Alekh

-- 
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/034a60bd-9696-4cc7-a72f-2c11b3d18859%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


LDAP Plugin stops working after change in secrets files

2017-04-27 Thread Thiago Carvalho Davila
Hi,

​I am making a migration for a new server, and I tried copying the 
credentials.xml, secrets/hudson.util.Secret and secrets/master.key files. But 
now, I can't log in using LDAP anymore. How do I copy the users from the other 
server?

Thanks,

Thiago

-


"Esta mensagem do SERVIÇO FEDERAL DE PROCESSAMENTO DE DADOS (SERPRO), empresa 
pública federal regida pelo disposto na Lei Federal nº 5.615, é enviada 
exclusivamente a seu destinatário e pode conter informações confidenciais, 
protegidas por sigilo profissional. Sua utilização desautorizada é ilegal e 
sujeita o infrator às penas da lei. Se você a recebeu indevidamente, queira, 
por gentileza, reenviá-la ao emitente, esclarecendo o equívoco."

"This message from SERVIÇO FEDERAL DE PROCESSAMENTO DE DADOS (SERPRO) -- a 
government company established under Brazilian law (5.615/70) -- is directed 
exclusively to its addressee and may contain confidential data, protected under 
professional secrecy rules. Its unauthorized use is illegal and may subject the 
transgressor to the law's penalties. If you're not the addressee, please send 
it back, elucidating the failure."

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


Re: Request for simple pipeline example to do checkout, run shell script, email result

2017-04-27 Thread David Karr
On Thu, Apr 27, 2017 at 3:05 AM, David Aldrich
 wrote:
> Hi
>
>
>
> Please can anyone point me to, or provide, a simple and complete pipeline
> script example to do a checkout, run a shell script and email the result?
>
>
>
> I am using svn, but a git example would be ok.

What you should do is focus on each one of these tasks separately.
Each one of these will use pipeline steps and Groovy code.  Use the
"Pipeline Syntax" link within the "Pipeline" section of the job
definition to see examples of what pipeline steps are available to
you. On this page, you can generate example code.

Doing a git checkout requires the "git" function.  Running a shell
script uses "sh", and sending email could use the "email-ext"
function, although there may be others.

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


automate the transfer of files from G.Storage to G.Drive

2017-04-27 Thread Talha Iqbal
Is there a way to to automate the process of transferring & deleting files 
from G.Storage to G.Drive, as well as be able to manage authentication 
(gstorage & gdrive) in a completely automated fashion?

-- 
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/b7734647-c985-446d-9863-f632e396ad7d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: email-ext no mor resolve template absolute path

2017-04-27 Thread jerome
this security non sense is getting annoying, anyway I can workaround by 
writing the file on the master anyway. But since you can run almost 
anything into a python/perl/bash/batch... scripts, the security should be 
at the scripts trust not what it's content in the end, if you trust the 
source and ensure the script is a trusted user/server, no need to go at 
every details of the scripts operation. We should have a way to sign and 
trust Jenkinsfile script and be done with the security. Try to secure each 
and every call inside the script language when you can call sh or bat is a 
false security.

I don't known how to do it exactly right off the bat, but my guess it's 
make more sense. Preventing me from doing a file operation for security 
purpose into Groovy, but I can call sh todo it anyway doesn't give much 
except frustration. I totally fail to see why something like:

   - new java.util.Date
   - method java.util.Map containsKey java.lang.Object
   - staticMethod org.codehaus.groovy.runtime.DefaultGroovyMethods 
   leftShift java.util.Map java.util.Map
   - staticMethod org.codehaus.groovy.runtime.DefaultGroovyMethods minus 
   java.lang.String java.lang.Object
   - staticMethod org.codehaus.groovy.runtime.DefaultGroovyMethods plus 
   java.util.List java.lang.Iterable
   - 
   - staticMethod org.codehaus.groovy.runtime.DefaultGroovyMethods plus 
   java.util.List java.util.Collection
   - staticMethod org.codehaus.groovy.runtime.DefaultGroovyMethods plus 
   java.util.Map java.util.Map
   - staticMethod org.codehaus.groovy.runtime.DefaultGroovyMethods println 
   groovy.lang.Closure java.lang.Object

are security risk?!? seriously, I call bullshit. Just do yourself a favor 
and call whatever you want to do into sh or python and do it anyway. And 
even if it would want to check if the process do something illegal, we 
still could launch other process/pipe from those command and nothing could 
be really done or known. As long as the Jenkins user have limited privilege 
on the machine and you trust the Jenkinsfile (some kind of certificate 
maybe).

This false security is grabbing way too much ground over the 
features/usability ground and that's sad, the concept is good but start to 
feel like it's going down the rabbit hole.

-- 
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/c7742dbf-0e22-486d-b2ae-2eb7d40af307%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: groovy commands and description.

2017-04-27 Thread Mark Waite
On Thu, Apr 27, 2017 at 9:36 AM Kenneth Johansson <
kenneth.johans...@inteno.se> wrote:

> On 2017-04-27 17:22, Mark Waite wrote:
>
> Refer to
> https://jenkins.io/doc/pipeline/steps/workflow-durable-task-step/#code-sh-code-shell-script
>  for
> the details.
>
> How did you find that ?
>
>
I used a google search for "Jenkins.io pipeline command reference" followed
by a search within the resulting page
.  I looked inside the page for
"sh" initially, but there were too many matches, so I looked for "sh:".


> The specific question you're asking is answered by an example at
> https://jenkins.io/doc/pipeline/examples/#gitcommit .  You need "
> returnStdout: true".
>
> well in this case I already know the answer the real question is actually
> how do I find out the answer in the fist place. how can I discover what
> functions exists ??
> Now it feels like it is more a question of luck.
>
>

> Mark Waite
>
> On Thu, Apr 27, 2017 at 9:16 AM Kenneth Johansson <
> kenneth.johans...@inteno.se> wrote:
>
>> How do I find out what functions exist that can be used from a groovy
>> script and how to use them ??
>>
>> like how to get the shell script output from a shell command into a
>> variable.
>>
>> so the sh command is in basically all  examples written as "sh
>> 'command'" but there is another way also so that its possible to get the
>> output into a a string but where is this documented. I do not need
>> proper docs I can read the source but I cant even find out where this
>> code exists. It's very hard to get up to speed with this stuff when the
>> only way to find out things if is someone has done a blog post and have
>> some code in it.
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Jenkins Users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to jenkinsci-users+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/jenkinsci-users/422dd162-7ca7-03a7-1dc6-4fddaa83f6dc%40inteno.se
>> .
>> 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/CAO49JtFt8mLVo%3Dz8UJfc1pT4o4nJ5zpEy8-_cS83FPJko%2BZ-_w%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/72f3ade4-5e5b-322e-5209-fef8e36366ac%40inteno.se
> 
> .
> 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/CAO49JtGfgoeK1VWmVaoid1TSEJknW0F-5twvGwjCU0%3D3%3DE-rnw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


org.jenkinsci.plugins.scriptsecurity.sandbox.RejectedAccessException: unclassified

2017-04-27 Thread Jason


There is lots of info out there on the security sandbox, but I still can't seem 
to find the answer to this.

I have a pipeline setup in Jenkins.  I have it accessing a folder pipeline 
library ( not global ) and loading from source.

I am trying to test my logic but I can't get past the following:


org.jenkinsci.plugins.scriptsecurity.sandbox.RejectedAccessException: 
unclassified new org.myco.mybuild.v1.build.BuildPipeline
at 
org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SandboxInterceptor.onNewInstance(SandboxInterceptor.java:126)
at org.kohsuke.groovy.sandbox.impl.Checker$3.call(Checker.java:191)


I don't get prompted for a script approval for this, so is there any way around 
this?


thanks,

Jason

-- 
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/969568d8-38cf-4c53-8c28-fc76444abc88%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: groovy commands and description.

2017-04-27 Thread Kenneth Johansson

On 2017-04-27 17:22, Mark Waite wrote:
Refer to 
https://jenkins.io/doc/pipeline/steps/workflow-durable-task-step/#code-sh-code-shell-script for 
the details.



How did you find that ?

The specific question you're asking is answered by an example at 
https://jenkins.io/doc/pipeline/examples/#gitcommit . You need 
"returnStdout: true".


well in this case I already know the answer the real question is 
actually how do I find out the answer in the fist place. how can I 
discover what functions exists ??

Now it feels like it is more a question of luck.


Mark Waite

On Thu, Apr 27, 2017 at 9:16 AM Kenneth Johansson 
> wrote:


How do I find out what functions exist that can be used from a groovy
script and how to use them ??

like how to get the shell script output from a shell command into a
variable.

so the sh command is in basically all  examples written as "sh
'command'" but there is another way also so that its possible to
get the
output into a a string but where is this documented. I do not need
proper docs I can read the source but I cant even find out where this
code exists. It's very hard to get up to speed with this stuff
when the
only way to find out things if is someone has done a blog post and
have
some code in it.

--
You received this message because you are subscribed to the Google
Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it,
send an email to jenkinsci-users+unsubscr...@googlegroups.com
.
To view this discussion on the web visit

https://groups.google.com/d/msgid/jenkinsci-users/422dd162-7ca7-03a7-1dc6-4fddaa83f6dc%40inteno.se.
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/CAO49JtFt8mLVo%3Dz8UJfc1pT4o4nJ5zpEy8-_cS83FPJko%2BZ-_w%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/72f3ade4-5e5b-322e-5209-fef8e36366ac%40inteno.se.
For more options, visit https://groups.google.com/d/optout.


Re: email-ext no mor resolve template absolute path

2017-04-27 Thread Slide
This is probably due to the fact that reading a template from the workspace
or absolute path is a security risk.

On Thu, Apr 27, 2017 at 6:38 AM  wrote:

> I opened a ticket about it:
> https://issues.jenkins-ci.org/browse/JENKINS-43903
>
> --
> 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/5942c8d2-177b-4441-9c7f-86a6fe4a9d42%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/CAPiUgVd3jOk3KCawWj1xCVCYgDQKCYh75y3uW3pDahZoHAUgwg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: groovy commands and description.

2017-04-27 Thread Mark Waite
Refer to
https://jenkins.io/doc/pipeline/steps/workflow-durable-task-step/#code-sh-code-shell-script
for
the details.

The specific question you're asking is answered by an example at
https://jenkins.io/doc/pipeline/examples/#gitcommit .  You need "
returnStdout: true".

Mark Waite

On Thu, Apr 27, 2017 at 9:16 AM Kenneth Johansson <
kenneth.johans...@inteno.se> wrote:

> How do I find out what functions exist that can be used from a groovy
> script and how to use them ??
>
> like how to get the shell script output from a shell command into a
> variable.
>
> so the sh command is in basically all  examples written as "sh
> 'command'" but there is another way also so that its possible to get the
> output into a a string but where is this documented. I do not need
> proper docs I can read the source but I cant even find out where this
> code exists. It's very hard to get up to speed with this stuff when the
> only way to find out things if is someone has done a blog post and have
> some code in it.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/422dd162-7ca7-03a7-1dc6-4fddaa83f6dc%40inteno.se
> .
> 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/CAO49JtFt8mLVo%3Dz8UJfc1pT4o4nJ5zpEy8-_cS83FPJko%2BZ-_w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


groovy commands and description.

2017-04-27 Thread Kenneth Johansson
How do I find out what functions exist that can be used from a groovy 
script and how to use them ??


like how to get the shell script output from a shell command into a 
variable.


so the sh command is in basically all  examples written as "sh 
'command'" but there is another way also so that its possible to get the 
output into a a string but where is this documented. I do not need 
proper docs I can read the source but I cant even find out where this 
code exists. It's very hard to get up to speed with this stuff when the 
only way to find out things if is someone has done a blog post and have 
some code in it.


--
You received this message because you are subscribed to the Google Groups "Jenkins 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/422dd162-7ca7-03a7-1dc6-4fddaa83f6dc%40inteno.se.
For more options, visit https://groups.google.com/d/optout.


Re: Windows Slave / LinuxMaster hang

2017-04-27 Thread jerome
I open a tickets: 
https://issues.jenkins-ci.org/browse/JENKINS-42988

-- 
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/478621ea-f5c4-4ab4-8f3b-ee067cc7870f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: email-ext no mor resolve template absolute path

2017-04-27 Thread jerome
I opened a ticket about it:
https://issues.jenkins-ci.org/browse/JENKINS-43903

-- 
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/5942c8d2-177b-4441-9c7f-86a6fe4a9d42%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: jenkins pipeline dsl - executing a list/map of nodes

2017-04-27 Thread dpreilan
Anybody familiar with internals of 'parallel' or can point me to in source 
it is implemented?

Thanks,
Doug

On Wednesday, April 26, 2017 at 6:30:10 PM UTC-4, dpreilan wrote:
>
>
> Hey, I am building a map of nodes to run in parallel.
> This works fine:
>
> parallel unit.build_nodes
>
>
> However, I am trying to flexible for some jobs that are memory/cpu 
> intensive and NOT in parallel. I want my library/dsl code to be same and do 
> something like:
>
>
> if (do_parallel) {
>
> parallel unit.build_nodes
>
> } else {
>
> def keys = unit.build_nodes.keySet() as List
>
>for (s in keys) {
>
>def _node = unit.build_nodes.get(s)
>
>_node(s)
>
>}
>
> }
>
>
> This works, but I am not getting my nice 'label' that prints out when I 
> run in parallel.
>
> You can see me passing the key (label) with _node(s), but doesn't help.
>
>
> My build_nodes map is created like examples, something like:
>
> Map build_nodes =  [:];
>
>
> unit.build_nodes['FOO'] = ...
>
> unit.build_nodes['FOO1'] = ...
>
>
> When run in parallel I see 'FOO' and 'FOO1' and want the same when I 
> serialize.
>
> 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/fd444e39-b901-4584-b1c2-46fc137660fd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Running docker.withserver within docker.inside

2017-04-27 Thread Johan Abelsson
I want to connect to another docker daemon from within a docker container 
but it's not working from within jenkins.

The error I get is:

[restart_portal] Running shell script
Error response from daemon: No such container: 
5a0fce9025ba1d047d8da9718ab830222d3fdc9f2a38773efd1e9d117f7e1e79


Is there a workaround for this?



Here is a simple example:

scripted:

docker.image('myimage').inside {
docker.withServer('tcp://10.11.11.109:2376', 'my-docker-creds'){
sh 'docker ps'
}
}


declarative:

pipeline {
agent {
  dockerfile {
filename "jenkinsfiles/restart_portal/Dockerfile.aws"
label "restart"
  }
  
stages {
  stage('connect to docker host') {
}
steps {  
  script {
docker.withServer('tcp://10.11.11.109:2376', 'my-docker-creds'){
  sh "docker ps"  
}

  }
}
  }
}
}

-- 
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/5304179a-03dd-43bc-8066-775a7a528450%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Request for simple pipeline example to do checkout, run shell script, email result

2017-04-27 Thread David Aldrich
Hi

Please can anyone point me to, or provide, a simple and complete pipeline 
script example to do a checkout, run a shell script and email the result?

I am using svn, but a git example would be ok.

Best regards

David

-- 
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/ad2193719598478f92d80572563c95f8%40EUX13SRV1.EU.NEC.COM.
For more options, visit https://groups.google.com/d/optout.


Re: java.io.IOException: Could not copy slave.jar into '/homes/bldmgr' on slave

2017-04-27 Thread Victor Martinez
Just a quick one:

does /homes/bldmgr exist? Has bldmgr user got granted privileges to write 
in that folder?

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/7463c74d-c9e6-40c2-bf0a-620cf45d649e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: SAML Authentication - also need normal http auth

2017-04-27 Thread James Masson

Thanks for the reminder about API keys - I'd forgotten about them - works 
perfectly.

However

How does the API key for a SAML authed user get persisted?is it just in 
memory? If I restart Jenkins, does it get reset?

I notice there are no user config.xml files created by Jenkins for SAML 
users.

James M

On Tuesday, 25 April 2017 21:14:49 UTC+1, Ivan Fernandez Calvo wrote:
>
> HI,
>
> It is not possible to use two authentication plugins/methods at the same 
> time, but you could use the API token as authentication method for scripts 
> or other automated tasks, for more information you can take a look at 
> https://wiki.jenkins-ci.org/display/JENKINS/Authenticating+scripted+clients
>
> El martes, 25 de abril de 2017, 13:48:28 (UTC+2), James Masson escribió:
>>
>>
>> Hi list,
>>
>> I've successfully got SAML integration working with Jenkins & OneLogin, 
>> through the normal SAML plugin.
>>
>> What I'm struggling with now is finding a solution to authenticate the 
>> Jenkins Swarm slave plugin, and a few other automation tools that operate 
>> via standard HTTP auth.
>>
>> Has anyone done this?
>>
>> Ideally I'd use PAM auth for the automation, and SAML just for users - 
>> but this doesn't seem to be possible?
>>
>> thanks
>>
>> James 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/67445482-1c3f-44a2-92be-c1a3d784500b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Scripts not permitted to use a method already approve in In-process Script Approval GUI

2017-04-27 Thread Romaric Crailox
For information, I open a ticket here 
.

Best regards
Romaric Crailox

-- 
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/601c751a-870f-4ea3-9230-09da93a2a1c5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Declarative Syntax: agent scope

2017-04-27 Thread Bert
I have a related agent scope request. Today, the agent is defined inside a 
stage. If multiple stages use the same agent and the agent has just one 
executor, then concurrent builds alternate stage-by-stage.

To prevent that, I'd like to set an agent for a couple of stages.

Regards,
Bert

On Wednesday, April 12, 2017 at 10:08:39 PM UTC+2, Kenneth Brooks wrote:
>
> When I specify an agent inside a stage, it then also applies to everything 
> in the 'post' section.
>
> I'm not sure that is alway the behavior I want. 
> Is there a way around this?
>
> Specifically, we have the ability to take a checkpoint (similar to the 
> enterprise edition checkpoint feature) but that should run outside the node.
>
> Currently we can do this in script world:
>
> node('java-1.8.0_45') {
>   stage ('Master Build') {
> checkout scm
> sh 'do some building'
>  }
> }
> captureSnapshot('BuildComplete')
>
> node('java-1.8.0_45') {
>   stage ('Dev Deploy') {
> sh 'do some deploying'
>  }
> }
> captureSnapshot('DeployComplete')
>
> In declarative syntax land, the  post actions
>
> pipeline {
> agent none   
> stages {
>
> stage ('Build') {
> agent { label "java-1.8.0_45" }
> steps {
> checkout scm
> sh 'do some building'
> }
> post {
> success {
> captureSnapshot('BuildComplete') // this is still 
> inside the node
> }
> }
> }
>
> stage ('Dev Deploy') {
> agent { label "java-1.8.0_45" }
> steps {
> checkout scm
> sh 'do some deploying'
> }
> post {
> success {
> captureSnapshot('DeployComplete') // this is still 
> inside the node
> }
> }
> }
> }
> }
>
>
> Do I have to setup another stage specifically for the captureSnapshot? I 
> really don't want to see that stage visually show up on my pipeline all 
> over the place.
>
>

-- 
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/09b6b839-8e01-471e-981e-b356da951002%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Blue Ocean and selecting Git as where I store my code

2017-04-27 Thread James Dumay
This happens if you do not have security enabled. There will be a change in 
Blue Ocean 1.1 next week that shows a message asking you to enable security.

Sorry about that :(

-- 
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/36124be1-54c5-46da-bc19-7aa6aace35da%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Testing Pipeline Shared Library

2017-04-27 Thread raja.nasrallah


Hi,

 

I'm looking on a way to have a unit test for my pipeline shared library. 

 

I thought to try the approach of dsl code testing which is using gradle 
build and the Jenkins harness test framework. I managed to setup project 
and write the first unit test for my library, but I faced a problem that 
after executing sh or bat step the library function exit after executing 
step.

 

To reproduce the issue I've just created a sample library which has a foo() 
function that using sh or bat and echo 'first' and 'two' but when you run 
the build it failed because two is not printed into the console long

 

Here is the details for the sample project:

   https://github.com/rajanasrallah/test_pipeline_library

 

To build:

   gradle test

 

 

Kind regards,

Raja Nasrallah

-- 
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/d4a5b549-0d46-4fa6-86e9-9463c356dde5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Amazon EC2 Container Service Plugin Waiting for Executor

2017-04-27 Thread 'Mariusz' via Jenkins Users
Did you ever find out what the issue was here?

I've been experiencing the exact same problem.  Only when the first job 
finishes will a new ECS task start, thus, starting the job.

On Monday, 18 July 2016 14:46:41 UTC+10, Tez Macca wrote:
>
> Hi,
>
> I have configured the "Amazon EC2 Container Service Plugin" with a single 
> statically associated EC2 instance. My expectation is that multiple 
> slaves/containers would be started when there are multiple jobs scheduled.
> However, I get the following message when the second job runs:
> *Waiting for next available executor on aws-slaves-c50dc930a5d94*
> Where '*aws-slaves-c50dc930a5d94'* is the node instance started by the 
> first job. The jobs start and execute perfectly though.
>
> To get multiple executors do I need to change something with:
> 1. how I have configured the AWS plugin, 
> 2. OR the ECS cluster in AWS, 
> 3. OR my Jenkinsfile needs something like concurrency set in the stage?
>
> This also means that I am unable to run multiple parallel steps.
>

-- 
The information contained in this e-mail message and any accompanying files 
is or may be confidential. If you are not the intended recipient, any use, 
dissemination, reliance, forwarding, printing or copying of this e-mail or 
any attached files is unauthorised. This e-mail is subject to copyright. No 
part of it should be reproduced, adapted or communicated without the 
written consent of the copyright owner. If you have received this e-mail in 
error please advise the sender immediately by return e-mail or telephone 
and delete all copies. Fairfax Media does not guarantee the accuracy or 
completeness of any information contained in this e-mail or attached files. 
Internet communications are not secure, therefore Fairfax Media does not 
accept legal responsibility for the contents of this message or attached 
files.

-- 
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/dc1566cf-5e72-4835-81dd-af9a1f831ca7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Chaining freestyle with a Pipeline on the same Git hash?

2017-04-27 Thread Dan Tran
I meant the jenkins library must NOT be influenced by external upstream job 
git params

On Wednesday, April 26, 2017 at 5:48:45 PM UTC-7, Dan Tran wrote:
>
> It turns out my pipeline uses another internal jenkins pipeline library 
> via @Library('@0.0.1') _
>
> this is why it bails.  
>
> I think the jenkins library tag should be influenced external upstream job 
> git params
>
> is it a bug I should file?
>
> Thanks
>
> -Dan
>
>
>
> On Wednesday, April 26, 2017 at 9:45:35 AM UTC-7, Dan Tran wrote:
>>
>> My apology for the incompleteness
>>
>> Here are my build info
>>
>> * 2 jobs configure with same git repo same branch ( master)
>> * First job ( freestyle) triggers 2nd job with Build Trigger Parameters 
>> and passing over 'Pass thru git commit that was built'
>>
>> exception: 
>>
>> Checking out Revision ff5e8f0a7ee15cbbf65c1fbb8a4c91fdd0451bd1 
>> (refs/remotes/origin/master)
>>  > git config core.sparsecheckout # timeout=10
>>  > git checkout -f ff5e8f0a7ee15cbbf65c1fbb8a4c91fdd0451bd1
>> hudson.plugins.git.GitException: Could not checkout 
>> ff5e8f0a7ee15cbbf65c1fbb8a4c91fdd0451bd1
>>  at 
>> org.jenkinsci.plugins.gitclient.CliGitAPIImpl$9.execute(CliGitAPIImpl.java:2141)
>>  at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1155)
>>  at 
>> org.jenkinsci.plugins.workflow.steps.scm.SCMStep.checkout(SCMStep.java:109)
>>  at 
>> org.jenkinsci.plugins.workflow.libs.SCMSourceRetriever.doRetrieve(SCMSourceRetriever.java:108)
>>  at 
>> org.jenkinsci.plugins.workflow.libs.SCMSourceRetriever.retrieve(SCMSourceRetriever.java:84)
>>  at 
>> org.jenkinsci.plugins.workflow.libs.LibraryAdder.retrieve(LibraryAdder.java:150)
>>  at 
>> org.jenkinsci.plugins.workflow.libs.LibraryAdder.add(LibraryAdder.java:131)
>>  at 
>> org.jenkinsci.plugins.workflow.libs.LibraryDecorator$1.call(LibraryDecorator.java:114)
>>  at 
>> org.codehaus.groovy.control.CompilationUnit.applyToPrimaryClassNodes(CompilationUnit.java:1053)
>>  at 
>> org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:591)
>>  at 
>> org.codehaus.groovy.control.CompilationUnit.processPhaseOperations(CompilationUnit.java:569)
>>  at 
>> org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:546)
>>  at 
>> groovy.lang.GroovyClassLoader.doParseClass(GroovyClassLoader.java:298)
>>  at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:268)
>>  at groovy.lang.GroovyShell.parseClass(GroovyShell.java:688)
>>  at groovy.lang.GroovyShell.parse(GroovyShell.java:700)
>>  at 
>> org.jenkinsci.plugins.workflow.cps.CpsGroovyShell.reparse(CpsGroovyShell.java:116)
>>  at 
>> org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.parseScript(CpsFlowExecution.java:430)
>>  at 
>> org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.start(CpsFlowExecution.java:393)
>>  at 
>> org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:238)
>>  at hudson.model.ResourceController.execute(ResourceController.java:98)
>>  at hudson.model.Executor.run(Executor.java:404)
>> Caused by: hudson.plugins.git.GitException: Command "git checkout -f 
>> ff5e8f0a7ee15cbbf65c1fbb8a4c91fdd0451bd1" returned status code 128:
>> stdout: 
>> stderr: fatal: reference is not a tree: 
>> ff5e8f0a7ee15cbbf65c1fbb8a4c91fdd0451bd1
>>
>>
>>
>> -D
>>
>

-- 
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/8d89fa1c-f0c4-4b3d-ba4e-860525726630%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Help me to figure out Plug in for change repository url and credentials for all the projects from central level

2017-04-27 Thread Sandeep Grandham
Thank you Victor..

On Thursday, April 27, 2017 at 3:38:35 AM UTC+5:30, Victor Martinez wrote:
>
> Hi there,
>
> I don't know if the below plugins support exactly your use case:
> - https://wiki.jenkins-ci.org/display/JENKINS/Configuration+Slicing+Plugin 
>  
> - https://wiki.jenkins-ci.org/display/JENKINS/Scriptler+Plugin 
>
> They can be customised with some groovy scripting in any case.
>
> Cheers
>
> On Wednesday, 26 April 2017 07:46:14 UTC+1, Sandeep Grandham wrote:
>>
>> Hi,
>>
>> I am trying to figure out plugin for change repository Url and 
>> credentials for all the projects from central level.
>> it means if i change url and credentials from central level it 
>> automatically changes the url and credentials for all the projects.
>> Please help me to figureout that plugin.
>>
>> Thanks in advance.
>>
>> : sandeep
>>
>>

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