[英]Jenkins - git checkout deletes files
I have the following Jenkins pipeline: 我有以下詹金斯管道:
node {
dir('/my/dir'){
stage 'checkout'
git url: 'https://github.com/my/project.git'
}
}
There were a few files in /my/dir
which were deleted after this pipeline completed. /my/dir
中有一些文件,在完成此管道后将其删除。
Is this due to dir
or git
? 这是由于dir
还是git
?
这是由于git
步骤所致,因为您告诉步骤将存储库克隆到cwd中,该文件为/my/dir/
,其中git会清理目录。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.