mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-26 20:01:02 +00:00
Expose job properties in environment
This commit is contained in:
parent
d5c8ab248b
commit
fc74ec7f36
1 changed files with 6 additions and 0 deletions
|
@ -261,6 +261,12 @@ func toEnv(w *queue.Work) map[string]string {
|
|||
"DRONE_BUILD_CREATED": fmt.Sprintf("%d", w.Build.Created),
|
||||
"DRONE_BUILD_STARTED": fmt.Sprintf("%d", w.Build.Started),
|
||||
"DRONE_BUILD_FINISHED": fmt.Sprintf("%d", w.Build.Finished),
|
||||
"DRONE_JOB_NUMBER": fmt.Sprintf("%d", w.Job.Number),
|
||||
"DRONE_JOB_STATUS": w.Job.Status,
|
||||
"DRONE_JOB_ERROR": w.Job.Error,
|
||||
"DRONE_JOB_EXIT_CODE": fmt.Sprintf("%d", w.Job.ExitCode),
|
||||
"DRONE_JOB_STARTED": fmt.Sprintf("%d", w.Job.Started),
|
||||
"DRONE_JOB_FINISHED": fmt.Sprintf("%d", w.Job.Finished),
|
||||
"DRONE_YAML_VERIFIED": fmt.Sprintf("%v", w.Verified),
|
||||
"DRONE_YAML_SIGNED": fmt.Sprintf("%v", w.Signed),
|
||||
"DRONE_BRANCH": w.Build.Branch,
|
||||
|
|
Loading…
Reference in a new issue