Skip to content

Commit

Permalink
dbg
Browse files Browse the repository at this point in the history
  • Loading branch information
YoannGh committed Nov 28, 2024
1 parent 121cc60 commit 89250ca
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion test/new-e2e/tests/cws/fargate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -272,20 +272,26 @@ const (

func getCWSInstrumentationFullImagePath() string {
if fullImagePath := os.Getenv("CWS_INSTRUMENTATION_FULLIMAGEPATH"); fullImagePath != "" {
fmt.Printf(">> Using CWS instrumentation full image path from env: %s\n", fullImagePath)
return fullImagePath
}
fmt.Printf(">> Using default CWS instrumentation full image path: %s\n", cwsInstrumentationDefaultImagePath)
return cwsInstrumentationDefaultImagePath
}

func getAgentFullImagePath(e *configCommon.CommonEnvironment) string {
if fullImagePath := e.AgentFullImagePath(); fullImagePath != "" {
fmt.Printf(">> Using agent full image path from path: %s\n", fullImagePath)
return fullImagePath
}

if e.PipelineID() != "" && e.CommitSHA() != "" {
return fmt.Sprintf("669783387624.dkr.ecr.us-east-1.amazonaws.com/agent:%s-%s", e.PipelineID(), e.CommitSHA())
fullImagePath := fmt.Sprintf("669783387624.dkr.ecr.us-east-1.amazonaws.com/agent:%s-%s", e.PipelineID(), e.CommitSHA())
fmt.Printf(">> Using agent full image path from pipeline: %s\n", fullImagePath)
return fullImagePath
}

fmt.Printf(">> Using default agent full image path: %s\n", agentDefaultImagePath)
return agentDefaultImagePath
}

Expand Down

0 comments on commit 89250ca

Please sign in to comment.