Skip to content

Commit

Permalink
run: export also pull request id environment variable to runs
Browse files Browse the repository at this point in the history
  • Loading branch information
sgotti committed Mar 9, 2020
1 parent ac1b0dc commit 627f409
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions internal/services/gateway/action/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -410,15 +410,16 @@ func (h *ActionHandler) CreateRuns(ctx context.Context, req *CreateRunRequest) e

// this env vars overrides other env vars
env := map[string]string{
"CI": "true",
"AGOLA_SSHPRIVKEY": req.SSHPrivKey,
"AGOLA_REPOSITORY_URL": req.CloneURL,
"AGOLA_GIT_HOST": gitHost,
"AGOLA_GIT_PORT": gitPort,
"AGOLA_GIT_BRANCH": req.Branch,
"AGOLA_GIT_TAG": req.Tag,
"AGOLA_GIT_REF": req.Ref,
"AGOLA_GIT_COMMITSHA": req.CommitSHA,
"CI": "true",
"AGOLA_SSHPRIVKEY": req.SSHPrivKey,
"AGOLA_REPOSITORY_URL": req.CloneURL,
"AGOLA_GIT_HOST": gitHost,
"AGOLA_GIT_PORT": gitPort,
"AGOLA_GIT_BRANCH": req.Branch,
"AGOLA_GIT_TAG": req.Tag,
"AGOLA_PULL_REQUEST_ID": req.PullRequestID,
"AGOLA_GIT_REF": req.Ref,
"AGOLA_GIT_COMMITSHA": req.CommitSHA,
}

if req.SSHHostKey != "" {
Expand Down

0 comments on commit 627f409

Please sign in to comment.