-
Notifications
You must be signed in to change notification settings - Fork 293
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/master' into vandonr/payload
- Loading branch information
Showing
112 changed files
with
3,811 additions
and
949 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
.../agent-ci-visibility/src/main/java/datadog/trace/civisibility/ci/AwsCodePipelineInfo.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
package datadog.trace.civisibility.ci; | ||
|
||
import datadog.trace.api.git.GitInfo; | ||
|
||
class AwsCodePipelineInfo implements CIProviderInfo { | ||
|
||
public static final String AWS_CODEPIPELINE = "CODEBUILD_INITIATOR"; | ||
public static final String AWS_CODEPIPELINE_PROVIDER_NAME = "awscodepipeline"; | ||
public static final String AWS_CODEPIPELINE_EXECUTION_ID = "DD_PIPELINE_EXECUTION_ID"; | ||
public static final String AWS_CODEPIPELINE_ACTION_EXECUTION_ID = "DD_ACTION_EXECUTION_ID"; | ||
public static final String AWS_CODEPIPELINE_ARN = "CODEBUILD_BUILD_ARN"; | ||
|
||
@Override | ||
public GitInfo buildCIGitInfo() { | ||
return GitInfo.NOOP; | ||
} | ||
|
||
@Override | ||
public CIInfo buildCIInfo() { | ||
return CIInfo.builder() | ||
.ciProviderName(AWS_CODEPIPELINE_PROVIDER_NAME) | ||
.ciPipelineId(System.getenv(AWS_CODEPIPELINE_EXECUTION_ID)) | ||
.ciEnvVars( | ||
AWS_CODEPIPELINE_EXECUTION_ID, | ||
AWS_CODEPIPELINE_ACTION_EXECUTION_ID, | ||
AWS_CODEPIPELINE_ARN) | ||
.build(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
...i-visibility/src/test/groovy/datadog/trace/civisibility/ci/AwsCodePipelineInfoTest.groovy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package datadog.trace.civisibility.ci | ||
|
||
import java.nio.file.Path | ||
|
||
class AwsCodePipelineInfoTest extends CITagsProviderTest { | ||
|
||
@Override | ||
String getProviderName() { | ||
return AwsCodePipelineInfo.AWS_CODEPIPELINE_PROVIDER_NAME | ||
} | ||
|
||
@Override | ||
Map<String, String> buildRemoteGitInfoEmpty() { | ||
final Map<String, String> map = new HashMap<>() | ||
map.put(AwsCodePipelineInfo.AWS_CODEPIPELINE, "codepipeline") | ||
return map | ||
} | ||
|
||
@Override | ||
Map<String, String> buildRemoteGitInfoMismatchLocalGit() { | ||
final Map<String, String> map = new HashMap<>() | ||
map.put(AwsCodePipelineInfo.AWS_CODEPIPELINE, "codepipeline") | ||
return map | ||
} | ||
|
||
@Override | ||
Path getWorkspacePath() { | ||
null | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.