From 537f56a596a90a72f517196b2f90cef0801f6cb3 Mon Sep 17 00:00:00 2001 From: Don Date: Fri, 6 Sep 2019 16:32:54 -0700 Subject: [PATCH] Add Step environment variables --- pkg/plugin/env.go | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 pkg/plugin/env.go diff --git a/pkg/plugin/env.go b/pkg/plugin/env.go new file mode 100644 index 0000000..973b9ae --- /dev/null +++ b/pkg/plugin/env.go @@ -0,0 +1,20 @@ +// Copyright (c) 2019, the Drone Plugins project authors. +// Please see the AUTHORS file for details. All rights reserved. +// Use of this source code is governed by an Apache 2.0 license that can be +// found in the LICENSE file. + +package plugin + +// List of enviornment variables set by Drone when running a step within a +// build stage. +// +// Multiple values are specified with `,` within the string. If there are +// multiple values this is to support backward compatibility with versions of +// Drone prior to the 1.0 release. + +const ( + // StepNameEnvVar is the environment variable for setting Step.Name. + StepNameEnvVar = "DRONE_STEP_NAME" + // StepNumberEnvVar is the environment variable for setting Step.Number. + StepNumberEnvVar = "DRONE_STEP_NUMBER" +)