Re: Multiple Pipelines in the queue using same executors and one goes offline

2018-02-15 Thread 'Brownjay' via Jenkins Users
Wanted to expand and sort of answer the questions I asked here. - One solution, which is probably the best solution, is to dynamically add more A and B resources. If you can spin up new resources then you're guaranteed to have online, not running nodes which Jenkins can then just

Re: new File is adding C: to the path of a linux container

2018-02-15 Thread red 888
This makes sense to me now. I'm trying to execute groovy code inside the slave (duh that obviously won't work). The groovy runtime is one the master so thats why its giving me back windows file paths- right? On Thursday, February 15, 2018 at 12:33:23 PM UTC-5, ok999 wrote: > > Files generated

How can I unstash and clobber or only copy if changed?

2018-02-15 Thread red 888
Im running into a java.nio.file.AccessDeniedException error when trying to unstash to a folder with the same files/folders. Ideally I'd like unstash to overwrite files only if changed, but if unstash would just clobber every file/folder conflict that works too. I'd be nice to avoid rm * -rf her

Re: Question about JDK and Maven through Jenkins

2018-02-15 Thread Cyrille Le Clerc
Hello Fábio, Could you have installed a JRE instead of installing a JDK on your build agent? Can you please: - Add the following instruction in your Jenkinsfile just before the invocation sh "mvn..." (1): - sh "which java" - sh "which javac" - Re run the pipeline - Sha

Re: new File is adding C: to the path of a linux container

2018-02-15 Thread niristotle okram
Files generated by jenkins during a build is created in the master. You have to use the "readFile" to use it in the compute environment of the slaves/agents On Thu, Feb 15, 2018 at 10:57 AM, red 888 wrote: > I have a windows master that executes a stage in a container on a linux > slave. > > > G

Re: new File is adding C: to the path of a linux container

2018-02-15 Thread 'Brownjay' via Jenkins Users
Also, depending on what your goals are in the future, you may want to use the findFiles which is part of the pipeline utility steps plugin

Re: new File is adding C: to the path of a linux container

2018-02-15 Thread 'Brownjay' via Jenkins Users
Hello, I think the problem that you are experiencing can be explained here . Basically, you can't use new File to create files in the slaves workspace (using the new File call will only do file things on the master). To do file interactions in th

new File is adding C: to the path of a linux container

2018-02-15 Thread red 888
I have a windows master that executes a stage in a container on a linux slave. Groovy is appending a "C:" to the path inside the linux container- totally breaking it: stage('sdlfkjsldkf') { agent { docker { image "library/alpine" } } steps { s

Pipeline SCM Polling: Break after first "Changes found"

2018-02-15 Thread Stefan Rademacher
Hi, I am running a Jenkins Pipeline, which checks out many repositories (>100). I am using web hooks to trigger Git SCM polling. Even though the polling is only triggered, if there was a change in at least one of the repositories, the polling puts our Jenkins instance under heavy load (queueing

Re: Static Analysis Collector Plugin and Pipelines

2018-02-15 Thread Ingmar Wirths
I'm still looking for an explanation for below syntax, but haven't received an answer yet. Maybe I shouldn't have changed the subject; I now reverted the subject back to the original one. On Mo, 2018-02-12 at 15:45 +0100, Ingmar Wirths wrote: > This syntax is new to me: > > step([$class: 'Analysi

Re: How can I write pipeline script to trigger a job and parameters from property files

2018-02-15 Thread Victor Martinez
https://stackoverflow.com/questions/37295773/how-to-use-a-fileparametervalue-in-a-jenkins-2-pipeline might help you out -- 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

Re: Question about credentialsId in marathon request

2018-02-15 Thread Samuel Mutel
I found a way with "withCredentials" function ... withCredentials([ string(credentialsId: 'XX-XX-XX-XX-XX-XX', variable: 'DCOS_PRIVATE_KEY') ]) { marathon( url: 'http://XX.XX.XX.XX:8080', forceUpdate: false, credentialsId: '{"uid":"cicd","login_endpoint":"${env.DCOS_ENDPOINT}","sc