【发布时间】:2017-10-30 15:12:02
【问题描述】:
我正在设置一个 jenkins 作业,它遍历项目中的目录,并在每个目录中执行类似的操作。
目前,由于我的目录数量很少,因此浏览所有目录并不是什么大问题。但我只想遍历在GIT_PREVIOUS_COMMIT 和GIT_COMMIT 之间进行更改的目录。
我目前的工作是做什么的:
for dir in */
do
cd $dir
# test a script exists
# execute the script
# upload the result.zip to an S3 bucket
cd ..
done
【问题讨论】:
标签: git jenkins subdirectory git-diff