1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2025-09-16 09:26:22 +02:00

fix(githubPublishRelease): allow repo and owner to be configured globally (#4090)

This commit is contained in:
Christian Volk
2022-11-02 14:41:15 +01:00
committed by GitHub
parent e44aaf86e4
commit 6702e146b1
2 changed files with 4 additions and 2 deletions

View File

@@ -264,7 +264,7 @@ func githubPublishReleaseMetadata() config.StepData {
Param: "github/owner",
},
},
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
Scope: []string{"GENERAL", "PARAMETERS", "STAGES", "STEPS"},
Type: "string",
Mandatory: true,
Aliases: []config.Alias{{Name: "githubOrg"}},
@@ -296,7 +296,7 @@ func githubPublishReleaseMetadata() config.StepData {
Param: "github/repository",
},
},
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
Scope: []string{"GENERAL", "PARAMETERS", "STAGES", "STEPS"},
Type: "string",
Mandatory: true,
Aliases: []config.Alias{{Name: "githubRepo"}},

View File

@@ -94,6 +94,7 @@ spec:
- name: commonPipelineEnvironment
param: github/owner
scope:
- GENERAL
- PARAMETERS
- STAGES
- STEPS
@@ -122,6 +123,7 @@ spec:
- name: commonPipelineEnvironment
param: github/repository
scope:
- GENERAL
- PARAMETERS
- STAGES
- STEPS