我使用了 Jenkins Gitlab 包,當我的管道開始作業時,我觀察到所有檔案都沒有以點開頭
pipeline {
agent any
stages {
stage('Initialization') {
steps {
sh 'ls -l'
updateGitlabCommitStatus name: 'Build&Deploy', state: 'pending'
git branch: env.gitlabBranch, credentialsId: 'id', url: 'link'
}
}
}}
已洗掉檔案的示例
- .env
- .eslintrc.ls
uj5u.com熱心網友回復:
ls -l在 step 方法使用的 shell 解釋器中執行的 unix 命令sh不會顯示以.. 您需要將方法引數更新為:
sh('ls -la')
轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/466025.html
