示例1: 根据参数进行构建
根据参数的值进行不同的操作。
#!/bin/bash echo "获取值" echo $Deploy case $Deploy in "deploy1") echo 123 >> /opt/script/aa.log ;; "rollback1") echo 456 >> /opt/script/aa.log ;; esac
标签:aa,opt,log,示例,echo,jenkins,用法 From: https://www.cnblogs.com/gaoyuechen/p/17352294.html