Merge pull request #2 from one000mph/add-deploy-id

add DRONE_DEPLOY_ID var
pull/3/head
ashwilliams1 5 years ago committed by GitHub
commit f271a4bb2c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -129,6 +129,7 @@ func Build(build *drone.Build) map[string]string {
"DRONE_BUILD_STARTED": fmt.Sprint(build.Started),
"DRONE_BUILD_FINISHED": fmt.Sprint(build.Finished),
"DRONE_DEPLOY_TO": build.Deploy,
"DRONE_DEPLOY_ID": fmt.Sprint(build.DeployID),
// these are legacy configuration parameters for backward
// compatibility with drone 0.8. These are deprecated and

@ -74,6 +74,7 @@ func TestBuild(t *testing.T) {
Event: "pull_request",
Action: "opened",
Deploy: "prod",
DeployID: 235634642,
Status: drone.StatusFailing,
Created: 1561421740,
Started: 1561421746,
@ -116,6 +117,7 @@ func TestBuild(t *testing.T) {
"DRONE_COMMIT_AUTHOR_NAME": "The Octocat",
"DRONE_COMMIT_SHA": "762941318ee16e59dabbacb1b4049eec22f0d303",
"DRONE_DEPLOY_TO": "prod",
"DRONE_DEPLOY_ID": "235634642",
"DRONE_FAILED_STAGES": "frontend",
"DRONE_PULL_REQUEST": "32",
"DRONE_SOURCE_BRANCH": "develop",

Loading…
Cancel
Save