这是我的管道代码:
node ('master') {
git url: "$GIT_REPO_URL", branch: "$GIT_BRANCH"
echo env.GIT_COMMIT
echo env.GIT_BRANCH
echo env.GIT_REVISION
}
Run Code Online (Sandbox Code Playgroud)
构建结果如下所示:
Started by user anonymous
[Pipeline] Allocate node : Start
Running on master in /var/lib/jenkins/jobs/test/workspace
[Pipeline] node {
[Pipeline] git
> git rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
> git config remote.origin.url https://acme/scm/app.git # timeout=10
Fetching upstream changes from https://acme/scm/app.git
> git --version # timeout=10
> git fetch --tags --progress https://acme/scm/app.git +refs/heads/*:refs/remotes/origin/*
> git rev-parse refs/remotes/origin/master^{commit} # timeout=10
> …Run Code Online (Sandbox Code Playgroud) 假设我想使用社区食谱(即http://community.opscode.com/cookbooks/gerrit).所以我将使用'knife cookbook site download'下载并上传到我当地的厨师服务器.我需要为每个直接和瞬态依赖重复此步骤.
是否有单个命令或工具来解析/下载食谱的所有直接和瞬态依赖性?