摘要: GitHub: Payload URL: https://jenkins-new.jam.only.sap/generic-webhook-trigger/invoke?token=resurrect&jobQuietPeriod=1 Pipeline: pipeline { agent { lab 阅读全文
posted @ 2022-11-09 20:45 ascertain 阅读(392) 评论(0) 推荐(0)
摘要: #!/usr/bin/env bash # delete all branches without upstream while read branch; do upstream=$(git rev-parse --abbrev-ref $branch@{upstream} 2>/dev/null) 阅读全文
posted @ 2022-11-09 18:41 ascertain 阅读(30) 评论(0) 推荐(0)
摘要: read line solve no newline while read line || [ -n "${line-}" ]; do echo $line done < <(printf 'a\nb') 阅读全文
posted @ 2022-11-09 18:37 ascertain 阅读(34) 评论(0) 推荐(0)
摘要: #!/usr/bin/env bash #while getopts a:b name; do # echo name: "$name", OPTARG: "$OPTARG", OPTIND: $OPTIND, OPTERR: "$OPTERR" #done echo "$*" echo "$@" 阅读全文
posted @ 2022-11-09 18:21 ascertain 阅读(36) 评论(0) 推荐(0)
摘要: # swap two variables without intermediate variable, but intermediate variable is applicable to various situations(even with complex objects)# the two 阅读全文
posted @ 2022-11-09 01:21 ascertain 阅读(15) 评论(0) 推荐(0)