Skip to content

Commit a77974f

Browse files
author
TheSnoozer
committed
make checkstyle happy
1 parent 12c2b6d commit a77974f

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

src/main/java/pl/project13/core/cibuild/AzureDevOpsBuildServerData.java

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -46,18 +46,19 @@ void loadBuildNumber(@Nonnull Properties properties) {
4646
maybePut(properties, GitCommitPropertyConstant.BUILD_NUMBER, () -> buildNumber);
4747
}
4848

49+
/**
50+
* Attempts to extract the branch name from the Build.SourceBranch
51+
*
52+
* The branch of the triggering repo the build was queued for. Some examples:
53+
* - Git repo branch: refs/heads/main
54+
* - Git repo pull request: refs/pull/1/merge
55+
* - TFVC repo branch: $/teamproject/main
56+
* - TFVC repo gated check-in: Gated_2016-06-06_05.20.51.4369;username@live.com
57+
* - TFVC repo shelveset build: myshelveset;username@live.com
58+
* - When your pipeline is triggered by a tag: refs/tags/your-tag-name
59+
*/
4960
@Override
5061
public String getBuildBranch() {
51-
/**
52-
* Build.SourceBranch
53-
* The branch of the triggering repo the build was queued for. Some examples:
54-
* - Git repo branch: refs/heads/main
55-
* - Git repo pull request: refs/pull/1/merge
56-
* - TFVC repo branch: $/teamproject/main
57-
* - TFVC repo gated check-in: Gated_2016-06-06_05.20.51.4369;username@live.com
58-
* - TFVC repo shelveset build: myshelveset;username@live.com
59-
* - When your pipeline is triggered by a tag: refs/tags/your-tag-name
60-
*/
6162
String environmentBasedBuildSourceBranch = env.get("BUILD_SOURCEBRANCH");
6263
if (environmentBasedBuildSourceBranch != null && !environmentBasedBuildSourceBranch.isEmpty()) {
6364
if (environmentBasedBuildSourceBranch.startsWith(BRANCH_REF_PREFIX)) {

0 commit comments

Comments
 (0)