mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-10-22 12:26:35 +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,8 +14,6 @@ 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
|
||||
|
||||
CI_VOLUME_CACHE=true
|
||||
CI_VOLUME_CACHE_BASE=/cache/drone
|
||||
|
||||
|
@@ -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,40 +30,21 @@
|
||||
"CI_SYSTEM_LINK": "https://github.com/cncd/pipec",
|
||||
"CI_SYSTEM_NAME": "pipec",
|
||||
"CI_WORKSPACE": "/pipeline/src",
|
||||
"DRONE": "true",
|
||||
"DRONE_ARCH": "linux/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_BRANCH": "master",
|
||||
"DRONE_REPO_LINK": "https://github.com/drone/envsubst",
|
||||
"DRONE_REPO_NAME": "envsubst",
|
||||
"DRONE_REPO_OWNER": "drone",
|
||||
"DRONE_REPO_SCM": "git",
|
||||
"DRONE_WORKSPACE": "/pipeline/src",
|
||||
"CI_ARCH": "linux/amd64",
|
||||
"CI_BRANCH": "master",
|
||||
"CI_BUILD_LINK": "https://github.com/cncd/pipec/drone/envsubst/6",
|
||||
"CI_COMMIT": "d0876d3176965f9552a611cbd56e24a9264355e6",
|
||||
"CI_JOB_STARTED": "1486119585",
|
||||
"CI_REPO_BRANCH": "master",
|
||||
"CI_REPO_OWNER": "drone",
|
||||
"CI_REPO_SCM": "git",
|
||||
"PLUGIN_DEPTH": "0"
|
||||
},
|
||||
"volumes": [
|
||||
"pipeline_default:/pipeline"
|
||||
],
|
||||
"volumes": ["pipeline_default:/pipeline"],
|
||||
"networks": [
|
||||
{
|
||||
"name": "pipeline_default",
|
||||
"aliases": [
|
||||
"clone"
|
||||
]
|
||||
"aliases": ["clone"]
|
||||
}
|
||||
],
|
||||
"on_success": true,
|
||||
@@ -88,7 +68,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,29 +82,14 @@
|
||||
"CI_SYSTEM_LINK": "https://github.com/cncd/pipec",
|
||||
"CI_SYSTEM_NAME": "pipec",
|
||||
"CI_WORKSPACE": "/pipeline/src",
|
||||
"DRONE": "true",
|
||||
"DRONE_ARCH": "linux/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_BRANCH": "master",
|
||||
"DRONE_REPO_LINK": "https://github.com/drone/envsubst",
|
||||
"DRONE_REPO_NAME": "envsubst",
|
||||
"DRONE_REPO_OWNER": "drone",
|
||||
"DRONE_REPO_SCM": "git",
|
||||
"DRONE_WORKSPACE": "/pipeline/src",
|
||||
"CI_ARCH": "linux/amd64",
|
||||
"CI_BRANCH": "master",
|
||||
"CI_BUILD_LINK": "https://github.com/cncd/pipec/drone/envsubst/6",
|
||||
"CI_COMMIT": "d0876d3176965f9552a611cbd56e24a9264355e6",
|
||||
"CI_JOB_STARTED": "1486119585",
|
||||
"CI_REPO_BRANCH": "master",
|
||||
"CI_REPO_OWNER": "drone",
|
||||
"CI_REPO_SCM": "git",
|
||||
"PLUGIN_FALLBACK_TO": "master.tar",
|
||||
"PLUGIN_FILE": "master.tar",
|
||||
"PLUGIN_MOUNT": "node_modules",
|
||||
@@ -139,9 +103,7 @@
|
||||
"networks": [
|
||||
{
|
||||
"name": "pipeline_default",
|
||||
"aliases": [
|
||||
"rebuild_cache"
|
||||
]
|
||||
"aliases": ["rebuild_cache"]
|
||||
}
|
||||
],
|
||||
"on_success": true,
|
||||
@@ -165,7 +127,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",
|
||||
@@ -181,48 +142,24 @@
|
||||
"CI_SYSTEM_LINK": "https://github.com/cncd/pipec",
|
||||
"CI_SYSTEM_NAME": "pipec",
|
||||
"CI_WORKSPACE": "/pipeline/src",
|
||||
"DRONE": "true",
|
||||
"DRONE_ARCH": "linux/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_BRANCH": "master",
|
||||
"DRONE_REPO_LINK": "https://github.com/drone/envsubst",
|
||||
"DRONE_REPO_NAME": "envsubst",
|
||||
"DRONE_REPO_OWNER": "drone",
|
||||
"DRONE_REPO_SCM": "git",
|
||||
"DRONE_WORKSPACE": "/pipeline/src",
|
||||
"CI_ARCH": "linux/amd64",
|
||||
"CI_BRANCH": "master",
|
||||
"CI_BUILD_LINK": "https://github.com/cncd/pipec/drone/envsubst/6",
|
||||
"CI_COMMIT": "d0876d3176965f9552a611cbd56e24a9264355e6",
|
||||
"CI_JOB_STARTED": "1486119585",
|
||||
"CI_REPO_BRANCH": "master",
|
||||
"CI_REPO_OWNER": "drone",
|
||||
"CI_REPO_SCM": "git",
|
||||
"HOME": "/root",
|
||||
"SHELL": "/bin/sh"
|
||||
},
|
||||
"entrypoint": [
|
||||
"/bin/sh",
|
||||
"-c"
|
||||
],
|
||||
"command": [
|
||||
"echo $CI_SCRIPT | base64 -d | /bin/sh -e"
|
||||
],
|
||||
"volumes": [
|
||||
"pipeline_default:/pipeline"
|
||||
],
|
||||
"entrypoint": ["/bin/sh", "-c"],
|
||||
"command": ["echo $CI_SCRIPT | base64 -d | /bin/sh -e"],
|
||||
"volumes": ["pipeline_default:/pipeline"],
|
||||
"networks": [
|
||||
{
|
||||
"name": "pipeline_default",
|
||||
"aliases": [
|
||||
"build"
|
||||
]
|
||||
"aliases": ["build"]
|
||||
}
|
||||
],
|
||||
"on_success": true,
|
||||
@@ -246,7 +183,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",
|
||||
@@ -261,29 +197,14 @@
|
||||
"CI_SYSTEM_LINK": "https://github.com/cncd/pipec",
|
||||
"CI_SYSTEM_NAME": "pipec",
|
||||
"CI_WORKSPACE": "/pipeline/src",
|
||||
"DRONE": "true",
|
||||
"DRONE_ARCH": "linux/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_BRANCH": "master",
|
||||
"DRONE_REPO_LINK": "https://github.com/drone/envsubst",
|
||||
"DRONE_REPO_NAME": "envsubst",
|
||||
"DRONE_REPO_OWNER": "drone",
|
||||
"DRONE_REPO_SCM": "git",
|
||||
"DRONE_WORKSPACE": "/pipeline/src",
|
||||
"CI_ARCH": "linux/amd64",
|
||||
"CI_BRANCH": "master",
|
||||
"CI_BUILD_LINK": "https://github.com/cncd/pipec/drone/envsubst/6",
|
||||
"CI_COMMIT": "d0876d3176965f9552a611cbd56e24a9264355e6",
|
||||
"CI_JOB_STARTED": "1486119585",
|
||||
"CI_REPO_BRANCH": "master",
|
||||
"CI_REPO_OWNER": "drone",
|
||||
"CI_REPO_SCM": "git",
|
||||
"PLUGIN_FILE": "master.tar",
|
||||
"PLUGIN_FLUSH": "true",
|
||||
"PLUGIN_MOUNT": "node_modules",
|
||||
@@ -297,9 +218,7 @@
|
||||
"networks": [
|
||||
{
|
||||
"name": "pipeline_default",
|
||||
"aliases": [
|
||||
"rebuild_cache"
|
||||
]
|
||||
"aliases": ["rebuild_cache"]
|
||||
}
|
||||
],
|
||||
"on_success": true,
|
||||
@@ -321,4 +240,4 @@
|
||||
}
|
||||
],
|
||||
"secrets": null
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user