Skip to content

Commit 112cba5

Browse files
authored
fix: Azure Pipeline Run URI incorrect value (#386)
Signed-off-by: Daniel Liszka <[email protected]>
1 parent 12063d9 commit 112cba5

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

internal/attestation/crafter/runners/azurepipeline.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ func (r *AzurePipeline) String() string {
6565

6666
func (r *AzurePipeline) RunURI() (url string) {
6767
teamFoundationServerURI := os.Getenv("SYSTEM_TEAMFOUNDATIONSERVERURI")
68-
definitionName := os.Getenv("SYSTEM_DEFINITIONNAME")
68+
definitionName := os.Getenv("SYSTEM_TEAMPROJECT")
6969
buildID := os.Getenv("BUILD_BUILDID")
7070
jobID := os.Getenv("SYSTEM_JOBID")
7171

internal/attestation/crafter/runners/azurepipeline_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ func (s *azurePipelineSuite) SetupTest() {
136136
t.Setenv("AGENT_VERSION", "3.220.5")
137137
t.Setenv("SYSTEM_COLLECTIONID", "e2dadf5b-9a6d-0000-0000-89ad0786f16e")
138138
t.Setenv("SYSTEM_TEAMPROJECTID", "e0730109-da00-0000-0000-80abab2033a2")
139+
t.Setenv("SYSTEM_TEAMPROJECT", "chainloop-tests")
139140
t.Setenv("SYSTEM_TEAMFOUNDATIONSERVERURI", "https://dev.azure.com/chainloop-test/")
140141
t.Setenv("SYSTEM_DEFINITIONNAME", "chainloop-tests")
141142
t.Setenv("SYSTEM_STAGEID", "96ac2280-0000-0000-99de-dd2da759617d")

0 commit comments

Comments
 (0)