RE: Shared library function cannot call other shared library function in separate file if called function uses "writeFile"

2020-02-10 Thread Reinhold Füreder
Weird. And sorry for misunderstanding you. There might be a stacktrace in the Jenkins log file (hopefully). Or you could try catch all exceptions in your scripted pipeline to get some more details… I just tried to reproduce your problem (or the one I now think you are describing), but unfortuna

How do you configure the "Resource root URL" behind a reverse proxy?

2020-02-10 Thread Daniel Schmidt
The question's in the title — how do you actually configure this? We run Jenkins behind NGINX. As a first-pass, I simply added our assets domain as an additional server_name to the previous, working server configuration (which is modeled off of the documentation

SharedLibrary doesn´t allow git parameter to fetch all branches

2020-02-10 Thread judaondo
Hello, I have the following pipeline that uses a method called "getServiceVersion" from a Shared Library. #!/usr/bin/env groovy @Library('mycom') import com.mycom.* // Declarative pipeline // properties([[$class: 'JiraProjectProperty'], buildDiscarder(logRotator( artifactDaysToKeepStr: '',

Re: Running code in Windows agent but script says we are in Linux

2020-02-10 Thread judaondo
Thank you @MarkWaite, I wasn´t aware of that step. And thank you also for the explanation. El lunes, 10 de febrero de 2020, 14:38:30 (UTC+1), Mark Waite escribió: > > Use the isUnix pipeline step >

Re: Running code in Windows agent but script says we are in Linux

2020-02-10 Thread Mark Waite
Use the isUnix pipeline step rather than writing your own version of that step. The System.properties that you are using will execute on the master, not on the agent. When it executes on the

Running code in Windows agent but script says we are in Linux

2020-02-10 Thread judaondo
I have the following pipeline (Jenkinsfile): @Library('mylib@master') import com.mylib.* pipeline { agent { label 'WindowsSlaveWS2016' } stages { stage('Demo') { steps { echo 'a' determineOS() echo 'b'

Running code in Windows agent but script says we are in Linux

2020-02-10 Thread judaondo
I have the following pipeline (Jenkinsfile): @Library('mylib@master') import com.mylib.* pipeline { agent { label 'WindowsSlaveWS2016' } stages { stage('Demo') { steps { echo 'a' determineOS() echo 'b'