Skip to content

Commit

Permalink
Add test support for Unity 2020 (#129)
Browse files Browse the repository at this point in the history
## Description
Open up Test task for Unity 2021.

[Successful UBS build with Unity 2021 for reference](https://jenkins.atlas.wooga.com/blue/organizations/jenkins/wdk_unity%2Fwdk-unity-UnifiedBuildSystem/detail/PR-440/10/pipeline/)

## Changes
* ![IMPROVE] Add test support for Unity 2021
* ![FIX] remove deprecated `primary` agent label
  • Loading branch information
Sebu authored Nov 5, 2021
1 parent 55a479b commit 7dda89d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,5 @@ withCredentials([usernameColonPassword(credentialsId: 'artifactory_publish', var
buildGradlePlugin platforms: ['macos','windows','linux'],
coverallsToken: coveralls_token,
sonarToken: sonar_token,
testEnvironment: testEnvironment,
labels: 'primary'
testEnvironment: testEnvironment
}
2 changes: 1 addition & 1 deletion src/main/groovy/wooga/gradle/unity/tasks/Test.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ abstract class Test extends UnityTask implements UnityTestSpec {
protected void preExecute() {
super.preExecute()
if ((unityVersion.majorVersion == 5 && unityVersion.minorVersion == 6)
|| unityVersion.majorVersion <= 2020) {
|| unityVersion.majorVersion <= 2021) {

// BatchMode for tests was broken for unity 2017 and below
if (unityVersion.majorVersion < 2018) {
Expand Down

0 comments on commit 7dda89d

Please sign in to comment.