mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-09-12 20:21:34 +00:00
Make cli exec metadata on pair with build in server generated metadata (#4119)
remove some old environment and add all missing options to set the whole build-in environment on `cli exec` via flags --- *Sponsored by Kithara Software GmbH* Co-authored-by: qwerty287 <80460567+qwerty287@users.noreply.github.com>
This commit is contained in:
@@ -56,7 +56,7 @@ func (m *Metadata) Environ() map[string]string {
|
||||
"CI_REPO_NAME": m.Repo.Name,
|
||||
"CI_REPO_OWNER": m.Repo.Owner,
|
||||
"CI_REPO_REMOTE_ID": m.Repo.RemoteID,
|
||||
"CI_REPO_SCM": "git",
|
||||
"CI_REPO_SCM": m.Repo.SCM,
|
||||
"CI_REPO_URL": m.Repo.ForgeURL,
|
||||
"CI_REPO_CLONE_URL": m.Repo.CloneURL,
|
||||
"CI_REPO_CLONE_SSH_URL": m.Repo.CloneSSHURL,
|
||||
|
@@ -34,6 +34,7 @@ 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