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