小编Hen*_*ijo的帖子

访问Jenkins管道作业上的SCM(Git)变量

这是我的管道代码:

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)

git jenkins jenkins-workflow

24
推荐指数
1
解决办法
5万
查看次数

解决和下载厨师食谱依赖关系

假设我想使用社区食谱(即http://community.opscode.com/cookbooks/gerrit).所以我将使用'knife cookbook site download'下载并上传到我当地的厨师服务器.我需要为每个直接和瞬态依赖重复此步骤.

是否有单个命令或工具来解析/下载食谱的所有直接和瞬态依赖性?

cookbook chef-infra knife

10
推荐指数
3
解决办法
1万
查看次数

标签 统计

chef-infra ×1

cookbook ×1

git ×1

jenkins ×1

jenkins-workflow ×1

knife ×1