diff --git a/cli/exec/flags.go b/cli/exec/flags.go index c884d6f5c..12fca119d 100644 --- a/cli/exec/flags.go +++ b/cli/exec/flags.go @@ -110,7 +110,7 @@ var flags = []cli.Flag{ Value: "woodpecker", }, &cli.StringFlag{ - EnvVars: []string{"CI_SYSTEM_LINK"}, + EnvVars: []string{"CI_SYSTEM_URL", "CI_SYSTEM_LINK"}, Name: "system-link", Value: "https://github.com/woodpecker-ci/woodpecker", }, @@ -119,7 +119,7 @@ var flags = []cli.Flag{ Name: "repo-name", }, &cli.StringFlag{ - EnvVars: []string{"CI_REPO_LINK"}, + EnvVars: []string{"CI_REPO_URL", "CI_REPO_LINK"}, Name: "repo-link", }, &cli.StringFlag{ @@ -160,7 +160,7 @@ var flags = []cli.Flag{ Value: "manual", }, &cli.StringFlag{ - EnvVars: []string{"CI_PIPELINE_LINK"}, + EnvVars: []string{"CI_PIPELINE_URL", "CI_PIPELINE_LINK"}, Name: "pipeline-link", }, &cli.StringFlag{ @@ -224,7 +224,7 @@ var flags = []cli.Flag{ Name: "prev-pipeline-event", }, &cli.StringFlag{ - EnvVars: []string{"CI_PREV_PIPELINE_LINK"}, + EnvVars: []string{"CI_PREV_PIPELINE_URL", "CI_PREV_PIPELINE_LINK"}, Name: "prev-pipeline-link", }, &cli.StringFlag{ diff --git a/docs/docs/20-usage/50-environment.md b/docs/docs/20-usage/50-environment.md index a329eebb3..ea013a250 100644 --- a/docs/docs/20-usage/50-environment.md +++ b/docs/docs/20-usage/50-environment.md @@ -54,7 +54,7 @@ This is the reference list of all environment variables available to your pipeli | `CI_REPO_OWNER` | repository owner | | `CI_REPO_NAME` | repository name | | `CI_REPO_SCM` | repository SCM (git) | -| `CI_REPO_LINK` | repository link | +| `CI_REPO_URL` | repository web URL | | `CI_REPO_CLONE_URL` | repository clone URL | | `CI_REPO_DEFAULT_BRANCH` | repository default branch (master) | | `CI_REPO_PRIVATE` | repository is private | @@ -69,7 +69,7 @@ This is the reference list of all environment variables available to your pipeli | `CI_COMMIT_TAG` | commit tag name (empty if event is not `tag`) | | `CI_COMMIT_PULL_REQUEST` | commit pull request number (empty if event is not `pull_request`) | | `CI_COMMIT_PULL_REQUEST_LABELS` | labels assigned to pull request (empty if event is not `pull_request`) | -| `CI_COMMIT_LINK` | commit link in forge | +| `CI_COMMIT_URL` | commit link in forge | | `CI_COMMIT_MESSAGE` | commit message | | `CI_COMMIT_AUTHOR` | commit author username | | `CI_COMMIT_AUTHOR_EMAIL` | commit author email address | @@ -78,7 +78,7 @@ This is the reference list of all environment variables available to your pipeli | `CI_PIPELINE_NUMBER` | pipeline number | | `CI_PIPELINE_PARENT` | number of parent pipeline | | `CI_PIPELINE_EVENT` | pipeline event (push, pull_request, tag, deployment) | -| `CI_PIPELINE_LINK` | link to the forge's web UI for the commit(s) or tag that triggered the pipeline | +| `CI_PIPELINE_URL` | link to the forge's web UI for the commit(s) or tag that triggered the pipeline | | `CI_PIPELINE_DEPLOY_TARGET` | pipeline deploy target for `deployment` events (ie production) | | `CI_PIPELINE_STATUS` | pipeline status (success, failure) | | `CI_PIPELINE_CREATED` | pipeline created UNIX timestamp | @@ -98,7 +98,7 @@ This is the reference list of all environment variables available to your pipeli | `CI_PREV_COMMIT_BRANCH` | previous commit branch | | `CI_PREV_COMMIT_SOURCE_BRANCH` | previous commit source branch | | `CI_PREV_COMMIT_TARGET_BRANCH` | previous commit target branch | -| `CI_PREV_COMMIT_LINK` | previous commit link in forge | +| `CI_PREV_COMMIT_URL` | previous commit link in forge | | `CI_PREV_COMMIT_MESSAGE` | previous commit message | | `CI_PREV_COMMIT_AUTHOR` | previous commit author username | | `CI_PREV_COMMIT_AUTHOR_EMAIL` | previous commit author email address | @@ -107,7 +107,7 @@ This is the reference list of all environment variables available to your pipeli | `CI_PREV_PIPELINE_NUMBER` | previous pipeline number | | `CI_PREV_PIPELINE_PARENT` | previous pipeline number of parent pipeline | | `CI_PREV_PIPELINE_EVENT` | previous pipeline event (push, pull_request, tag, deployment) | -| `CI_PREV_PIPELINE_LINK` | previous pipeline link in CI | +| `CI_PREV_PIPELINE_URL` | previous pipeline link in CI | | `CI_PREV_PIPELINE_DEPLOY_TARGET` | previous pipeline deploy target for `deployment` events (ie production) | | `CI_PREV_PIPELINE_STATUS` | previous pipeline status (success, failure) | | `CI_PREV_PIPELINE_CREATED` | previous pipeline created UNIX timestamp | @@ -117,7 +117,7 @@ This is the reference list of all environment variables available to your pipeli | `CI_WORKSPACE` | Path of the workspace where source code gets cloned to | | | **System** | | `CI_SYSTEM_NAME` | name of the CI system: `woodpecker` | -| `CI_SYSTEM_LINK` | link to CI system | +| `CI_SYSTEM_URL` | link to CI system | | `CI_SYSTEM_HOST` | hostname of CI server | | `CI_SYSTEM_VERSION` | version of the server | | | **Internal** - Please don't use! | diff --git a/docs/docs/91-migrations.md b/docs/docs/91-migrations.md index b03dfea81..434fbde41 100644 --- a/docs/docs/91-migrations.md +++ b/docs/docs/91-migrations.md @@ -9,7 +9,8 @@ Some versions need some changes to the server configuration or the pipeline conf - Renamed step environment variable `CI_SYSTEM_ARCH` to `CI_SYSTEM_PLATFORM`. Same applies for the cli exec variable. - Renamed environment variables `CI_BUILD_*` and `CI_PREV_BUILD_*` to `CI_PIPELINE_*` and `CI_PREV_PIPELINE_*`, old ones are still available but deprecated - Renamed environment variables `CI_JOB_*` to `CI_STEP_*`, old ones are still available but deprecated -- Renamed environment variable `CI_REPO_REMOTE` to `CI_REPO_CLONE_URL` +- Renamed environment variable `CI_REPO_REMOTE` to `CI_REPO_CLONE_URL`, old is still available but deprecated +- Renamed environment variable `*_LINK` to `*_URL`, old ones are still available but deprecated - Renamed API endpoints for pipelines (`//builds/` -> `//pipelines/`), old ones are still available but deprecated - Updated Prometheus gauge `build_*` to `pipeline_*` - Updated Prometheus gauge `*_job_*` to `*_step_*` diff --git a/docs/docs/92-development/09-terms.md b/docs/docs/92-development/09-terms.md new file mode 100644 index 000000000..7b9479687 --- /dev/null +++ b/docs/docs/92-development/09-terms.md @@ -0,0 +1,5 @@ +# Terms + +Sometimes there exist multiple terms that can be used for a thing, we try to define it here once and stick to it. + +- env var `*_LINK` should be `*_URL` also in code, use `URL()` instead of `Link` [[Vote](https://framadate.org/jVSQHwIGfJYy82IL)] diff --git a/pipeline/drone_compatibility.go b/pipeline/drone_compatibility.go index dcc9ebaec..43507904d 100644 --- a/pipeline/drone_compatibility.go +++ b/pipeline/drone_compatibility.go @@ -28,7 +28,7 @@ func SetDroneEnviron(env map[string]string) { copyEnv("CI_PIPELINE_PARENT", "DRONE_BUILD_PARENT", env) copyEnv("CI_PIPELINE_EVENT", "DRONE_BUILD_EVENT", env) copyEnv("CI_PIPELINE_STATUS", "DRONE_BUILD_STATUS", env) - copyEnv("CI_PIPELINE_LINK", "DRONE_BUILD_LINK", env) + copyEnv("CI_PIPELINE_URL", "DRONE_BUILD_LINK", env) copyEnv("CI_PIPELINE_CREATED", "DRONE_BUILD_CREATED", env) copyEnv("CI_PIPELINE_STARTED", "DRONE_BUILD_STARTED", env) copyEnv("CI_PIPELINE_FINISHED", "DRONE_BUILD_FINISHED", env) @@ -38,7 +38,7 @@ func SetDroneEnviron(env map[string]string) { copyEnv("CI_PREV_COMMIT_SHA", "DRONE_COMMIT_BEFORE", env) copyEnv("CI_COMMIT_REF", "DRONE_COMMIT_REF", env) copyEnv("CI_COMMIT_BRANCH", "DRONE_COMMIT_BRANCH", env) - copyEnv("CI_COMMIT_LINK", "DRONE_COMMIT_LINK", env) + copyEnv("CI_COMMIT_URL", "DRONE_COMMIT_LINK", env) copyEnv("CI_COMMIT_MESSAGE", "DRONE_COMMIT_MESSAGE", env) copyEnv("CI_COMMIT_AUTHOR", "DRONE_COMMIT_AUTHOR", env) copyEnv("CI_COMMIT_AUTHOR", "DRONE_COMMIT_AUTHOR_NAME", env) @@ -49,7 +49,7 @@ func SetDroneEnviron(env map[string]string) { copyEnv("CI_REPO_SCM", "DRONE_REPO_SCM", env) copyEnv("CI_REPO_OWNER", "DRONE_REPO_OWNER", env) copyEnv("CI_REPO_NAME", "DRONE_REPO_NAME", env) - copyEnv("CI_REPO_LINK", "DRONE_REPO_LINK", env) + copyEnv("CI_REPO_URL", "DRONE_REPO_LINK", env) copyEnv("CI_REPO_DEFAULT_BRANCH", "DRONE_REPO_BRANCH", env) copyEnv("CI_REPO_PRIVATE", "DRONE_REPO_PRIVATE", env) // clone diff --git a/pipeline/frontend/metadata.go b/pipeline/frontend/metadata.go index 0b22764e9..b33b958fb 100644 --- a/pipeline/frontend/metadata.go +++ b/pipeline/frontend/metadata.go @@ -157,7 +157,7 @@ func (m *Metadata) Environ() map[string]string { "CI_REPO_OWNER": repoOwner, "CI_REPO_NAME": repoName, "CI_REPO_SCM": "git", - "CI_REPO_LINK": m.Repo.Link, + "CI_REPO_URL": m.Repo.Link, "CI_REPO_CLONE_URL": m.Repo.CloneURL, "CI_REPO_DEFAULT_BRANCH": m.Repo.Branch, "CI_REPO_PRIVATE": strconv.FormatBool(m.Repo.Private), @@ -169,7 +169,7 @@ func (m *Metadata) Environ() map[string]string { "CI_COMMIT_BRANCH": m.Curr.Commit.Branch, "CI_COMMIT_SOURCE_BRANCH": sourceBranch, "CI_COMMIT_TARGET_BRANCH": targetBranch, - "CI_COMMIT_LINK": m.Curr.Link, + "CI_COMMIT_URL": m.Curr.Link, "CI_COMMIT_MESSAGE": m.Curr.Commit.Message, "CI_COMMIT_AUTHOR": m.Curr.Commit.Author.Name, "CI_COMMIT_AUTHOR_EMAIL": m.Curr.Commit.Author.Email, @@ -181,7 +181,7 @@ func (m *Metadata) Environ() map[string]string { "CI_PIPELINE_NUMBER": strconv.FormatInt(m.Curr.Number, 10), "CI_PIPELINE_PARENT": strconv.FormatInt(m.Curr.Parent, 10), "CI_PIPELINE_EVENT": m.Curr.Event, - "CI_PIPELINE_LINK": m.Curr.Link, + "CI_PIPELINE_URL": m.Curr.Link, "CI_PIPELINE_DEPLOY_TARGET": m.Curr.Target, "CI_PIPELINE_STATUS": m.Curr.Status, "CI_PIPELINE_CREATED": strconv.FormatInt(m.Curr.Created, 10), @@ -201,7 +201,7 @@ func (m *Metadata) Environ() map[string]string { "CI_PREV_COMMIT_REF": m.Prev.Commit.Ref, "CI_PREV_COMMIT_REFSPEC": m.Prev.Commit.Refspec, "CI_PREV_COMMIT_BRANCH": m.Prev.Commit.Branch, - "CI_PREV_COMMIT_LINK": m.Prev.Link, + "CI_PREV_COMMIT_URL": m.Prev.Link, "CI_PREV_COMMIT_MESSAGE": m.Prev.Commit.Message, "CI_PREV_COMMIT_AUTHOR": m.Prev.Commit.Author.Name, "CI_PREV_COMMIT_AUTHOR_EMAIL": m.Prev.Commit.Author.Email, @@ -210,7 +210,7 @@ func (m *Metadata) Environ() map[string]string { "CI_PREV_PIPELINE_NUMBER": strconv.FormatInt(m.Prev.Number, 10), "CI_PREV_PIPELINE_PARENT": strconv.FormatInt(m.Prev.Parent, 10), "CI_PREV_PIPELINE_EVENT": m.Prev.Event, - "CI_PREV_PIPELINE_LINK": m.Prev.Link, + "CI_PREV_PIPELINE_URL": m.Prev.Link, "CI_PREV_PIPELINE_DEPLOY_TARGET": m.Prev.Target, "CI_PREV_PIPELINE_STATUS": m.Prev.Status, "CI_PREV_PIPELINE_CREATED": strconv.FormatInt(m.Prev.Created, 10), @@ -218,7 +218,7 @@ func (m *Metadata) Environ() map[string]string { "CI_PREV_PIPELINE_FINISHED": strconv.FormatInt(m.Prev.Finished, 10), "CI_SYSTEM_NAME": m.Sys.Name, - "CI_SYSTEM_LINK": m.Sys.Link, + "CI_SYSTEM_URL": m.Sys.Link, "CI_SYSTEM_HOST": m.Sys.Host, "CI_SYSTEM_PLATFORM": m.Sys.Platform, // will be set by pipeline platform option or by agent "CI_SYSTEM_VERSION": version.Version, @@ -252,6 +252,13 @@ func (m *Metadata) Environ() map[string]string { "CI_JOB_FINISHED": "", // will be set by agent // CI_REPO_CLONE_URL "CI_REPO_REMOTE": m.Repo.CloneURL, + // use *_URL + "CI_REPO_LINK": m.Repo.Link, + "CI_COMMIT_LINK": m.Curr.Link, + "CI_PIPELINE_LINK": m.Curr.Link, + "CI_PREV_COMMIT_LINK": m.Prev.Link, + "CI_PREV_PIPELINE_LINK": m.Prev.Link, + "CI_SYSTEM_LINK": m.Sys.Link, } if m.Curr.Event == EventTag { params["CI_COMMIT_TAG"] = strings.TrimPrefix(m.Curr.Commit.Ref, "refs/tags/") diff --git a/pipeline/frontend/yaml/compiler/option_test.go b/pipeline/frontend/yaml/compiler/option_test.go index 976a5075f..38c7bb545 100644 --- a/pipeline/frontend/yaml/compiler/option_test.go +++ b/pipeline/frontend/yaml/compiler/option_test.go @@ -116,8 +116,8 @@ func TestWithMetadata(t *testing.T) { if compiler.env["CI_REPO_NAME"] != strings.Split(metadata.Repo.Name, "/")[1] { t.Errorf("WithMetadata must set CI_REPO_NAME") } - if compiler.env["CI_REPO_LINK"] != metadata.Repo.Link { - t.Errorf("WithMetadata must set CI_REPO_LINK") + if compiler.env["CI_REPO_URL"] != metadata.Repo.Link { + t.Errorf("WithMetadata must set CI_REPO_URL") } if compiler.env["CI_REPO_CLONE_URL"] != metadata.Repo.CloneURL { t.Errorf("WithMetadata must set CI_REPO_CLONE_URL") diff --git a/pipeline/samples/sample_1/pipeline.json b/pipeline/samples/sample_1/pipeline.json index a74e3e00f..329fa5cae 100644 --- a/pipeline/samples/sample_1/pipeline.json +++ b/pipeline/samples/sample_1/pipeline.json @@ -11,10 +11,10 @@ "working_dir": "/go/src/github.com/drone/envsubst", "environment": { "CI": "pipec", - "CI_BUILD_CREATED": "1486119586", - "CI_BUILD_EVENT": "push", - "CI_BUILD_NUMBER": "6", - "CI_BUILD_STARTED": "1486119585", + "CI_PIPELINE_CREATED": "1486119586", + "CI_PIPELINE_EVENT": "push", + "CI_PIPELINE_NUMBER": "6", + "CI_PIPELINE_STARTED": "1486119585", "CI_COMMIT_AUTHOR": "bradrydzewski", "CI_COMMIT_BRANCH": "master", "CI_COMMIT_MESSAGE": "added a few more test cases for escaping behavior", @@ -22,12 +22,12 @@ "CI_COMMIT_SHA": "d0876d3176965f9552a611cbd56e24a9264355e6", "CI_REMOTE_URL": "https://github.com/drone/envsubst.git", "CI_REPO": "drone/envsubst", - "CI_REPO_LINK": "https://github.com/drone/envsubst", + "CI_REPO_URL": "https://github.com/drone/envsubst", "CI_REPO_NAME": "drone/envsubst", "CI_REPO_REMOTE": "https://github.com/drone/envsubst.git", "CI_SYSTEM": "pipec", - "CI_SYSTEM_ARCH": "linux/amd64", - "CI_SYSTEM_LINK": "https://github.com/cncd/pipec", + "CI_SYSTEM_PLATFORM": "linux/amd64", + "CI_SYSTEM_URL": "https://github.com/cncd/pipec", "CI_SYSTEM_NAME": "pipec", "CI_WORKSPACE": "/go/src/github.com/drone/envsubst", "PLUGIN_DEPTH": "50" @@ -55,10 +55,10 @@ "working_dir": "/go/src/github.com/drone/envsubst", "environment": { "CI": "pipec", - "CI_BUILD_CREATED": "1486119586", - "CI_BUILD_EVENT": "push", - "CI_BUILD_NUMBER": "6", - "CI_BUILD_STARTED": "1486119585", + "CI_PIPELINE_CREATED": "1486119586", + "CI_PIPELINE_EVENT": "push", + "CI_PIPELINE_NUMBER": "6", + "CI_PIPELINE_STARTED": "1486119585", "CI_COMMIT_AUTHOR": "bradrydzewski", "CI_COMMIT_BRANCH": "master", "CI_COMMIT_MESSAGE": "added a few more test cases for escaping behavior", @@ -66,13 +66,13 @@ "CI_COMMIT_SHA": "d0876d3176965f9552a611cbd56e24a9264355e6", "CI_REMOTE_URL": "https://github.com/drone/envsubst.git", "CI_REPO": "drone/envsubst", - "CI_REPO_LINK": "https://github.com/drone/envsubst", + "CI_REPO_URL": "https://github.com/drone/envsubst", "CI_REPO_NAME": "drone/envsubst", "CI_REPO_REMOTE": "https://github.com/drone/envsubst.git", "CI_SCRIPT": "CmlmIFsgLW4gIiRDSV9ORVRSQ19NQUNISU5FIiBdOyB0aGVuCmNhdCA8PEVPRiA+ICRIT01FLy5uZXRyYwptYWNoaW5lICRDSV9ORVRSQ19NQUNISU5FCmxvZ2luICRDSV9ORVRSQ19VU0VSTkFNRQpwYXNzd29yZCAkQ0lfTkVUUkNfUEFTU1dPUkQKRU9GCmNobW9kIDA2MDAgJEhPTUUvLm5ldHJjCmZpCnVuc2V0IENJX05FVFJDX1VTRVJOQU1FCnVuc2V0IENJX05FVFJDX1BBU1NXT1JECnVuc2V0IENJX1NDUklQVAoKZWNobyArICJnbyBnZXQgLXQgLi8uLi4iCmdvIGdldCAtdCAuLy4uLgoKZWNobyArICJnbyBidWlsZCIKZ28gYnVpbGQKCmVjaG8gKyAiZ28gdGVzdCAtdiIKZ28gdGVzdCAtdgoK", "CI_SYSTEM": "pipec", - "CI_SYSTEM_ARCH": "linux/amd64", - "CI_SYSTEM_LINK": "https://github.com/cncd/pipec", + "CI_SYSTEM_PLATFORM": "linux/amd64", + "CI_SYSTEM_URL": "https://github.com/cncd/pipec", "CI_SYSTEM_NAME": "pipec", "CI_WORKSPACE": "/go/src/github.com/drone/envsubst", "HOME": "/root", diff --git a/pipeline/samples/sample_10_windows/pipeline.json b/pipeline/samples/sample_10_windows/pipeline.json index 956179c45..9bf923530 100644 --- a/pipeline/samples/sample_10_windows/pipeline.json +++ b/pipeline/samples/sample_10_windows/pipeline.json @@ -11,10 +11,10 @@ "working_dir": "c:\\gopath/src\\github.com\\drone\\envsubst", "environment": { "CI": "drone", - "CI_BUILD_CREATED": "1486119586", - "CI_BUILD_EVENT": "push", - "CI_BUILD_NUMBER": "6", - "CI_BUILD_STARTED": "1486119585", + "CI_PIPELINE_CREATED": "1486119586", + "CI_PIPELINE_EVENT": "push", + "CI_PIPELINE_NUMBER": "6", + "CI_PIPELINE_STARTED": "1486119585", "CI_COMMIT_AUTHOR": "bradrydzewski", "CI_COMMIT_BRANCH": "master", "CI_COMMIT_MESSAGE": "added a few more test cases for escaping behavior", @@ -22,19 +22,19 @@ "CI_COMMIT_SHA": "d0876d3176965f9552a611cbd56e24a9264355e6", "CI_REMOTE_URL": "https://github.com/drone/envsubst.git", "CI_REPO": "drone/envsubst", - "CI_REPO_LINK": "https://github.com/drone/envsubst", + "CI_REPO_URL": "https://github.com/drone/envsubst", "CI_REPO_NAME": "drone/envsubst", "CI_REPO_REMOTE": "https://github.com/drone/envsubst.git", "CI_SYSTEM": "pipec", - "CI_SYSTEM_ARCH": "windows/amd64", - "CI_SYSTEM_LINK": "https://github.com/cncd/pipec", + "CI_SYSTEM_PLATFORM": "windows/amd64", + "CI_SYSTEM_URL": "https://github.com/cncd/pipec", "CI_SYSTEM_NAME": "pipec", "CI_WORKSPACE": "c:\\gopath/src\\github.com\\drone\\envsubst", "CI_ARCH": "windows/amd64", "CI_BRANCH": "master", - "CI_BUILD_LINK": "https://github.com/cncd/pipec/drone/envsubst/6", + "CI_PIPELINE_URL": "https://github.com/cncd/pipec/drone/envsubst/6", "CI_COMMIT": "d0876d3176965f9552a611cbd56e24a9264355e6", - "CI_JOB_STARTED": "1486119585", + "CI_STEP_STARTED": "1486119585", "CI_REPO_OWNER": "drone", "CI_REPO_SCM": "git", "PLUGIN_DEPTH": "50" @@ -62,10 +62,10 @@ "working_dir": "c:\\gopath/src\\github.com\\drone\\envsubst", "environment": { "CI": "drone", - "CI_BUILD_CREATED": "1486119586", - "CI_BUILD_EVENT": "push", - "CI_BUILD_NUMBER": "6", - "CI_BUILD_STARTED": "1486119585", + "CI_PIPELINE_CREATED": "1486119586", + "CI_PIPELINE_EVENT": "push", + "CI_PIPELINE_NUMBER": "6", + "CI_PIPELINE_STARTED": "1486119585", "CI_COMMIT_AUTHOR": "bradrydzewski", "CI_COMMIT_BRANCH": "master", "CI_COMMIT_MESSAGE": "added a few more test cases for escaping behavior", @@ -73,20 +73,20 @@ "CI_COMMIT_SHA": "d0876d3176965f9552a611cbd56e24a9264355e6", "CI_REMOTE_URL": "https://github.com/drone/envsubst.git", "CI_REPO": "drone/envsubst", - "CI_REPO_LINK": "https://github.com/drone/envsubst", + "CI_REPO_URL": "https://github.com/drone/envsubst", "CI_REPO_NAME": "drone/envsubst", "CI_REPO_REMOTE": "https://github.com/drone/envsubst.git", "CI_SCRIPT": "CiRFcnJvckFjdGlvblByZWZlcmVuY2UgPSAnU3RvcCc7CiZjbWQgL2MgIm1rZGlyIGM6XHJvb3QiOwppZiAoJEVudjpDSV9ORVRSQ19NQUNISU5FKSB7CiRuZXRyYz1bc3RyaW5nXTo6Rm9ybWF0KCJ7MH1cX25ldHJjIiwkRW52OkhPTUUpOwoibWFjaGluZSAkRW52OkNJX05FVFJDX01BQ0hJTkUiID4+ICRuZXRyYzsKImxvZ2luICRFbnY6Q0lfTkVUUkNfVVNFUk5BTUUiID4+ICRuZXRyYzsKInBhc3N3b3JkICRFbnY6Q0lfTkVUUkNfUEFTU1dPUkQiID4+ICRuZXRyYzsKfTsKW0Vudmlyb25tZW50XTo6U2V0RW52aXJvbm1lbnRWYXJpYWJsZSgiQ0lfTkVUUkNfUEFTU1dPUkQiLCRudWxsKTsKW0Vudmlyb25tZW50XTo6U2V0RW52aXJvbm1lbnRWYXJpYWJsZSgiQ0lfU0NSSVBUIiwkbnVsbCk7CltFbnZpcm9ubWVudF06OlNldEVudmlyb25tZW50VmFyaWFibGUoIkRST05FX05FVFJDX1VTRVJOQU1FIiwkbnVsbCk7CltFbnZpcm9ubWVudF06OlNldEVudmlyb25tZW50VmFyaWFibGUoIkRST05FX05FVFJDX1BBU1NXT1JEIiwkbnVsbCk7CgpXcml0ZS1PdXRwdXQgKCcrICJnbyBnZXQgLXQgLlxcLi4uIicpOyAgW0NvbnNvbGVdOjpPdXQuRmx1c2goKQomIGdvIGdldCAtdCAuXC4uLjsgaWYgKCRMQVNURVhJVENPREUgLW5lIDApIHtleGl0ICRMQVNURVhJVENPREV9CgpXcml0ZS1PdXRwdXQgKCcrICJnbyBidWlsZCInKTsgIFtDb25zb2xlXTo6T3V0LkZsdXNoKCkKJiBnbyBidWlsZDsgaWYgKCRMQVNURVhJVENPREUgLW5lIDApIHtleGl0ICRMQVNURVhJVENPREV9CgpXcml0ZS1PdXRwdXQgKCcrICJnbyB0ZXN0IC12IicpOyAgW0NvbnNvbGVdOjpPdXQuRmx1c2goKQomIGdvIHRlc3QgLXY7IGlmICgkTEFTVEVYSVRDT0RFIC1uZSAwKSB7ZXhpdCAkTEFTVEVYSVRDT0RFfQoK", "CI_SYSTEM": "pipec", - "CI_SYSTEM_ARCH": "windows/amd64", - "CI_SYSTEM_LINK": "https://github.com/cncd/pipec", + "CI_SYSTEM_PLATFORM": "windows/amd64", + "CI_SYSTEM_URL": "https://github.com/cncd/pipec", "CI_SYSTEM_NAME": "pipec", "CI_WORKSPACE": "c:\\gopath/src\\github.com\\drone\\envsubst", "CI_ARCH": "windows/amd64", "CI_BRANCH": "master", - "CI_BUILD_LINK": "https://github.com/cncd/pipec/drone/envsubst/6", + "CI_PIPELINE_URL": "https://github.com/cncd/pipec/drone/envsubst/6", "CI_COMMIT": "d0876d3176965f9552a611cbd56e24a9264355e6", - "CI_JOB_STARTED": "1486119585", + "CI_STEP_STARTED": "1486119585", "CI_REPO_OWNER": "drone", "CI_REPO_SCM": "git", "HOME": "c:\\root", diff --git a/pipeline/samples/sample_2/pipeline.json b/pipeline/samples/sample_2/pipeline.json index 6a20e6319..65313ef26 100644 --- a/pipeline/samples/sample_2/pipeline.json +++ b/pipeline/samples/sample_2/pipeline.json @@ -10,10 +10,10 @@ "working_dir": "/go/src/github.com/go-sql-driver/mysql", "environment": { "CI": "pipec", - "CI_BUILD_CREATED": "1486119586", - "CI_BUILD_EVENT": "push", - "CI_BUILD_NUMBER": "530", - "CI_BUILD_STARTED": "1486119585", + "CI_PIPELINE_CREATED": "1486119586", + "CI_PIPELINE_EVENT": "push", + "CI_PIPELINE_NUMBER": "530", + "CI_PIPELINE_STARTED": "1486119585", "CI_COMMIT_AUTHOR": "egorsmkv", "CI_COMMIT_BRANCH": "master", "CI_COMMIT_MESSAGE": "Fix many urls", @@ -21,12 +21,12 @@ "CI_COMMIT_SHA": "2e00b5cd70399450106cec6431c2e2ce3cae5034", "CI_REMOTE_URL": "https://github.com/go-sql-driver/mysql.git", "CI_REPO": "go-sql-driver/mysql", - "CI_REPO_LINK": "https://github.com/go-sql-driver/mysql", + "CI_REPO_URL": "https://github.com/go-sql-driver/mysql", "CI_REPO_NAME": "go-sql-driver/mysql", "CI_REPO_REMOTE": "https://github.com/go-sql-driver/mysql.git", "CI_SYSTEM": "pipec", - "CI_SYSTEM_ARCH": "linux/amd64", - "CI_SYSTEM_LINK": "https://github.com/cncd/pipec", + "CI_SYSTEM_PLATFORM": "linux/amd64", + "CI_SYSTEM_URL": "https://github.com/cncd/pipec", "CI_SYSTEM_NAME": "pipec", "CI_WORKSPACE": "/go/src/github.com/go-sql-driver/mysql", "PLUGIN_DEPTH": "0" @@ -54,10 +54,10 @@ "detach": true, "environment": { "CI": "pipec", - "CI_BUILD_CREATED": "1486119586", - "CI_BUILD_EVENT": "push", - "CI_BUILD_NUMBER": "530", - "CI_BUILD_STARTED": "1486119585", + "CI_PIPELINE_CREATED": "1486119586", + "CI_PIPELINE_EVENT": "push", + "CI_PIPELINE_NUMBER": "530", + "CI_PIPELINE_STARTED": "1486119585", "CI_COMMIT_AUTHOR": "egorsmkv", "CI_COMMIT_BRANCH": "master", "CI_COMMIT_MESSAGE": "Fix many urls", @@ -65,12 +65,12 @@ "CI_COMMIT_SHA": "2e00b5cd70399450106cec6431c2e2ce3cae5034", "CI_REMOTE_URL": "https://github.com/go-sql-driver/mysql.git", "CI_REPO": "go-sql-driver/mysql", - "CI_REPO_LINK": "https://github.com/go-sql-driver/mysql", + "CI_REPO_URL": "https://github.com/go-sql-driver/mysql", "CI_REPO_NAME": "go-sql-driver/mysql", "CI_REPO_REMOTE": "https://github.com/go-sql-driver/mysql.git", "CI_SYSTEM": "pipec", - "CI_SYSTEM_ARCH": "linux/amd64", - "CI_SYSTEM_LINK": "https://github.com/cncd/pipec", + "CI_SYSTEM_PLATFORM": "linux/amd64", + "CI_SYSTEM_URL": "https://github.com/cncd/pipec", "CI_SYSTEM_NAME": "pipec", "CI_WORKSPACE": "/go/src/github.com/go-sql-driver/mysql", "MYSQL_ALLOW_EMPTY_PASSWORD": "yes", @@ -99,10 +99,10 @@ "working_dir": "/go/src/github.com/go-sql-driver/mysql", "environment": { "CI": "pipec", - "CI_BUILD_CREATED": "1486119586", - "CI_BUILD_EVENT": "push", - "CI_BUILD_NUMBER": "530", - "CI_BUILD_STARTED": "1486119585", + "CI_PIPELINE_CREATED": "1486119586", + "CI_PIPELINE_EVENT": "push", + "CI_PIPELINE_NUMBER": "530", + "CI_PIPELINE_STARTED": "1486119585", "CI_COMMIT_AUTHOR": "egorsmkv", "CI_COMMIT_BRANCH": "master", "CI_COMMIT_MESSAGE": "Fix many urls", @@ -110,13 +110,13 @@ "CI_COMMIT_SHA": "2e00b5cd70399450106cec6431c2e2ce3cae5034", "CI_REMOTE_URL": "https://github.com/go-sql-driver/mysql.git", "CI_REPO": "go-sql-driver/mysql", - "CI_REPO_LINK": "https://github.com/go-sql-driver/mysql", + "CI_REPO_URL": "https://github.com/go-sql-driver/mysql", "CI_REPO_NAME": "go-sql-driver/mysql", "CI_REPO_REMOTE": "https://github.com/go-sql-driver/mysql.git", "CI_SCRIPT": "CmlmIFsgLW4gIiRDSV9ORVRSQ19NQUNISU5FIiBdOyB0aGVuCmNhdCA8PEVPRiA+ICRIT01FLy5uZXRyYwptYWNoaW5lICRDSV9ORVRSQ19NQUNISU5FCmxvZ2luICRDSV9ORVRSQ19VU0VSTkFNRQpwYXNzd29yZCAkQ0lfTkVUUkNfUEFTU1dPUkQKRU9GCmNobW9kIDA2MDAgJEhPTUUvLm5ldHJjCmZpCnVuc2V0IENJX05FVFJDX1VTRVJOQU1FCnVuc2V0IENJX05FVFJDX1BBU1NXT1JECnVuc2V0IENJX1NDUklQVAoKZWNobyArICJzbGVlcCAyMCIKc2xlZXAgMjAKCmVjaG8gKyAiZ28gZ2V0IC12IC10IgpnbyBnZXQgLXYgLXQKCmVjaG8gKyAiZ28gdGVzdCAtdiIKZ28gdGVzdCAtdgoK", "CI_SYSTEM": "pipec", - "CI_SYSTEM_ARCH": "linux/amd64", - "CI_SYSTEM_LINK": "https://github.com/cncd/pipec", + "CI_SYSTEM_PLATFORM": "linux/amd64", + "CI_SYSTEM_URL": "https://github.com/cncd/pipec", "CI_SYSTEM_NAME": "pipec", "CI_WORKSPACE": "/go/src/github.com/go-sql-driver/mysql", "HOME": "/root", diff --git a/pipeline/samples/sample_3/pipeline.json b/pipeline/samples/sample_3/pipeline.json index 5643deaa8..405d6780c 100644 --- a/pipeline/samples/sample_3/pipeline.json +++ b/pipeline/samples/sample_3/pipeline.json @@ -11,10 +11,10 @@ "working_dir": "/go/src/github.com/drone/envsubst", "environment": { "CI": "pipec", - "CI_BUILD_CREATED": "1486119586", - "CI_BUILD_EVENT": "push", - "CI_BUILD_NUMBER": "6", - "CI_BUILD_STARTED": "1486119585", + "CI_PIPELINE_CREATED": "1486119586", + "CI_PIPELINE_EVENT": "push", + "CI_PIPELINE_NUMBER": "6", + "CI_PIPELINE_STARTED": "1486119585", "CI_COMMIT_AUTHOR": "bradrydzewski", "CI_COMMIT_BRANCH": "master", "CI_COMMIT_MESSAGE": "added a few more test cases for escaping behavior", @@ -22,12 +22,12 @@ "CI_COMMIT_SHA": "d0876d3176965f9552a611cbd56e24a9264355e6", "CI_REMOTE_URL": "https://github.com/drone/envsubst.git", "CI_REPO": "drone/envsubst", - "CI_REPO_LINK": "https://github.com/drone/envsubst", + "CI_REPO_URL": "https://github.com/drone/envsubst", "CI_REPO_NAME": "drone/envsubst", "CI_REPO_REMOTE": "https://github.com/drone/envsubst.git", "CI_SYSTEM": "pipec", - "CI_SYSTEM_ARCH": "linux/amd64", - "CI_SYSTEM_LINK": "https://github.com/cncd/pipec", + "CI_SYSTEM_PLATFORM": "linux/amd64", + "CI_SYSTEM_URL": "https://github.com/cncd/pipec", "CI_SYSTEM_NAME": "pipec", "CI_WORKSPACE": "/go/src/github.com/drone/envsubst", "PLUGIN_DEPTH": "50" @@ -55,10 +55,10 @@ "working_dir": "/go/src/github.com/drone/envsubst", "environment": { "CI": "pipec", - "CI_BUILD_CREATED": "1486119586", - "CI_BUILD_EVENT": "push", - "CI_BUILD_NUMBER": "6", - "CI_BUILD_STARTED": "1486119585", + "CI_PIPELINE_CREATED": "1486119586", + "CI_PIPELINE_EVENT": "push", + "CI_PIPELINE_NUMBER": "6", + "CI_PIPELINE_STARTED": "1486119585", "CI_COMMIT_AUTHOR": "bradrydzewski", "CI_COMMIT_BRANCH": "master", "CI_COMMIT_MESSAGE": "added a few more test cases for escaping behavior", @@ -66,13 +66,13 @@ "CI_COMMIT_SHA": "d0876d3176965f9552a611cbd56e24a9264355e6", "CI_REMOTE_URL": "https://github.com/drone/envsubst.git", "CI_REPO": "drone/envsubst", - "CI_REPO_LINK": "https://github.com/drone/envsubst", + "CI_REPO_URL": "https://github.com/drone/envsubst", "CI_REPO_NAME": "drone/envsubst", "CI_REPO_REMOTE": "https://github.com/drone/envsubst.git", "CI_SCRIPT": "CmlmIFsgLW4gIiRDSV9ORVRSQ19NQUNISU5FIiBdOyB0aGVuCmNhdCA8PEVPRiA+ICRIT01FLy5uZXRyYwptYWNoaW5lICRDSV9ORVRSQ19NQUNISU5FCmxvZ2luICRDSV9ORVRSQ19VU0VSTkFNRQpwYXNzd29yZCAkQ0lfTkVUUkNfUEFTU1dPUkQKRU9GCmNobW9kIDA2MDAgJEhPTUUvLm5ldHJjCmZpCnVuc2V0IENJX05FVFJDX1VTRVJOQU1FCnVuc2V0IENJX05FVFJDX1BBU1NXT1JECnVuc2V0IENJX1NDUklQVAoKZWNobyArICJlY2hvIHRoaXMgc3RlcCBzaG91bGQgZmFpbCIKZWNobyB0aGlzIHN0ZXAgc2hvdWxkIGZhaWwKCmVjaG8gKyAiZXhpdCAxIgpleGl0IDEKCg==", "CI_SYSTEM": "pipec", - "CI_SYSTEM_ARCH": "linux/amd64", - "CI_SYSTEM_LINK": "https://github.com/cncd/pipec", + "CI_SYSTEM_PLATFORM": "linux/amd64", + "CI_SYSTEM_URL": "https://github.com/cncd/pipec", "CI_SYSTEM_NAME": "pipec", "CI_WORKSPACE": "/go/src/github.com/drone/envsubst", "HOME": "/root", @@ -103,10 +103,10 @@ "working_dir": "/go/src/github.com/drone/envsubst", "environment": { "CI": "pipec", - "CI_BUILD_CREATED": "1486119586", - "CI_BUILD_EVENT": "push", - "CI_BUILD_NUMBER": "6", - "CI_BUILD_STARTED": "1486119585", + "CI_PIPELINE_CREATED": "1486119586", + "CI_PIPELINE_EVENT": "push", + "CI_PIPELINE_NUMBER": "6", + "CI_PIPELINE_STARTED": "1486119585", "CI_COMMIT_AUTHOR": "bradrydzewski", "CI_COMMIT_BRANCH": "master", "CI_COMMIT_MESSAGE": "added a few more test cases for escaping behavior", @@ -114,13 +114,13 @@ "CI_COMMIT_SHA": "d0876d3176965f9552a611cbd56e24a9264355e6", "CI_REMOTE_URL": "https://github.com/drone/envsubst.git", "CI_REPO": "drone/envsubst", - "CI_REPO_LINK": "https://github.com/drone/envsubst", + "CI_REPO_URL": "https://github.com/drone/envsubst", "CI_REPO_NAME": "drone/envsubst", "CI_REPO_REMOTE": "https://github.com/drone/envsubst.git", "CI_SCRIPT": "CmlmIFsgLW4gIiRDSV9ORVRSQ19NQUNISU5FIiBdOyB0aGVuCmNhdCA8PEVPRiA+ICRIT01FLy5uZXRyYwptYWNoaW5lICRDSV9ORVRSQ19NQUNISU5FCmxvZ2luICRDSV9ORVRSQ19VU0VSTkFNRQpwYXNzd29yZCAkQ0lfTkVUUkNfUEFTU1dPUkQKRU9GCmNobW9kIDA2MDAgJEhPTUUvLm5ldHJjCmZpCnVuc2V0IENJX05FVFJDX1VTRVJOQU1FCnVuc2V0IENJX05FVFJDX1BBU1NXT1JECnVuc2V0IENJX1NDUklQVAoKZWNobyArICJlY2hvIHRoaXMgc3RlcCBzaG91bGQgbmV2ZXIgZXhlY3V0ZSIKZWNobyB0aGlzIHN0ZXAgc2hvdWxkIG5ldmVyIGV4ZWN1dGUKCg==", "CI_SYSTEM": "pipec", - "CI_SYSTEM_ARCH": "linux/amd64", - "CI_SYSTEM_LINK": "https://github.com/cncd/pipec", + "CI_SYSTEM_PLATFORM": "linux/amd64", + "CI_SYSTEM_URL": "https://github.com/cncd/pipec", "CI_SYSTEM_NAME": "pipec", "CI_WORKSPACE": "/go/src/github.com/drone/envsubst", "HOME": "/root", diff --git a/pipeline/samples/sample_4/pipeline.json b/pipeline/samples/sample_4/pipeline.json index a1a81b5af..17badb220 100644 --- a/pipeline/samples/sample_4/pipeline.json +++ b/pipeline/samples/sample_4/pipeline.json @@ -11,10 +11,10 @@ "working_dir": "/go/src/github.com/drone/envsubst", "environment": { "CI": "pipec", - "CI_BUILD_CREATED": "1486119586", - "CI_BUILD_EVENT": "push", - "CI_BUILD_NUMBER": "6", - "CI_BUILD_STARTED": "1486119585", + "CI_PIPELINE_CREATED": "1486119586", + "CI_PIPELINE_EVENT": "push", + "CI_PIPELINE_NUMBER": "6", + "CI_PIPELINE_STARTED": "1486119585", "CI_COMMIT_AUTHOR": "bradrydzewski", "CI_COMMIT_BRANCH": "master", "CI_COMMIT_MESSAGE": "added a few more test cases for escaping behavior", @@ -22,12 +22,12 @@ "CI_COMMIT_SHA": "d0876d3176965f9552a611cbd56e24a9264355e6", "CI_REMOTE_URL": "https://github.com/drone/envsubst.git", "CI_REPO": "drone/envsubst", - "CI_REPO_LINK": "https://github.com/drone/envsubst", + "CI_REPO_URL": "https://github.com/drone/envsubst", "CI_REPO_NAME": "drone/envsubst", "CI_REPO_REMOTE": "https://github.com/drone/envsubst.git", "CI_SYSTEM": "pipec", - "CI_SYSTEM_ARCH": "linux/amd64", - "CI_SYSTEM_LINK": "https://github.com/cncd/pipec", + "CI_SYSTEM_PLATFORM": "linux/amd64", + "CI_SYSTEM_URL": "https://github.com/cncd/pipec", "CI_SYSTEM_NAME": "pipec", "CI_WORKSPACE": "/go/src/github.com/drone/envsubst", "PLUGIN_DEPTH": "50" @@ -55,10 +55,10 @@ "working_dir": "/go/src/github.com/drone/envsubst", "environment": { "CI": "pipec", - "CI_BUILD_CREATED": "1486119586", - "CI_BUILD_EVENT": "push", - "CI_BUILD_NUMBER": "6", - "CI_BUILD_STARTED": "1486119585", + "CI_PIPELINE_CREATED": "1486119586", + "CI_PIPELINE_EVENT": "push", + "CI_PIPELINE_NUMBER": "6", + "CI_PIPELINE_STARTED": "1486119585", "CI_COMMIT_AUTHOR": "bradrydzewski", "CI_COMMIT_BRANCH": "master", "CI_COMMIT_MESSAGE": "added a few more test cases for escaping behavior", @@ -66,13 +66,13 @@ "CI_COMMIT_SHA": "d0876d3176965f9552a611cbd56e24a9264355e6", "CI_REMOTE_URL": "https://github.com/drone/envsubst.git", "CI_REPO": "drone/envsubst", - "CI_REPO_LINK": "https://github.com/drone/envsubst", + "CI_REPO_URL": "https://github.com/drone/envsubst", "CI_REPO_NAME": "drone/envsubst", "CI_REPO_REMOTE": "https://github.com/drone/envsubst.git", "CI_SCRIPT": "CmlmIFsgLW4gIiRDSV9ORVRSQ19NQUNISU5FIiBdOyB0aGVuCmNhdCA8PEVPRiA+ICRIT01FLy5uZXRyYwptYWNoaW5lICRDSV9ORVRSQ19NQUNISU5FCmxvZ2luICRDSV9ORVRSQ19VU0VSTkFNRQpwYXNzd29yZCAkQ0lfTkVUUkNfUEFTU1dPUkQKRU9GCmNobW9kIDA2MDAgJEhPTUUvLm5ldHJjCmZpCnVuc2V0IENJX05FVFJDX1VTRVJOQU1FCnVuc2V0IENJX05FVFJDX1BBU1NXT1JECnVuc2V0IENJX1NDUklQVAoKZWNobyArICJlY2hvIHRoaXMgc3RlcCBzaG91bGQgZmFpbCIKZWNobyB0aGlzIHN0ZXAgc2hvdWxkIGZhaWwKCmVjaG8gKyAiZXhpdCAxIgpleGl0IDEKCg==", "CI_SYSTEM": "pipec", - "CI_SYSTEM_ARCH": "linux/amd64", - "CI_SYSTEM_LINK": "https://github.com/cncd/pipec", + "CI_SYSTEM_PLATFORM": "linux/amd64", + "CI_SYSTEM_URL": "https://github.com/cncd/pipec", "CI_SYSTEM_NAME": "pipec", "CI_WORKSPACE": "/go/src/github.com/drone/envsubst", "HOME": "/root", @@ -103,10 +103,10 @@ "working_dir": "/go/src/github.com/drone/envsubst", "environment": { "CI": "pipec", - "CI_BUILD_CREATED": "1486119586", - "CI_BUILD_EVENT": "push", - "CI_BUILD_NUMBER": "6", - "CI_BUILD_STARTED": "1486119585", + "CI_PIPELINE_CREATED": "1486119586", + "CI_PIPELINE_EVENT": "push", + "CI_PIPELINE_NUMBER": "6", + "CI_PIPELINE_STARTED": "1486119585", "CI_COMMIT_AUTHOR": "bradrydzewski", "CI_COMMIT_BRANCH": "master", "CI_COMMIT_MESSAGE": "added a few more test cases for escaping behavior", @@ -114,13 +114,13 @@ "CI_COMMIT_SHA": "d0876d3176965f9552a611cbd56e24a9264355e6", "CI_REMOTE_URL": "https://github.com/drone/envsubst.git", "CI_REPO": "drone/envsubst", - "CI_REPO_LINK": "https://github.com/drone/envsubst", + "CI_REPO_URL": "https://github.com/drone/envsubst", "CI_REPO_NAME": "drone/envsubst", "CI_REPO_REMOTE": "https://github.com/drone/envsubst.git", "CI_SCRIPT": "CmlmIFsgLW4gIiRDSV9ORVRSQ19NQUNISU5FIiBdOyB0aGVuCmNhdCA8PEVPRiA+ICRIT01FLy5uZXRyYwptYWNoaW5lICRDSV9ORVRSQ19NQUNISU5FCmxvZ2luICRDSV9ORVRSQ19VU0VSTkFNRQpwYXNzd29yZCAkQ0lfTkVUUkNfUEFTU1dPUkQKRU9GCmNobW9kIDA2MDAgJEhPTUUvLm5ldHJjCmZpCnVuc2V0IENJX05FVFJDX1VTRVJOQU1FCnVuc2V0IENJX05FVFJDX1BBU1NXT1JECnVuc2V0IENJX1NDUklQVAoKZWNobyArICJlY2hvIHRoaXMgc3RlcCBzaG91bGQgZXhlY3V0ZSwgZGVzcGl0ZSBmYWlsdXJlIgplY2hvIHRoaXMgc3RlcCBzaG91bGQgZXhlY3V0ZSwgZGVzcGl0ZSBmYWlsdXJlCgo=", "CI_SYSTEM": "pipec", - "CI_SYSTEM_ARCH": "linux/amd64", - "CI_SYSTEM_LINK": "https://github.com/cncd/pipec", + "CI_SYSTEM_PLATFORM": "linux/amd64", + "CI_SYSTEM_URL": "https://github.com/cncd/pipec", "CI_SYSTEM_NAME": "pipec", "CI_WORKSPACE": "/go/src/github.com/drone/envsubst", "HOME": "/root", diff --git a/pipeline/samples/sample_5/pipeline.json b/pipeline/samples/sample_5/pipeline.json index a27972879..e898cf083 100644 --- a/pipeline/samples/sample_5/pipeline.json +++ b/pipeline/samples/sample_5/pipeline.json @@ -11,10 +11,10 @@ "working_dir": "/go/src/github.com/drone/envsubst", "environment": { "CI": "pipec", - "CI_BUILD_CREATED": "1486119586", - "CI_BUILD_EVENT": "push", - "CI_BUILD_NUMBER": "6", - "CI_BUILD_STARTED": "1486119585", + "CI_PIPELINE_CREATED": "1486119586", + "CI_PIPELINE_EVENT": "push", + "CI_PIPELINE_NUMBER": "6", + "CI_PIPELINE_STARTED": "1486119585", "CI_COMMIT_AUTHOR": "bradrydzewski", "CI_COMMIT_BRANCH": "master", "CI_COMMIT_MESSAGE": "added a few more test cases for escaping behavior", @@ -22,12 +22,12 @@ "CI_COMMIT_SHA": "d0876d3176965f9552a611cbd56e24a9264355e6", "CI_REMOTE_URL": "https://github.com/drone/envsubst.git", "CI_REPO": "drone/envsubst", - "CI_REPO_LINK": "https://github.com/drone/envsubst", + "CI_REPO_URL": "https://github.com/drone/envsubst", "CI_REPO_NAME": "drone/envsubst", "CI_REPO_REMOTE": "https://github.com/drone/envsubst.git", "CI_SYSTEM": "pipec", - "CI_SYSTEM_ARCH": "linux/amd64", - "CI_SYSTEM_LINK": "https://github.com/cncd/pipec", + "CI_SYSTEM_PLATFORM": "linux/amd64", + "CI_SYSTEM_URL": "https://github.com/cncd/pipec", "CI_SYSTEM_NAME": "pipec", "CI_WORKSPACE": "/go/src/github.com/drone/envsubst", "PLUGIN_DEPTH": "50" @@ -55,10 +55,10 @@ "working_dir": "/go/src/github.com/drone/envsubst", "environment": { "CI": "pipec", - "CI_BUILD_CREATED": "1486119586", - "CI_BUILD_EVENT": "push", - "CI_BUILD_NUMBER": "6", - "CI_BUILD_STARTED": "1486119585", + "CI_PIPELINE_CREATED": "1486119586", + "CI_PIPELINE_EVENT": "push", + "CI_PIPELINE_NUMBER": "6", + "CI_PIPELINE_STARTED": "1486119585", "CI_COMMIT_AUTHOR": "bradrydzewski", "CI_COMMIT_BRANCH": "master", "CI_COMMIT_MESSAGE": "added a few more test cases for escaping behavior", @@ -66,13 +66,13 @@ "CI_COMMIT_SHA": "d0876d3176965f9552a611cbd56e24a9264355e6", "CI_REMOTE_URL": "https://github.com/drone/envsubst.git", "CI_REPO": "drone/envsubst", - "CI_REPO_LINK": "https://github.com/drone/envsubst", + "CI_REPO_URL": "https://github.com/drone/envsubst", "CI_REPO_NAME": "drone/envsubst", "CI_REPO_REMOTE": "https://github.com/drone/envsubst.git", "CI_SCRIPT": "CmlmIFsgLW4gIiRDSV9ORVRSQ19NQUNISU5FIiBdOyB0aGVuCmNhdCA8PEVPRiA+ICRIT01FLy5uZXRyYwptYWNoaW5lICRDSV9ORVRSQ19NQUNISU5FCmxvZ2luICRDSV9ORVRSQ19VU0VSTkFNRQpwYXNzd29yZCAkQ0lfTkVUUkNfUEFTU1dPUkQKRU9GCmNobW9kIDA2MDAgJEhPTUUvLm5ldHJjCmZpCnVuc2V0IENJX05FVFJDX1VTRVJOQU1FCnVuc2V0IENJX05FVFJDX1BBU1NXT1JECnVuc2V0IENJX1NDUklQVAoKZWNobyArICJlY2hvIHN0ZXAgMSIKZWNobyBzdGVwIDEKCmVjaG8gKyAic2xlZXAgMTAiCnNsZWVwIDEwCgplY2hvICsgImVjaG8gZG9uZSAxIgplY2hvIGRvbmUgMQoK", "CI_SYSTEM": "pipec", - "CI_SYSTEM_ARCH": "linux/amd64", - "CI_SYSTEM_LINK": "https://github.com/cncd/pipec", + "CI_SYSTEM_PLATFORM": "linux/amd64", + "CI_SYSTEM_URL": "https://github.com/cncd/pipec", "CI_SYSTEM_NAME": "pipec", "CI_WORKSPACE": "/go/src/github.com/drone/envsubst", "HOME": "/root", @@ -97,10 +97,10 @@ "working_dir": "/go/src/github.com/drone/envsubst", "environment": { "CI": "pipec", - "CI_BUILD_CREATED": "1486119586", - "CI_BUILD_EVENT": "push", - "CI_BUILD_NUMBER": "6", - "CI_BUILD_STARTED": "1486119585", + "CI_PIPELINE_CREATED": "1486119586", + "CI_PIPELINE_EVENT": "push", + "CI_PIPELINE_NUMBER": "6", + "CI_PIPELINE_STARTED": "1486119585", "CI_COMMIT_AUTHOR": "bradrydzewski", "CI_COMMIT_BRANCH": "master", "CI_COMMIT_MESSAGE": "added a few more test cases for escaping behavior", @@ -108,13 +108,13 @@ "CI_COMMIT_SHA": "d0876d3176965f9552a611cbd56e24a9264355e6", "CI_REMOTE_URL": "https://github.com/drone/envsubst.git", "CI_REPO": "drone/envsubst", - "CI_REPO_LINK": "https://github.com/drone/envsubst", + "CI_REPO_URL": "https://github.com/drone/envsubst", "CI_REPO_NAME": "drone/envsubst", "CI_REPO_REMOTE": "https://github.com/drone/envsubst.git", "CI_SCRIPT": "CmlmIFsgLW4gIiRDSV9ORVRSQ19NQUNISU5FIiBdOyB0aGVuCmNhdCA8PEVPRiA+ICRIT01FLy5uZXRyYwptYWNoaW5lICRDSV9ORVRSQ19NQUNISU5FCmxvZ2luICRDSV9ORVRSQ19VU0VSTkFNRQpwYXNzd29yZCAkQ0lfTkVUUkNfUEFTU1dPUkQKRU9GCmNobW9kIDA2MDAgJEhPTUUvLm5ldHJjCmZpCnVuc2V0IENJX05FVFJDX1VTRVJOQU1FCnVuc2V0IENJX05FVFJDX1BBU1NXT1JECnVuc2V0IENJX1NDUklQVAoKZWNobyArICJlY2hvIHN0ZXAgMiIKZWNobyBzdGVwIDIKCmVjaG8gKyAic2xlZXAgMTAiCnNsZWVwIDEwCgplY2hvICsgImVjaG8gZG9uZSAyIgplY2hvIGRvbmUgMgoK", "CI_SYSTEM": "pipec", - "CI_SYSTEM_ARCH": "linux/amd64", - "CI_SYSTEM_LINK": "https://github.com/cncd/pipec", + "CI_SYSTEM_PLATFORM": "linux/amd64", + "CI_SYSTEM_URL": "https://github.com/cncd/pipec", "CI_SYSTEM_NAME": "pipec", "CI_WORKSPACE": "/go/src/github.com/drone/envsubst", "HOME": "/root", @@ -145,10 +145,10 @@ "working_dir": "/go/src/github.com/drone/envsubst", "environment": { "CI": "pipec", - "CI_BUILD_CREATED": "1486119586", - "CI_BUILD_EVENT": "push", - "CI_BUILD_NUMBER": "6", - "CI_BUILD_STARTED": "1486119585", + "CI_PIPELINE_CREATED": "1486119586", + "CI_PIPELINE_EVENT": "push", + "CI_PIPELINE_NUMBER": "6", + "CI_PIPELINE_STARTED": "1486119585", "CI_COMMIT_AUTHOR": "bradrydzewski", "CI_COMMIT_BRANCH": "master", "CI_COMMIT_MESSAGE": "added a few more test cases for escaping behavior", @@ -156,13 +156,13 @@ "CI_COMMIT_SHA": "d0876d3176965f9552a611cbd56e24a9264355e6", "CI_REMOTE_URL": "https://github.com/drone/envsubst.git", "CI_REPO": "drone/envsubst", - "CI_REPO_LINK": "https://github.com/drone/envsubst", + "CI_REPO_URL": "https://github.com/drone/envsubst", "CI_REPO_NAME": "drone/envsubst", "CI_REPO_REMOTE": "https://github.com/drone/envsubst.git", "CI_SCRIPT": "CmlmIFsgLW4gIiRDSV9ORVRSQ19NQUNISU5FIiBdOyB0aGVuCmNhdCA8PEVPRiA+ICRIT01FLy5uZXRyYwptYWNoaW5lICRDSV9ORVRSQ19NQUNISU5FCmxvZ2luICRDSV9ORVRSQ19VU0VSTkFNRQpwYXNzd29yZCAkQ0lfTkVUUkNfUEFTU1dPUkQKRU9GCmNobW9kIDA2MDAgJEhPTUUvLm5ldHJjCmZpCnVuc2V0IENJX05FVFJDX1VTRVJOQU1FCnVuc2V0IENJX05FVFJDX1BBU1NXT1JECnVuc2V0IENJX1NDUklQVAoKZWNobyArICJlY2hvIEkgc2hvdWxkIGV4ZWN1dGUgbGFzdC4iCmVjaG8gSSBzaG91bGQgZXhlY3V0ZSBsYXN0LgoKZWNobyArICJlY2hvIGFmdGVyIHRoZSBwcmlvciB0d28gc3RlcHMgZmluaXNoIGV4ZWN1dGlvbi4iCmVjaG8gYWZ0ZXIgdGhlIHByaW9yIHR3byBzdGVwcyBmaW5pc2ggZXhlY3V0aW9uLgoK", "CI_SYSTEM": "pipec", - "CI_SYSTEM_ARCH": "linux/amd64", - "CI_SYSTEM_LINK": "https://github.com/cncd/pipec", + "CI_SYSTEM_PLATFORM": "linux/amd64", + "CI_SYSTEM_URL": "https://github.com/cncd/pipec", "CI_SYSTEM_NAME": "pipec", "CI_WORKSPACE": "/go/src/github.com/drone/envsubst", "HOME": "/root", @@ -193,10 +193,10 @@ "working_dir": "/go/src/github.com/drone/envsubst", "environment": { "CI": "pipec", - "CI_BUILD_CREATED": "1486119586", - "CI_BUILD_EVENT": "push", - "CI_BUILD_NUMBER": "6", - "CI_BUILD_STARTED": "1486119585", + "CI_PIPELINE_CREATED": "1486119586", + "CI_PIPELINE_EVENT": "push", + "CI_PIPELINE_NUMBER": "6", + "CI_PIPELINE_STARTED": "1486119585", "CI_COMMIT_AUTHOR": "bradrydzewski", "CI_COMMIT_BRANCH": "master", "CI_COMMIT_MESSAGE": "added a few more test cases for escaping behavior", @@ -204,13 +204,13 @@ "CI_COMMIT_SHA": "d0876d3176965f9552a611cbd56e24a9264355e6", "CI_REMOTE_URL": "https://github.com/drone/envsubst.git", "CI_REPO": "drone/envsubst", - "CI_REPO_LINK": "https://github.com/drone/envsubst", + "CI_REPO_URL": "https://github.com/drone/envsubst", "CI_REPO_NAME": "drone/envsubst", "CI_REPO_REMOTE": "https://github.com/drone/envsubst.git", "CI_SCRIPT": "CmlmIFsgLW4gIiRDSV9ORVRSQ19NQUNISU5FIiBdOyB0aGVuCmNhdCA8PEVPRiA+ICRIT01FLy5uZXRyYwptYWNoaW5lICRDSV9ORVRSQ19NQUNISU5FCmxvZ2luICRDSV9ORVRSQ19VU0VSTkFNRQpwYXNzd29yZCAkQ0lfTkVUUkNfUEFTU1dPUkQKRU9GCmNobW9kIDA2MDAgJEhPTUUvLm5ldHJjCmZpCnVuc2V0IENJX05FVFJDX1VTRVJOQU1FCnVuc2V0IENJX05FVFJDX1BBU1NXT1JECnVuc2V0IENJX1NDUklQVAoKZWNobyArICJlY2hvIHN0ZXAgMyIKZWNobyBzdGVwIDMKCmVjaG8gKyAic2xlZXAgMTAiCnNsZWVwIDEwCgplY2hvICsgImVjaG8gZG9uZSAzIgplY2hvIGRvbmUgMwoK", "CI_SYSTEM": "pipec", - "CI_SYSTEM_ARCH": "linux/amd64", - "CI_SYSTEM_LINK": "https://github.com/cncd/pipec", + "CI_SYSTEM_PLATFORM": "linux/amd64", + "CI_SYSTEM_URL": "https://github.com/cncd/pipec", "CI_SYSTEM_NAME": "pipec", "CI_WORKSPACE": "/go/src/github.com/drone/envsubst", "HOME": "/root", @@ -235,10 +235,10 @@ "working_dir": "/go/src/github.com/drone/envsubst", "environment": { "CI": "pipec", - "CI_BUILD_CREATED": "1486119586", - "CI_BUILD_EVENT": "push", - "CI_BUILD_NUMBER": "6", - "CI_BUILD_STARTED": "1486119585", + "CI_PIPELINE_CREATED": "1486119586", + "CI_PIPELINE_EVENT": "push", + "CI_PIPELINE_NUMBER": "6", + "CI_PIPELINE_STARTED": "1486119585", "CI_COMMIT_AUTHOR": "bradrydzewski", "CI_COMMIT_BRANCH": "master", "CI_COMMIT_MESSAGE": "added a few more test cases for escaping behavior", @@ -246,13 +246,13 @@ "CI_COMMIT_SHA": "d0876d3176965f9552a611cbd56e24a9264355e6", "CI_REMOTE_URL": "https://github.com/drone/envsubst.git", "CI_REPO": "drone/envsubst", - "CI_REPO_LINK": "https://github.com/drone/envsubst", + "CI_REPO_URL": "https://github.com/drone/envsubst", "CI_REPO_NAME": "drone/envsubst", "CI_REPO_REMOTE": "https://github.com/drone/envsubst.git", "CI_SCRIPT": "CmlmIFsgLW4gIiRDSV9ORVRSQ19NQUNISU5FIiBdOyB0aGVuCmNhdCA8PEVPRiA+ICRIT01FLy5uZXRyYwptYWNoaW5lICRDSV9ORVRSQ19NQUNISU5FCmxvZ2luICRDSV9ORVRSQ19VU0VSTkFNRQpwYXNzd29yZCAkQ0lfTkVUUkNfUEFTU1dPUkQKRU9GCmNobW9kIDA2MDAgJEhPTUUvLm5ldHJjCmZpCnVuc2V0IENJX05FVFJDX1VTRVJOQU1FCnVuc2V0IENJX05FVFJDX1BBU1NXT1JECnVuc2V0IENJX1NDUklQVAoKZWNobyArICJlY2hvIHN0ZXAgNCIKZWNobyBzdGVwIDQKCmVjaG8gKyAic2xlZXAgMTAiCnNsZWVwIDEwCgplY2hvICsgImVjaG8gZG9uZSA0IgplY2hvIGRvbmUgNAoK", "CI_SYSTEM": "pipec", - "CI_SYSTEM_ARCH": "linux/amd64", - "CI_SYSTEM_LINK": "https://github.com/cncd/pipec", + "CI_SYSTEM_PLATFORM": "linux/amd64", + "CI_SYSTEM_URL": "https://github.com/cncd/pipec", "CI_SYSTEM_NAME": "pipec", "CI_WORKSPACE": "/go/src/github.com/drone/envsubst", "HOME": "/root", diff --git a/pipeline/samples/sample_6/pipeline.json b/pipeline/samples/sample_6/pipeline.json index fb970860f..6cbcf3675 100644 --- a/pipeline/samples/sample_6/pipeline.json +++ b/pipeline/samples/sample_6/pipeline.json @@ -11,10 +11,10 @@ "working_dir": "/go/src/github.com/drone/envsubst", "environment": { "CI": "drone", - "CI_BUILD_CREATED": "1486119586", - "CI_BUILD_EVENT": "push", - "CI_BUILD_NUMBER": "6", - "CI_BUILD_STARTED": "1486119585", + "CI_PIPELINE_CREATED": "1486119586", + "CI_PIPELINE_EVENT": "push", + "CI_PIPELINE_NUMBER": "6", + "CI_PIPELINE_STARTED": "1486119585", "CI_COMMIT_AUTHOR": "bradrydzewski", "CI_COMMIT_BRANCH": "master", "CI_COMMIT_MESSAGE": "added a few more test cases for escaping behavior", @@ -22,19 +22,19 @@ "CI_COMMIT_SHA": "d0876d3176965f9552a611cbd56e24a9264355e6", "CI_REMOTE_URL": "https://github.com/drone/envsubst.git", "CI_REPO": "drone/envsubst", - "CI_REPO_LINK": "https://github.com/drone/envsubst", + "CI_REPO_URL": "https://github.com/drone/envsubst", "CI_REPO_NAME": "drone/envsubst", "CI_REPO_REMOTE": "https://github.com/drone/envsubst.git", "CI_SYSTEM": "pipec", - "CI_SYSTEM_ARCH": "linux/amd64", - "CI_SYSTEM_LINK": "https://github.com/cncd/pipec", + "CI_SYSTEM_PLATFORM": "linux/amd64", + "CI_SYSTEM_URL": "https://github.com/cncd/pipec", "CI_SYSTEM_NAME": "pipec", "CI_WORKSPACE": "/go/src/github.com/drone/envsubst", "CI_ARCH": "linux/amd64", "CI_BRANCH": "master", - "CI_BUILD_LINK": "https://github.com/cncd/pipec/drone/envsubst/6", + "CI_PIPELINE_URL": "https://github.com/cncd/pipec/drone/envsubst/6", "CI_COMMIT": "d0876d3176965f9552a611cbd56e24a9264355e6", - "CI_JOB_STARTED": "1486119585", + "CI_STEP_STARTED": "1486119585", "CI_REPO_BRANCH": "master", "CI_REPO_OWNER": "drone", "CI_REPO_SCM": "git", @@ -66,10 +66,10 @@ "working_dir": "/go/src/github.com/drone/envsubst", "environment": { "CI": "drone", - "CI_BUILD_CREATED": "1486119586", - "CI_BUILD_EVENT": "push", - "CI_BUILD_NUMBER": "6", - "CI_BUILD_STARTED": "1486119585", + "CI_PIPELINE_CREATED": "1486119586", + "CI_PIPELINE_EVENT": "push", + "CI_PIPELINE_NUMBER": "6", + "CI_PIPELINE_STARTED": "1486119585", "CI_COMMIT_AUTHOR": "bradrydzewski", "CI_COMMIT_BRANCH": "master", "CI_COMMIT_MESSAGE": "added a few more test cases for escaping behavior", @@ -77,19 +77,19 @@ "CI_COMMIT_SHA": "d0876d3176965f9552a611cbd56e24a9264355e6", "CI_REMOTE_URL": "https://github.com/drone/envsubst.git", "CI_REPO": "drone/envsubst", - "CI_REPO_LINK": "https://github.com/drone/envsubst", + "CI_REPO_URL": "https://github.com/drone/envsubst", "CI_REPO_NAME": "drone/envsubst", "CI_REPO_REMOTE": "https://github.com/drone/envsubst.git", "CI_SCRIPT": "CmlmIFsgLW4gIiRDSV9ORVRSQ19NQUNISU5FIiBdOyB0aGVuCmNhdCA8PEVPRiA+ICRIT01FLy5uZXRyYwptYWNoaW5lICRDSV9ORVRSQ19NQUNISU5FCmxvZ2luICRDSV9ORVRSQ19VU0VSTkFNRQpwYXNzd29yZCAkQ0lfTkVUUkNfUEFTU1dPUkQKRU9GCmNobW9kIDA2MDAgJEhPTUUvLm5ldHJjCmZpCnVuc2V0IENJX05FVFJDX1VTRVJOQU1FCnVuc2V0IENJX05FVFJDX1BBU1NXT1JECnVuc2V0IENJX1NDUklQVAoKZWNobyArICJnbyBnZXQgLXQgLi8uLi4iCmdvIGdldCAtdCAuLy4uLgoKZWNobyArICJnbyBidWlsZCIKZ28gYnVpbGQKCmVjaG8gKyAiZ28gdGVzdCAtdiIKZ28gdGVzdCAtdgoK", "CI_SYSTEM": "pipec", - "CI_SYSTEM_ARCH": "linux/amd64", - "CI_SYSTEM_LINK": "https://github.com/cncd/pipec", + "CI_SYSTEM_PLATFORM": "linux/amd64", + "CI_SYSTEM_URL": "https://github.com/cncd/pipec", "CI_SYSTEM_NAME": "pipec", "CI_WORKSPACE": "/go/src/github.com/drone/envsubst", "CI_ARCH": "linux/amd64", "CI_BRANCH": "master", "CI_COMMIT": "d0876d3176965f9552a611cbd56e24a9264355e6", - "CI_JOB_STARTED": "1486119585", + "CI_STEP_STARTED": "1486119585", "CI_REPO_BRANCH": "master", "CI_REPO_OWNER": "drone", "CI_REPO_SCM": "git", @@ -124,10 +124,10 @@ "working_dir": "/go/src/github.com/drone/envsubst", "environment": { "CI": "drone", - "CI_BUILD_CREATED": "1486119586", - "CI_BUILD_EVENT": "push", - "CI_BUILD_NUMBER": "6", - "CI_BUILD_STARTED": "1486119585", + "CI_PIPELINE_CREATED": "1486119586", + "CI_PIPELINE_EVENT": "push", + "CI_PIPELINE_NUMBER": "6", + "CI_PIPELINE_STARTED": "1486119585", "CI_COMMIT_AUTHOR": "bradrydzewski", "CI_COMMIT_BRANCH": "master", "CI_COMMIT_MESSAGE": "added a few more test cases for escaping behavior", @@ -135,19 +135,19 @@ "CI_COMMIT_SHA": "d0876d3176965f9552a611cbd56e24a9264355e6", "CI_REMOTE_URL": "https://github.com/drone/envsubst.git", "CI_REPO": "drone/envsubst", - "CI_REPO_LINK": "https://github.com/drone/envsubst", + "CI_REPO_URL": "https://github.com/drone/envsubst", "CI_REPO_NAME": "drone/envsubst", "CI_REPO_REMOTE": "https://github.com/drone/envsubst.git", "CI_SYSTEM": "pipec", - "CI_SYSTEM_ARCH": "linux/amd64", - "CI_SYSTEM_LINK": "https://github.com/cncd/pipec", + "CI_SYSTEM_PLATFORM": "linux/amd64", + "CI_SYSTEM_URL": "https://github.com/cncd/pipec", "CI_SYSTEM_NAME": "pipec", "CI_WORKSPACE": "/go/src/github.com/drone/envsubst", "CI_ARCH": "linux/amd64", "CI_BRANCH": "master", - "CI_BUILD_LINK": "https://github.com/cncd/pipec/drone/envsubst/6", + "CI_PIPELINE_URL": "https://github.com/cncd/pipec/drone/envsubst/6", "CI_COMMIT": "d0876d3176965f9552a611cbd56e24a9264355e6", - "CI_JOB_STARTED": "1486119585", + "CI_STEP_STARTED": "1486119585", "CI_REPO_BRANCH": "master", "CI_REPO_OWNER": "drone", "CI_REPO_SCM": "git", diff --git a/pipeline/samples/sample_7_redis/pipeline.json b/pipeline/samples/sample_7_redis/pipeline.json index 5be3552d5..c0a41aad9 100644 --- a/pipeline/samples/sample_7_redis/pipeline.json +++ b/pipeline/samples/sample_7_redis/pipeline.json @@ -12,12 +12,12 @@ "environment": { "CI": "drone", "CI_SYSTEM": "pipec", - "CI_SYSTEM_ARCH": "linux/amd64", - "CI_SYSTEM_LINK": "https://github.com/cncd/pipec", + "CI_SYSTEM_PLATFORM": "linux/amd64", + "CI_SYSTEM_URL": "https://github.com/cncd/pipec", "CI_SYSTEM_NAME": "pipec", "CI_WORKSPACE": "/go/src/github.com/drone/envsubst", "CI_ARCH": "linux/amd64", - "CI_BUILD_LINK": "https://github.com/cncd/pipec//0", + "CI_PIPELINE_URL": "https://github.com/cncd/pipec//0", "CI_REPO_SCM": "git" }, "volumes": [ @@ -40,12 +40,12 @@ "environment": { "CI": "drone", "CI_SYSTEM": "pipec", - "CI_SYSTEM_ARCH": "linux/amd64", - "CI_SYSTEM_LINK": "https://github.com/cncd/pipec", + "CI_SYSTEM_PLATFORM": "linux/amd64", + "CI_SYSTEM_URL": "https://github.com/cncd/pipec", "CI_SYSTEM_NAME": "pipec", "CI_WORKSPACE": "/go/src/github.com/drone/envsubst", "CI_ARCH": "linux/amd64", - "CI_BUILD_LINK": "https://github.com/cncd/pipec//0", + "CI_PIPELINE_URL": "https://github.com/cncd/pipec//0", "CI_REPO_SCM": "git" }, "volumes": [ @@ -75,13 +75,13 @@ "CI": "drone", "CI_SCRIPT": "CmlmIFsgLW4gIiRDSV9ORVRSQ19NQUNISU5FIiBdOyB0aGVuCmNhdCA8PEVPRiA+ICRIT01FLy5uZXRyYwptYWNoaW5lICRDSV9ORVRSQ19NQUNISU5FCmxvZ2luICRDSV9ORVRSQ19VU0VSTkFNRQpwYXNzd29yZCAkQ0lfTkVUUkNfUEFTU1dPUkQKRU9GCmNobW9kIDA2MDAgJEhPTUUvLm5ldHJjCmZpCnVuc2V0IENJX05FVFJDX1VTRVJOQU1FCnVuc2V0IENJX05FVFJDX1BBU1NXT1JECnVuc2V0IENJX1NDUklQVAp1bnNldCBEUk9ORV9ORVRSQ19VU0VSTkFNRQp1bnNldCBEUk9ORV9ORVRSQ19QQVNTV09SRAoKZWNobyArICJzbGVlcCAxIgpzbGVlcCAxCgplY2hvICsgInJlZGlzLWNsaSAtaCByZWRpczEgcGluZyIKcmVkaXMtY2xpIC1oIHJlZGlzMSBwaW5nCgplY2hvICsgInJlZGlzLWNsaSAtaCByZWRpczIgcGluZyIKcmVkaXMtY2xpIC1oIHJlZGlzMiBwaW5nCgplY2hvICsgInJlZGlzLWNsaSAtaCByZWRpczEgc2V0IEhFTExPIGhlbGxvIgpyZWRpcy1jbGkgLWggcmVkaXMxIHNldCBIRUxMTyBoZWxsbwoKZWNobyArICJyZWRpcy1jbGkgLWggcmVkaXMyIHNldCBIRUxMTyBob2xhIgpyZWRpcy1jbGkgLWggcmVkaXMyIHNldCBIRUxMTyBob2xhCgplY2hvICsgInJlZGlzLWNsaSAtaCByZWRpczEgZ2V0IEhFTExPIgpyZWRpcy1jbGkgLWggcmVkaXMxIGdldCBIRUxMTwoKZWNobyArICJyZWRpcy1jbGkgLWggcmVkaXMyIGdldCBIRUxMTyIKcmVkaXMtY2xpIC1oIHJlZGlzMiBnZXQgSEVMTE8KCg==", "CI_SYSTEM": "pipec", - "CI_SYSTEM_ARCH": "linux/amd64", - "CI_SYSTEM_LINK": "https://github.com/cncd/pipec", + "CI_SYSTEM_PLATFORM": "linux/amd64", + "CI_SYSTEM_URL": "https://github.com/cncd/pipec", "CI_SYSTEM_NAME": "pipec", "CI_WORKSPACE": "/go/src/github.com/drone/envsubst", "DRONE": "true", "CI_ARCH": "linux/amd64", - "CI_BUILD_LINK": "https://github.com/cncd/pipec//0", + "CI_PIPELINE_URL": "https://github.com/cncd/pipec//0", "CI_REPO_SCM": "git", "HOME": "/root", "SHELL": "/bin/sh" diff --git a/pipeline/samples/sample_8_network_mode/pipeline.json b/pipeline/samples/sample_8_network_mode/pipeline.json index c5530e32f..54b749097 100644 --- a/pipeline/samples/sample_8_network_mode/pipeline.json +++ b/pipeline/samples/sample_8_network_mode/pipeline.json @@ -12,12 +12,12 @@ "environment": { "CI": "drone", "CI_SYSTEM": "pipec", - "CI_SYSTEM_ARCH": "linux/amd64", - "CI_SYSTEM_LINK": "https://github.com/cncd/pipec", + "CI_SYSTEM_PLATFORM": "linux/amd64", + "CI_SYSTEM_URL": "https://github.com/cncd/pipec", "CI_SYSTEM_NAME": "pipec", "CI_WORKSPACE": "/go/src/github.com/drone/envsubst", "CI_ARCH": "linux/amd64", - "CI_BUILD_LINK": "https://github.com/cncd/pipec//0", + "CI_PIPELINE_URL": "https://github.com/cncd/pipec//0", "CI_REPO_SCM": "git", "PLUGIN_DEPTH": "50" }, @@ -46,12 +46,12 @@ "CI": "drone", "CI_SCRIPT": "CmlmIFsgLW4gIiRDSV9ORVRSQ19NQUNISU5FIiBdOyB0aGVuCmNhdCA8PEVPRiA+ICRIT01FLy5uZXRyYwptYWNoaW5lICRDSV9ORVRSQ19NQUNISU5FCmxvZ2luICRDSV9ORVRSQ19VU0VSTkFNRQpwYXNzd29yZCAkQ0lfTkVUUkNfUEFTU1dPUkQKRU9GCmNobW9kIDA2MDAgJEhPTUUvLm5ldHJjCmZpCnVuc2V0IENJX05FVFJDX1VTRVJOQU1FCnVuc2V0IENJX05FVFJDX1BBU1NXT1JECnVuc2V0IENJX1NDUklQVAp1bnNldCBEUk9ORV9ORVRSQ19VU0VSTkFNRQp1bnNldCBEUk9ORV9ORVRSQ19QQVNTV09SRAoKZWNobyArICJjdXJsIC1zIC1mIC1MIGh0dHA6Ly9IT1NUX09SX0lQLyIKY3VybCAtcyAtZiAtTCBodHRwOi8vSE9TVF9PUl9JUC8KCg==", "CI_SYSTEM": "pipec", - "CI_SYSTEM_ARCH": "linux/amd64", - "CI_SYSTEM_LINK": "https://github.com/cncd/pipec", + "CI_SYSTEM_PLATFORM": "linux/amd64", + "CI_SYSTEM_URL": "https://github.com/cncd/pipec", "CI_SYSTEM_NAME": "pipec", "CI_WORKSPACE": "/go/src/github.com/drone/envsubst", "CI_ARCH": "linux/amd64", - "CI_BUILD_LINK": "https://github.com/cncd/pipec//0", + "CI_PIPELINE_URL": "https://github.com/cncd/pipec//0", "CI_REPO_SCM": "git", "HOME": "/root", "SHELL": "/bin/sh" diff --git a/pipeline/samples/sample_9_cache/pipeline.json b/pipeline/samples/sample_9_cache/pipeline.json index 1d7501794..dd3319c2c 100644 --- a/pipeline/samples/sample_9_cache/pipeline.json +++ b/pipeline/samples/sample_9_cache/pipeline.json @@ -11,10 +11,10 @@ "working_dir": "/pipeline/src", "environment": { "CI": "drone", - "CI_BUILD_CREATED": "1486119586", - "CI_BUILD_EVENT": "push", - "CI_BUILD_NUMBER": "6", - "CI_BUILD_STARTED": "1486119585", + "CI_PIPELINE_CREATED": "1486119586", + "CI_PIPELINE_EVENT": "push", + "CI_PIPELINE_NUMBER": "6", + "CI_PIPELINE_STARTED": "1486119585", "CI_COMMIT_AUTHOR": "bradrydzewski", "CI_COMMIT_BRANCH": "master", "CI_COMMIT_MESSAGE": "added a few more test cases for escaping behavior", @@ -22,19 +22,19 @@ "CI_COMMIT_SHA": "d0876d3176965f9552a611cbd56e24a9264355e6", "CI_REMOTE_URL": "https://github.com/drone/envsubst.git", "CI_REPO": "drone/envsubst", - "CI_REPO_LINK": "https://github.com/drone/envsubst", + "CI_REPO_URL": "https://github.com/drone/envsubst", "CI_REPO_NAME": "drone/envsubst", "CI_REPO_REMOTE": "https://github.com/drone/envsubst.git", "CI_SYSTEM": "pipec", - "CI_SYSTEM_ARCH": "linux/amd64", - "CI_SYSTEM_LINK": "https://github.com/cncd/pipec", + "CI_SYSTEM_PLATFORM": "linux/amd64", + "CI_SYSTEM_URL": "https://github.com/cncd/pipec", "CI_SYSTEM_NAME": "pipec", "CI_WORKSPACE": "/pipeline/src", "CI_ARCH": "linux/amd64", "CI_BRANCH": "master", - "CI_BUILD_LINK": "https://github.com/cncd/pipec/drone/envsubst/6", + "CI_PIPELINE_URL": "https://github.com/cncd/pipec/drone/envsubst/6", "CI_COMMIT": "d0876d3176965f9552a611cbd56e24a9264355e6", - "CI_JOB_STARTED": "1486119585", + "CI_STEP_STARTED": "1486119585", "CI_REPO_BRANCH": "master", "CI_REPO_OWNER": "drone", "CI_REPO_SCM": "git", @@ -63,10 +63,10 @@ "working_dir": "/pipeline/src", "environment": { "CI": "drone", - "CI_BUILD_CREATED": "1486119586", - "CI_BUILD_EVENT": "push", - "CI_BUILD_NUMBER": "6", - "CI_BUILD_STARTED": "1486119585", + "CI_PIPELINE_CREATED": "1486119586", + "CI_PIPELINE_EVENT": "push", + "CI_PIPELINE_NUMBER": "6", + "CI_PIPELINE_STARTED": "1486119585", "CI_COMMIT_AUTHOR": "bradrydzewski", "CI_COMMIT_BRANCH": "master", "CI_COMMIT_MESSAGE": "added a few more test cases for escaping behavior", @@ -74,19 +74,19 @@ "CI_COMMIT_SHA": "d0876d3176965f9552a611cbd56e24a9264355e6", "CI_REMOTE_URL": "https://github.com/drone/envsubst.git", "CI_REPO": "drone/envsubst", - "CI_REPO_LINK": "https://github.com/drone/envsubst", + "CI_REPO_URL": "https://github.com/drone/envsubst", "CI_REPO_NAME": "drone/envsubst", "CI_REPO_REMOTE": "https://github.com/drone/envsubst.git", "CI_SYSTEM": "pipec", - "CI_SYSTEM_ARCH": "linux/amd64", - "CI_SYSTEM_LINK": "https://github.com/cncd/pipec", + "CI_SYSTEM_PLATFORM": "linux/amd64", + "CI_SYSTEM_URL": "https://github.com/cncd/pipec", "CI_SYSTEM_NAME": "pipec", "CI_WORKSPACE": "/pipeline/src", "CI_ARCH": "linux/amd64", "CI_BRANCH": "master", - "CI_BUILD_LINK": "https://github.com/cncd/pipec/drone/envsubst/6", + "CI_PIPELINE_URL": "https://github.com/cncd/pipec/drone/envsubst/6", "CI_COMMIT": "d0876d3176965f9552a611cbd56e24a9264355e6", - "CI_JOB_STARTED": "1486119585", + "CI_STEP_STARTED": "1486119585", "CI_REPO_BRANCH": "master", "CI_REPO_OWNER": "drone", "CI_REPO_SCM": "git", @@ -122,10 +122,10 @@ "working_dir": "/pipeline/src", "environment": { "CI": "drone", - "CI_BUILD_CREATED": "1486119586", - "CI_BUILD_EVENT": "push", - "CI_BUILD_NUMBER": "6", - "CI_BUILD_STARTED": "1486119585", + "CI_PIPELINE_CREATED": "1486119586", + "CI_PIPELINE_EVENT": "push", + "CI_PIPELINE_NUMBER": "6", + "CI_PIPELINE_STARTED": "1486119585", "CI_COMMIT_AUTHOR": "bradrydzewski", "CI_COMMIT_BRANCH": "master", "CI_COMMIT_MESSAGE": "added a few more test cases for escaping behavior", @@ -133,20 +133,20 @@ "CI_COMMIT_SHA": "d0876d3176965f9552a611cbd56e24a9264355e6", "CI_REMOTE_URL": "https://github.com/drone/envsubst.git", "CI_REPO": "drone/envsubst", - "CI_REPO_LINK": "https://github.com/drone/envsubst", + "CI_REPO_URL": "https://github.com/drone/envsubst", "CI_REPO_NAME": "drone/envsubst", "CI_REPO_REMOTE": "https://github.com/drone/envsubst.git", "CI_SCRIPT": "CmlmIFsgLW4gIiRDSV9ORVRSQ19NQUNISU5FIiBdOyB0aGVuCmNhdCA8PEVPRiA+ICRIT01FLy5uZXRyYwptYWNoaW5lICRDSV9ORVRSQ19NQUNISU5FCmxvZ2luICRDSV9ORVRSQ19VU0VSTkFNRQpwYXNzd29yZCAkQ0lfTkVUUkNfUEFTU1dPUkQKRU9GCmNobW9kIDA2MDAgJEhPTUUvLm5ldHJjCmZpCnVuc2V0IENJX05FVFJDX1VTRVJOQU1FCnVuc2V0IENJX05FVFJDX1BBU1NXT1JECnVuc2V0IENJX1NDUklQVAp1bnNldCBEUk9ORV9ORVRSQ19VU0VSTkFNRQp1bnNldCBEUk9ORV9ORVRSQ19QQVNTV09SRAoKZWNobyArICJucG0gaW5zdGFsbCIKbnBtIGluc3RhbGwKCmVjaG8gKyAibnBtIHRlc3QiCm5wbSB0ZXN0Cgo=", "CI_SYSTEM": "pipec", - "CI_SYSTEM_ARCH": "linux/amd64", - "CI_SYSTEM_LINK": "https://github.com/cncd/pipec", + "CI_SYSTEM_PLATFORM": "linux/amd64", + "CI_SYSTEM_URL": "https://github.com/cncd/pipec", "CI_SYSTEM_NAME": "pipec", "CI_WORKSPACE": "/pipeline/src", "CI_ARCH": "linux/amd64", "CI_BRANCH": "master", - "CI_BUILD_LINK": "https://github.com/cncd/pipec/drone/envsubst/6", + "CI_PIPELINE_URL": "https://github.com/cncd/pipec/drone/envsubst/6", "CI_COMMIT": "d0876d3176965f9552a611cbd56e24a9264355e6", - "CI_JOB_STARTED": "1486119585", + "CI_STEP_STARTED": "1486119585", "CI_REPO_BRANCH": "master", "CI_REPO_OWNER": "drone", "CI_REPO_SCM": "git", @@ -178,10 +178,10 @@ "working_dir": "/pipeline/src", "environment": { "CI": "drone", - "CI_BUILD_CREATED": "1486119586", - "CI_BUILD_EVENT": "push", - "CI_BUILD_NUMBER": "6", - "CI_BUILD_STARTED": "1486119585", + "CI_PIPELINE_CREATED": "1486119586", + "CI_PIPELINE_EVENT": "push", + "CI_PIPELINE_NUMBER": "6", + "CI_PIPELINE_STARTED": "1486119585", "CI_COMMIT_AUTHOR": "bradrydzewski", "CI_COMMIT_BRANCH": "master", "CI_COMMIT_MESSAGE": "added a few more test cases for escaping behavior", @@ -189,19 +189,19 @@ "CI_COMMIT_SHA": "d0876d3176965f9552a611cbd56e24a9264355e6", "CI_REMOTE_URL": "https://github.com/drone/envsubst.git", "CI_REPO": "drone/envsubst", - "CI_REPO_LINK": "https://github.com/drone/envsubst", + "CI_REPO_URL": "https://github.com/drone/envsubst", "CI_REPO_NAME": "drone/envsubst", "CI_REPO_REMOTE": "https://github.com/drone/envsubst.git", "CI_SYSTEM": "pipec", - "CI_SYSTEM_ARCH": "linux/amd64", - "CI_SYSTEM_LINK": "https://github.com/cncd/pipec", + "CI_SYSTEM_PLATFORM": "linux/amd64", + "CI_SYSTEM_URL": "https://github.com/cncd/pipec", "CI_SYSTEM_NAME": "pipec", "CI_WORKSPACE": "/pipeline/src", "CI_ARCH": "linux/amd64", "CI_BRANCH": "master", - "CI_BUILD_LINK": "https://github.com/cncd/pipec/drone/envsubst/6", + "CI_PIPELINE_URL": "https://github.com/cncd/pipec/drone/envsubst/6", "CI_COMMIT": "d0876d3176965f9552a611cbd56e24a9264355e6", - "CI_JOB_STARTED": "1486119585", + "CI_STEP_STARTED": "1486119585", "CI_REPO_BRANCH": "master", "CI_REPO_OWNER": "drone", "CI_REPO_SCM": "git",