test branch develop und try catch blocke in jenkinsfile pipeline
This commit is contained in:
2
Jenkinsfile
vendored
2
Jenkinsfile
vendored
@@ -11,7 +11,7 @@ pipeline {
|
||||
script {
|
||||
try {
|
||||
// Code aus dem Repository holen
|
||||
git branch: 'main2', url: 'http://localhost:3003/Ismail/NodeMap.git'
|
||||
git branch: 'develop', url: 'http://localhost:3003/Ismail/NodeMap.git'
|
||||
} catch (Exception e) {
|
||||
error "Branch 'main2' exists nicht im Repository"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user