У меня есть код ниже конвейера, он работает, если я не добавляю шаг when fileexists
выше параллельного, когда я добавляю, что он завершается с ошибкой:
com.thoughtworks.xstream.converters.reflection.SerializationMethodInvoker.callWriteObject(SerializationMethodInvoker.java:135)
Caused: com.thoughtworks.xstream.converters.ConversionException: Could not call hudson.FilePath.writeObject() : Can't send a remote FilePath to a different remote channel
pipeline {
agent {
label 'my_build_machines'
}
parameters {
string(defaultValue: "", name: 'P_NAME')
}
stages {
stage('run tests') {
when { not { expression { fileExists 'skip_test.info' } } }
parallel {
stage ('skip file not present') {
steps {
script {
println "Running build as file not present"
}
}
}
// more stage here.
// ...
}
...