Skip to content

Commit

Permalink
removes paket from v3
Browse files Browse the repository at this point in the history
  • Loading branch information
Joaquimmnetto committed Sep 18, 2023
1 parent 9110899 commit b17cc12
Showing 1 changed file with 2 additions and 15 deletions.
17 changes: 2 additions & 15 deletions vars/buildUnityWdkV3.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,11 @@ def call(Map configMap = [unityVersions: []]) {
configMap.refreshDependencies = configMap.get("refreshDependencies", params.REFRESH_DEPENDENCIES as Boolean)
configMap.clearWs = configMap.get("clearWs", params.CLEAR_WS as boolean)
configMap.testWrapper = { Step testOperation, Platform plat ->
if(env."UNITY_PACKAGE_MANAGER" == "upm") {
withCredentials([file(credentialsId: 'atlas-upm-credentials', variable: "UPM_USER_CONFIG_FILE")]) {
testOperation(plat)
}
} else {
testOperation(plat)
}

}

def config = WDKConfig.fromConfigMap(configMap, this)
def packageManagerEnvVar = "UNITY_PACKAGE_MANAGER"

// We can only configure static pipelines atm.
// To test multiple unity versions we use a script block with a parallel stages inside.
Expand All @@ -43,6 +36,7 @@ def call(Map configMap = [unityVersions: []]) {
}

environment {
UNITY_PACKAGE_MANAGER = 'upm'
UVM_AUTO_SWITCH_UNITY_EDITOR = "YES"
UVM_AUTO_INSTALL_UNITY_EDITOR = "YES"
LOG_LEVEL = "${config.gradleArgs.logLevel}"
Expand All @@ -68,7 +62,6 @@ def call(Map configMap = [unityVersions: []]) {
}
environment {
UPM_USER_CONFIG_FILE = credentials('atlas-upm-credentials')
UNITY_PACKAGE_MANAGER = 'upm'
}
steps {
script {
Expand Down Expand Up @@ -107,7 +100,6 @@ def call(Map configMap = [unityVersions: []]) {
label "atlas && macos"
}
environment {
UNITY_PACKAGE_MANAGER = 'upm'
UPM_USER_CONFIG_FILE = credentials('atlas-upm-credentials')
JAVA_HOME = "${JAVA_11_HOME}"
}
Expand Down Expand Up @@ -145,12 +137,7 @@ def call(Map configMap = [unityVersions: []]) {
}
}
steps {
script {
withEnv(["UNITY_PACKAGE_MANAGER=upm"]) {
parallel checkSteps(config, "upm check unity", "upm_setup_w")
}
failFast : true
}
parallel checkSteps(config, "upm check unity", "upm_setup_w")
}
}
}
Expand Down

0 comments on commit b17cc12

Please sign in to comment.