我创建了这个简单的管道,我在其中拉出一个 bitbucket 存储库 -
pipeline {
agent any
stages {
stage('Checkout from bitbucket') {
steps {
echo "Hello World"
git branch: 'feature/myFeature', changelog: false, credentialsId: 'my_bitbucket', poll: false, url: 'https://username@bitbucket.org/IT_AEM/infrastructure.git'
}
}
}
}
Run Code Online (Sandbox Code Playgroud)
当我运行构建时,它成功了。Jenkins 中的 git 存储库在哪里下载,在哪里可以查看?
干杯
默认情况下,您的存储库将克隆到您的工作区。$WORKSPACE环境变量包含此路径。您可以在节点配置中定义工作空间。您可以在这篇文章中查看有关工作区的一些详细信息:从机上的不一致 Jenkins 工作区路径
| 归档时间: |
|
| 查看次数: |
17624 次 |
| 最近记录: |