Re: Jenkins pipeline - Remove @tmp folder

2017-09-07 Thread Esdras Neto
Have the very same question :-)

Anyone knows?

Il giorno sabato 30 aprile 2016 22:50:06 UTC+1, Camilo Nova ha scritto:
>
> Hi,
>
> I'm using the pipeline and when it finishes it leaves an empty folder 
> 'my-project@tmp' and I don't want to leave it there.
>
> There is a way to disable the folder generation? Maybe using /tmp
>
> There is a way to tell the pipeline to remove that folder after it 
> finishes?
>
> This is my pipeline:
>
> stage 'test'
> node('unix') {
>   checkout scm
>   stash inludes: '**', name: 'source'
>
>   sh '''
>   virtualenv --python=python2.7 .env
>   . .env/bin/activate
>   pip install -r requirements.txt
>   ./manage.py test --failfast
>   '''
> }
>
> As far as I read seems the 'sh' command creates the directory, but I want 
> to remove it after it finishes or to set a different tmp folder path.
>
> 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/8960b636-d6d0-45dd-b0e0-db49fdad9929%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: withEnv on parallel jobs

2017-09-02 Thread Esdras Neto
Still stuck here, is there a way to reuse blocks of code as variable in the 
pipeline?

I can see in the logs that the variable is passed, but we get errors like:

java.lang.NoSuchMethodError: No such DSL method 'withEnv(['


This time I tried to make a variable with the whole thing (not only the 
variables but the withEnv command as well).


Any light?


Thanks!



Il giorno venerdì 1 settembre 2017 09:09:33 UTC+1, Esdras Neto ha scritto:
>
> Hi there,
>
> I was using load to set my variables and it was working fine, however, 
> this wont work with multiple jobs running in parallel.
>
> How can I set a bunch of system variables using withEnv and reuse the code?
>
> I tried:
>
> def LNX_VARS = '''PATH=/path/to/ant/bin:/usr/bin:/sbin',
>  'JAVA_HOME=/path/to/my/java
>
> And then:
>
> withEnv (LNX_VARS) {
>   sh 'ant -v'
>
> }
>
> Is there any documentation about using multiple system variable lines with 
> withEnv? 
>
> Thanks!
> Esdras
>
>
>

-- 
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/5eb0cd3d-fa71-4d7a-8129-6fe3c4cd2d8b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


withEnv on parallel jobs

2017-09-01 Thread Esdras Neto
Hi there,

I was using load to set my variables and it was working fine, however, this 
wont work with multiple jobs running in parallel.

How can I set a bunch of system variables using withEnv and reuse the code?

I tried:

def LNX_VARS = '''PATH=/path/to/ant/bin:/usr/bin:/sbin',
 'JAVA_HOME=/path/to/my/java

And then:

withEnv (LNX_VARS) {
  sh 'ant -v'

}

Is there any documentation about using multiple system variable lines with 
withEnv? 

Thanks!
Esdras


-- 
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/f294dfc5-d44a-4d32-a277-db849c69c8fc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Build time trend - Pipeline

2017-07-11 Thread Esdras Neto
Good afternoon,

I am new to use Pipeline jobs, I would appreciate if someone could point me 
towards the right direction here.


On the build time trend for my pipeline job I don's see the Agent 
information, any ideas why this is happening? I only see the columns 
"Build" and "Duration".

Thanks!
Esdras

-- 
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/b691fb8e-b450-49b7-92c9-f1eaa0a87f97%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.