0
我想在bash中使用case
(在Jenkinsfile中)比較給定的值並對其採取行動。然而,case
失敗,因爲:附近意外的標記'經理」語法錯誤附近的意外令牌
語法錯誤
錯誤發生在這裏:
...
...
def microServicesList = microServicesToUpdate.tokenize(",")
...
...
for (String microserviceName : microServicesList) {
sh """
...
...
case ${microserviceName} in
"Instances Manager")
// do something
;;
esac
"""
}