Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

print vars being sent to ci-stats service #66906

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 10 additions & 6 deletions vars/workers.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,16 @@ def base(Map params, Closure closure) {
).trim()
}

ciStats.reportGitInfo(
env.ghprbSourceBranch ?: scmVars.GIT_LOCAL_BRANCH ?: scmVars.GIT_BRANCH,
scmVars.GIT_COMMIT,
env.ghprbTargetBranch,
mergeBase
)
def branch = env.ghprbSourceBranch ?: scmVars.GIT_LOCAL_BRANCH ?: scmVars.GIT_BRANCH
def commit = scmVars.GIT_COMMIT
def targetBranch = env.ghprbTargetBranch

print "sending git info to ci-stats"
print "[branch=${branch}] [commit=${commit}] [mergeBase=${mergeBase}] [targetBranch=${targetBranch}]"
print "scmvars:"
print scmVars

ciStats.reportGitInfo(branch, commit, targetBranch, mergeBase)
}
}

Expand Down