|
|
|
|
@ -214,7 +214,6 @@ def CheckoutBootstrapScripts(String branchName) {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
def CheckoutRepo(boolean disableSubmodules = false) {
|
|
|
|
|
dir(ENGINE_REPOSITORY_NAME) {
|
|
|
|
|
palSh('git lfs uninstall', 'Git LFS Uninstall') // Prevent git from pulling lfs objects during checkout
|
|
|
|
|
|
|
|
|
|
if(fileExists('.git')) {
|
|
|
|
|
@ -228,7 +227,6 @@ def CheckoutRepo(boolean disableSubmodules = false) {
|
|
|
|
|
palRm(indexLockFile)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
def random = new Random()
|
|
|
|
|
def retryAttempt = 0
|
|
|
|
|
@ -237,7 +235,6 @@ def CheckoutRepo(boolean disableSubmodules = false) {
|
|
|
|
|
sleep random.nextInt(60 * retryAttempt) // Stagger checkouts to prevent HTTP 429 (Too Many Requests) response from CodeCommit
|
|
|
|
|
}
|
|
|
|
|
retryAttempt = retryAttempt + 1
|
|
|
|
|
dir(ENGINE_REPOSITORY_NAME) {
|
|
|
|
|
checkout scm: [
|
|
|
|
|
$class: 'GitSCM',
|
|
|
|
|
branches: scm.branches,
|
|
|
|
|
@ -248,14 +245,7 @@ def CheckoutRepo(boolean disableSubmodules = false) {
|
|
|
|
|
userRemoteConfigs: scm.userRemoteConfigs
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Add folder where we will store the 3rdParty downloads and packages
|
|
|
|
|
if(!fileExists('3rdParty')) {
|
|
|
|
|
palMkdir('3rdParty')
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
dir(ENGINE_REPOSITORY_NAME) {
|
|
|
|
|
// Run lfs in a separate step. Jenkins is unable to load the credentials for the custom LFS endpoint
|
|
|
|
|
withCredentials([usernamePassword(credentialsId: "${env.GITHUB_USER}", passwordVariable: 'accesstoken', usernameVariable: 'username')]) {
|
|
|
|
|
SetLfsCredentials("git config -f .lfsconfig lfs.url https://${username}:${accesstoken}@${env.LFS_URL}", 'Set credentials')
|
|
|
|
|
@ -268,7 +258,6 @@ def CheckoutRepo(boolean disableSubmodules = false) {
|
|
|
|
|
env.CHANGE_ID = readFile file: 'commitid'
|
|
|
|
|
env.CHANGE_ID = env.CHANGE_ID.trim()
|
|
|
|
|
palRm('commitid')
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
def PreBuildCommonSteps(Map pipelineConfig, String projectName, String pipeline, String branchName, String platform, String buildType, String workspace, boolean mount = true, boolean disableSubmodules = false) {
|
|
|
|
|
@ -309,11 +298,15 @@ def PreBuildCommonSteps(Map pipelineConfig, String projectName, String pipeline,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
dir(workspace) {
|
|
|
|
|
|
|
|
|
|
// Add folder where we will store the 3rdParty downloads and packages
|
|
|
|
|
if(!fileExists('3rdParty')) {
|
|
|
|
|
palMkdir('3rdParty')
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
dir("${workspace}/${ENGINE_REPOSITORY_NAME}") {
|
|
|
|
|
CheckoutRepo(disableSubmodules)
|
|
|
|
|
|
|
|
|
|
// Get python
|
|
|
|
|
dir(ENGINE_REPOSITORY_NAME) {
|
|
|
|
|
if(env.IS_UNIX) {
|
|
|
|
|
sh label: 'Getting python',
|
|
|
|
|
script: 'python/get_python.sh'
|
|
|
|
|
@ -333,7 +326,6 @@ def PreBuildCommonSteps(Map pipelineConfig, String projectName, String pipeline,
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
def Build(Map options, String platform, String type, String workspace) {
|
|
|
|
|
|