mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-09-12 18:25:57 +00:00
Support Git as only VCS (#4346)
Co-authored-by: Patrick Schratz <patrick.schratz@gmail.com>
This commit is contained in:
@@ -45,7 +45,6 @@ func SetDroneEnviron(env map[string]string) {
|
||||
copyEnv("CI_COMMIT_AUTHOR_AVATAR", "DRONE_COMMIT_AUTHOR_AVATAR", env)
|
||||
// repo
|
||||
copyEnv("CI_REPO", "DRONE_REPO", env)
|
||||
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_URL", "DRONE_REPO_LINK", env)
|
||||
@@ -59,6 +58,7 @@ func SetDroneEnviron(env map[string]string) {
|
||||
copyEnv("CI_STEP_NUMBER", "DRONE_STEP_NUMBER", env)
|
||||
|
||||
env["DRONE_BUILD_STATUS"] = "success"
|
||||
env["DRONE_REPO_SCM"] = "git"
|
||||
|
||||
// some quirks
|
||||
|
||||
|
@@ -59,7 +59,6 @@ CI_REPO_CLONE_URL=https://codeberg.org/Epsilon_02/todo-checker.git
|
||||
CI_REPO_DEFAULT_BRANCH=main
|
||||
CI_REPO_NAME=todo-checker
|
||||
CI_REPO_OWNER=Epsilon_02
|
||||
CI_REPO_SCM=git
|
||||
CI_STEP_NAME=wp_01h1z7v5d1tskaqjexw0ng6w7d_0_step_3
|
||||
CI_STEP_STARTED=1685749339
|
||||
CI_SYSTEM_PLATFORM=linux/amd64
|
||||
@@ -164,7 +163,6 @@ CI_REPO_NAME=woodpecker-test
|
||||
CI_REPO_OWNER=test
|
||||
CI_REPO_PRIVATE=false
|
||||
CI_REPO_REMOTE_ID=4
|
||||
CI_REPO_SCM=git
|
||||
CI_REPO_TRUSTED=false
|
||||
CI_REPO_TRUSTED_NETWORK=false
|
||||
CI_REPO_TRUSTED_VOLUMES=false
|
||||
|
@@ -53,7 +53,6 @@ func (m *Metadata) Environ() map[string]string {
|
||||
setNonEmptyEnvVar(params, "CI_REPO_NAME", repo.Name)
|
||||
setNonEmptyEnvVar(params, "CI_REPO_OWNER", repo.Owner)
|
||||
setNonEmptyEnvVar(params, "CI_REPO_REMOTE_ID", repo.RemoteID)
|
||||
setNonEmptyEnvVar(params, "CI_REPO_SCM", repo.SCM)
|
||||
setNonEmptyEnvVar(params, "CI_REPO_URL", repo.ForgeURL)
|
||||
setNonEmptyEnvVar(params, "CI_REPO_CLONE_URL", repo.CloneURL)
|
||||
setNonEmptyEnvVar(params, "CI_REPO_CLONE_SSH_URL", repo.CloneSSHURL)
|
||||
|
@@ -34,7 +34,6 @@ type (
|
||||
Owner string `json:"owner,omitempty"`
|
||||
RemoteID string `json:"remote_id,omitempty"`
|
||||
ForgeURL string `json:"forge_url,omitempty"`
|
||||
SCM string `json:"scm,omitempty"`
|
||||
CloneURL string `json:"clone_url,omitempty"`
|
||||
CloneSSHURL string `json:"clone_url_ssh,omitempty"`
|
||||
Private bool `json:"private,omitempty"`
|
||||
|
Reference in New Issue
Block a user