[ci] move asset gen timeout to steps block (#1163)

This commit is contained in:
sholdee 2022-08-12 11:59:20 -05:00 committed by GitHub
commit 789cf13aae
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

6
Jenkinsfile vendored
View file

@ -9,13 +9,11 @@ pipeline {
stages { stages {
stage('Generate Assets') { stage('Generate Assets') {
options {
timeout(time: 10)
}
agent { agent {
label "SoH-Asset-Builders" label "SoH-Asset-Builders"
} }
steps { steps {
timeout(time: 10) {
checkout([ checkout([
$class: 'GitSCM', $class: 'GitSCM',
branches: scm.branches, branches: scm.branches,
@ -25,12 +23,12 @@ pipeline {
]) ])
sh ''' sh '''
cp ../../ZELOOTD.z64 OTRExporter/baserom_non_mq.z64 cp ../../ZELOOTD.z64 OTRExporter/baserom_non_mq.z64
cmake --no-warn-unused-cli -H. -Bbuild-cmake -GNinja -DCMAKE_BUILD_TYPE:STRING=Release cmake --no-warn-unused-cli -H. -Bbuild-cmake -GNinja -DCMAKE_BUILD_TYPE:STRING=Release
cmake --build build-cmake --target ExtractAssets --config Release cmake --build build-cmake --target ExtractAssets --config Release
''' '''
stash includes: 'soh/assets/**/*', name: 'assets' stash includes: 'soh/assets/**/*', name: 'assets'
} }
}
post { post {
unsuccessful { unsuccessful {
step([$class: 'WsCleanup']) // Clean workspace step([$class: 'WsCleanup']) // Clean workspace