Skip to content

Commit

Permalink
Detect Concourse last to avoid misidentification
Browse files Browse the repository at this point in the history
See gh-77
  • Loading branch information
wilkinsona committed Apr 25, 2024
1 parent 66623ed commit 2433931
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,16 @@ enum ContinuousIntegration {

CIRCLE_CI("CircleCI", "CIRCLE_BUILD_URL"),

CONCOURSE("Concourse", "CI", (env) -> null),

JENKINS("Jenkins", "JENKINS_URL", (env) -> env.get("BUILD_URL")),

GITHUB_ACTIONS("GitHub Actions", "GITHUB_ACTIONS", (env) -> {
String server = env.get("GITHUB_SERVER_URL");
String repository = env.get("GITHUB_REPOSITORY");
String runId = env.get("GITHUB_RUN_ID");
return server + "/" + repository + "/actions/runs/" + runId;
});
}),

JENKINS("Jenkins", "JENKINS_URL", (env) -> env.get("BUILD_URL")),

CONCOURSE("Concourse", "CI", (env) -> null);

private final String name;

Expand Down

0 comments on commit 2433931

Please sign in to comment.