Commit d8058475 authored by Maxime Lefrançois's avatar Maxime Lefrançois
Browse files

attempt to use CI branch env variable

parent 13b8e7ff
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -118,9 +118,9 @@ public class RepositoryFactory extends SAREFErrorLogger {
			}
			String originalBranch = git.getRepository().getBranch();
			
			if(System.getProperty("CI_COMMIT_BRANCH") != null) {
				originalBranch = System.getProperty("CI_COMMIT_BRANCH");
				System.out.println("CI_COMMIT_BRANCH is set to " + originalBranch);
			if(System.getProperty("CI_COMMIT_REF_NAME") != null) {
				originalBranch = System.getProperty("CI_COMMIT_REF_NAME");
				System.out.println("CI_COMMIT_REF_NAME is set to " + originalBranch);
			}
			final SAREFVersionName originalVersion;
			Pattern pattern = Pattern.compile(REGEX_VERSION_BRANCH);