0
すべてのジェンキンジョブに「git tag」スクリプトを追加したいと思います。特定のジョブにスクリプトを追加する方法を知っています。しかし、すべてのジョブでこのスクリプトをグローバルに追加する方法はありますか?すべてのジェンキンジョブにシェルスクリプトを追加するには?
cd ${WORKSPACE}/${project}
prefix="btag"
if [[ "$buildtype" = "Release" || "$buildtype" = "FirstPublish" ]];then
prefix="rtag"
fi
tag=`date "+$prefix-%Y%m%d-%H%M%S-${BUILD_USER}"`
git tag $tag
git push origin $tag