utility
findFiles
jenkinsfile
result
tips
java.io.NotSerializableException: groovy.lang.IntRange
refenrece:
caused via
references:
load a constant
see also imarslo: groovy metaClass
groovy file ( constant.groovy )
Jenkinsfile
result
extend the pipeline
groovy script ( builtInStage.groovy )
jenkinsfile
stage view

timeout
sample jenkins pipeline
get previous build abort
[!TIP]
see also iMarslo : get builds abort cause
DSL
List.collectwith API
others
handle api
running in temporaray folders
using
pwd(temp:true)console output
using
System.currentTimeMillis()console output
check git branch exists in local repo
or via
show-ref
withCredentials
push with ssh private credentials
gitUsernamePassword
[!NOTE] If for any particular reason, the push must be done using a different method the URL needs to be configured accordingly:
git config url.git@github.com/.insteadOf https://github.com/: if the checkout was done through HTTPS but push must be done using SSH
git config url.https://github.com/.insteadOf git@github.com/: if the checkout was done through SSH but push must be done using HTTPS escaping characters in the ECHO commands of the askpass script:
sshUserPrivateKey
or
sample code
code clone
groovy.io.FileType
[!NOTE|label:references:]
way to call
Last updated
Was this helpful?