1
0
mirror of https://github.com/woodpecker-ci/woodpecker.git synced 2025-11-23 21:44:44 +02:00

Buildin Env Vars, use _URL for all links/urls (#1794)

based on https://framadate.org/jVSQHwIGfJYy82IL

close #1793
This commit is contained in:
6543
2023-05-31 18:03:38 +02:00
committed by GitHub
parent c464f857ae
commit a1943aa49e
17 changed files with 249 additions and 236 deletions

View File

@@ -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")