Class AppveyorInformation
- java.lang.Object
-
- be.vbgn.gradle.cidetect.impl.appveyor.AppveyorInformation
-
- All Implemented Interfaces:
CiInformation
public class AppveyorInformation extends java.lang.Object implements CiInformation
https://www.appveyor.com/docs/environment-variables/
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetBranch()java.lang.StringgetBuildNumber()java.lang.StringgetPullRequest()java.lang.StringgetPullRequestTargetBranch()java.lang.StringgetTag()booleanisCi()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface be.vbgn.gradle.cidetect.CiInformation
getPlatform, getReference, isPullRequest, isTag
-
-
-
-
Method Detail
-
isCi
public boolean isCi()
- Specified by:
isCiin interfaceCiInformation- Returns:
- If the build is running in a CI environment
-
getBuildNumber
@Nullable public java.lang.String getBuildNumber()
- Specified by:
getBuildNumberin interfaceCiInformation- Returns:
- A unique identifier of the build. Usually a sequential buildnumber, but can be anything depending on the CI environment
-
getBranch
@Nullable public java.lang.String getBranch()
- Specified by:
getBranchin interfaceCiInformation- Returns:
- The current branch for which a build is being executed
-
getPullRequest
@Nullable public java.lang.String getPullRequest()
- Specified by:
getPullRequestin interfaceCiInformation- Returns:
- A unique identifier of the pull request. Usually a sequential number, but can be anything depending on the SCM platform
-
getPullRequestTargetBranch
@Nullable public java.lang.String getPullRequestTargetBranch()
- Specified by:
getPullRequestTargetBranchin interfaceCiInformation- Returns:
- The branch where the pull request will be merged into if it is merged
-
getTag
@Nullable public java.lang.String getTag()
- Specified by:
getTagin interfaceCiInformation- Returns:
- The current tag for which a build is being executed
-
-