Skip to content

Commit 2433931

Browse files
committed
Detect Concourse last to avoid misidentification
See gh-77
1 parent 66623ed commit 2433931

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/main/java/io/spring/ge/conventions/gradle/ContinuousIntegration.java

+5-5
Original file line numberDiff line numberDiff line change
@@ -30,16 +30,16 @@ enum ContinuousIntegration {
3030

3131
CIRCLE_CI("CircleCI", "CIRCLE_BUILD_URL"),
3232

33-
CONCOURSE("Concourse", "CI", (env) -> null),
34-
35-
JENKINS("Jenkins", "JENKINS_URL", (env) -> env.get("BUILD_URL")),
36-
3733
GITHUB_ACTIONS("GitHub Actions", "GITHUB_ACTIONS", (env) -> {
3834
String server = env.get("GITHUB_SERVER_URL");
3935
String repository = env.get("GITHUB_REPOSITORY");
4036
String runId = env.get("GITHUB_RUN_ID");
4137
return server + "/" + repository + "/actions/runs/" + runId;
42-
});
38+
}),
39+
40+
JENKINS("Jenkins", "JENKINS_URL", (env) -> env.get("BUILD_URL")),
41+
42+
CONCOURSE("Concourse", "CI", (env) -> null);
4343

4444
private final String name;
4545

0 commit comments

Comments
 (0)