From 24339312f96e6b8e080c953e8853991a72219af6 Mon Sep 17 00:00:00 2001 From: Andy Wilkinson Date: Thu, 25 Apr 2024 16:13:27 +0100 Subject: [PATCH] Detect Concourse last to avoid misidentification See gh-77 --- .../ge/conventions/gradle/ContinuousIntegration.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/java/io/spring/ge/conventions/gradle/ContinuousIntegration.java b/src/main/java/io/spring/ge/conventions/gradle/ContinuousIntegration.java index ba5aa12..a5409b5 100644 --- a/src/main/java/io/spring/ge/conventions/gradle/ContinuousIntegration.java +++ b/src/main/java/io/spring/ge/conventions/gradle/ContinuousIntegration.java @@ -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;