我正在尝试使用Text Finder 插件编写 jenkinsfile ,但我不知道它到底是如何工作的。
这是我的代码:
pipeline {
agent {
label {
label "master"
}
}
stages {
stage('CHECKOUT') {
steps{
script{
echo "##[1 / 4] ERROR"
}
publishers {
textFinder("*ERROR*", '', true, false, true)
}
}
}
}
}
Run Code Online (Sandbox Code Playgroud)