Skip to content

Commit

Permalink
Use separated workspace for UT
Browse files Browse the repository at this point in the history
  • Loading branch information
zhanga5 committed Jul 20, 2021
1 parent 4ed7c3f commit 141dfa9
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion jenkins/Jenkinsfile-blossom.premerge
Original file line number Diff line number Diff line change
Expand Up @@ -201,12 +201,26 @@ pipeline {
cloud 'sc-ipp-blossom-prod'
yaml pod.getGPUYAML("${IMAGE_PREMERGE}", "${env.GPU_RESOURCE}", '8', '32Gi') // cpu: 8, memory: 32Gi
workspaceVolume persistentVolumeClaimWorkspaceVolume(claimName: "${PVC}", readOnly: false)
customWorkspace "${CUSTOM_WORKSPACE}"
customWorkspace "${CUSTOM_WORKSPACE}-ut"
}
}

steps {
script {
checkout(
changelog: false,
poll: true,
scm: [
$class: 'GitSCM', branches: [[name: githubHelper.getMergedSHA()]],
doGenerateSubmoduleConfigurations: false,
submoduleCfg: [],
userRemoteConfigs: [[
credentialsId: 'github-token',
url: githubHelper.getCloneUrl(),
refspec: '+refs/pull/*/merge:refs/remotes/origin/pr/*']]
]
)

container('gpu') {
// TODO: improve resource management
timeout(time: 2, unit: 'HOURS') { // step only timeout for test run
Expand Down

0 comments on commit 141dfa9

Please sign in to comment.