mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-10-22 15:26:29 +00:00
Replace DRONE_ with CI_ variables in pipeline steps (#427)
Dropped support for `DRONE_*` environment variables in pipeline steps. Pipeline meta-data can be accessed with `CI_*` variables. - `CI_*` prefix replaces `DRONE_*` - `CI` value is now `woodpecker` - `DRONE=true` has been removed
This commit is contained in:
@@ -14,4 +14,3 @@ CI_COMMIT_REFSPEC=
|
||||
CI_COMMIT_BRANCH=master
|
||||
CI_COMMIT_MESSAGE="added a few more test cases for escaping behavior"
|
||||
CI_COMMIT_AUTHOR=bradrydzewski
|
||||
CI_COMMIT_AUTHOR_NAME=bradrydzewski
|
||||
|
@@ -16,7 +16,6 @@
|
||||
"CI_BUILD_NUMBER": "6",
|
||||
"CI_BUILD_STARTED": "1486119585",
|
||||
"CI_COMMIT_AUTHOR": "bradrydzewski",
|
||||
"CI_COMMIT_AUTHOR_NAME": "bradrydzewski",
|
||||
"CI_COMMIT_BRANCH": "master",
|
||||
"CI_COMMIT_MESSAGE": "added a few more test cases for escaping behavior",
|
||||
"CI_COMMIT_REF": "refs/heads/master",
|
||||
@@ -31,39 +30,20 @@
|
||||
"CI_SYSTEM_LINK": "https://github.com/cncd/pipec",
|
||||
"CI_SYSTEM_NAME": "pipec",
|
||||
"CI_WORKSPACE": "c:\\gopath/src\\github.com\\drone\\envsubst",
|
||||
"DRONE": "true",
|
||||
"DRONE_ARCH": "windows/amd64",
|
||||
"DRONE_BRANCH": "master",
|
||||
"DRONE_BUILD_CREATED": "1486119586",
|
||||
"DRONE_BUILD_EVENT": "push",
|
||||
"DRONE_BUILD_LINK": "https://github.com/cncd/pipec/drone/envsubst/6",
|
||||
"DRONE_BUILD_NUMBER": "6",
|
||||
"DRONE_BUILD_STARTED": "1486119585",
|
||||
"DRONE_COMMIT": "d0876d3176965f9552a611cbd56e24a9264355e6",
|
||||
"DRONE_COMMIT_AUTHOR": "bradrydzewski",
|
||||
"DRONE_COMMIT_BRANCH": "master",
|
||||
"DRONE_COMMIT_MESSAGE": "added a few more test cases for escaping behavior",
|
||||
"DRONE_COMMIT_REF": "refs/heads/master",
|
||||
"DRONE_COMMIT_SHA": "d0876d3176965f9552a611cbd56e24a9264355e6",
|
||||
"DRONE_JOB_STARTED": "1486119585",
|
||||
"DRONE_REMOTE_URL": "https://github.com/drone/envsubst.git",
|
||||
"DRONE_REPO": "drone/envsubst",
|
||||
"DRONE_REPO_LINK": "https://github.com/drone/envsubst",
|
||||
"DRONE_REPO_NAME": "envsubst",
|
||||
"DRONE_REPO_OWNER": "drone",
|
||||
"DRONE_REPO_SCM": "git",
|
||||
"DRONE_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_COMMIT": "d0876d3176965f9552a611cbd56e24a9264355e6",
|
||||
"CI_JOB_STARTED": "1486119585",
|
||||
"CI_REPO_OWNER": "drone",
|
||||
"CI_REPO_SCM": "git",
|
||||
"PLUGIN_DEPTH": "50"
|
||||
},
|
||||
"volumes": [
|
||||
"pipeline_default:c:\\gopath"
|
||||
],
|
||||
"volumes": ["pipeline_default:c:\\gopath"],
|
||||
"networks": [
|
||||
{
|
||||
"name": "pipeline_default",
|
||||
"aliases": [
|
||||
"git"
|
||||
]
|
||||
"aliases": ["git"]
|
||||
}
|
||||
],
|
||||
"on_success": true,
|
||||
@@ -87,7 +67,6 @@
|
||||
"CI_BUILD_NUMBER": "6",
|
||||
"CI_BUILD_STARTED": "1486119585",
|
||||
"CI_COMMIT_AUTHOR": "bradrydzewski",
|
||||
"CI_COMMIT_AUTHOR_NAME": "bradrydzewski",
|
||||
"CI_COMMIT_BRANCH": "master",
|
||||
"CI_COMMIT_MESSAGE": "added a few more test cases for escaping behavior",
|
||||
"CI_COMMIT_REF": "refs/heads/master",
|
||||
@@ -103,28 +82,13 @@
|
||||
"CI_SYSTEM_LINK": "https://github.com/cncd/pipec",
|
||||
"CI_SYSTEM_NAME": "pipec",
|
||||
"CI_WORKSPACE": "c:\\gopath/src\\github.com\\drone\\envsubst",
|
||||
"DRONE": "true",
|
||||
"DRONE_ARCH": "windows/amd64",
|
||||
"DRONE_BRANCH": "master",
|
||||
"DRONE_BUILD_CREATED": "1486119586",
|
||||
"DRONE_BUILD_EVENT": "push",
|
||||
"DRONE_BUILD_LINK": "https://github.com/cncd/pipec/drone/envsubst/6",
|
||||
"DRONE_BUILD_NUMBER": "6",
|
||||
"DRONE_BUILD_STARTED": "1486119585",
|
||||
"DRONE_COMMIT": "d0876d3176965f9552a611cbd56e24a9264355e6",
|
||||
"DRONE_COMMIT_AUTHOR": "bradrydzewski",
|
||||
"DRONE_COMMIT_BRANCH": "master",
|
||||
"DRONE_COMMIT_MESSAGE": "added a few more test cases for escaping behavior",
|
||||
"DRONE_COMMIT_REF": "refs/heads/master",
|
||||
"DRONE_COMMIT_SHA": "d0876d3176965f9552a611cbd56e24a9264355e6",
|
||||
"DRONE_JOB_STARTED": "1486119585",
|
||||
"DRONE_REMOTE_URL": "https://github.com/drone/envsubst.git",
|
||||
"DRONE_REPO": "drone/envsubst",
|
||||
"DRONE_REPO_LINK": "https://github.com/drone/envsubst",
|
||||
"DRONE_REPO_NAME": "envsubst",
|
||||
"DRONE_REPO_OWNER": "drone",
|
||||
"DRONE_REPO_SCM": "git",
|
||||
"DRONE_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_COMMIT": "d0876d3176965f9552a611cbd56e24a9264355e6",
|
||||
"CI_JOB_STARTED": "1486119585",
|
||||
"CI_REPO_OWNER": "drone",
|
||||
"CI_REPO_SCM": "git",
|
||||
"HOME": "c:\\root",
|
||||
"SHELL": "powershell.exe"
|
||||
},
|
||||
@@ -137,15 +101,11 @@
|
||||
"command": [
|
||||
"[System.Text.Encoding]::UTF8.GetString([System.Convert]::FromBase64String($Env:CI_SCRIPT)) | iex"
|
||||
],
|
||||
"volumes": [
|
||||
"pipeline_default:c:\\gopath"
|
||||
],
|
||||
"volumes": ["pipeline_default:c:\\gopath"],
|
||||
"networks": [
|
||||
{
|
||||
"name": "pipeline_default",
|
||||
"aliases": [
|
||||
"build"
|
||||
]
|
||||
"aliases": ["build"]
|
||||
}
|
||||
],
|
||||
"on_success": true,
|
||||
@@ -167,4 +127,4 @@
|
||||
}
|
||||
],
|
||||
"secrets": null
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user