Move build into a shell script instead

This commit is contained in:
zontreck 2024-07-09 21:24:07 -07:00
parent 5d4e94de25
commit c0eb8554c9
2 changed files with 11 additions and 10 deletions

19
Jenkinsfile vendored
View file

@ -11,16 +11,18 @@ pipeline {
} }
stages { stages {
stage('Prepare') {
steps {
sh 'unset WORKSPACE'
sh 'unset PWD'
}
}
stage('Build') { stage('Build') {
steps { steps {
sh 'dart doc' script {
sh 'tar -cvf docs.tgz doc/api/*' // Use bash as the shell for these commands
sh '''
#!/bin/bash
unset WORKSPACE
dart doc
tar -cvf docs.tgz doc/api/*
'''
}
} }
} }
@ -34,7 +36,6 @@ pipeline {
sh 'git commit -m "[BOT] Publish LibAC DartDocs"' sh 'git commit -m "[BOT] Publish LibAC DartDocs"'
sh 'git push --all' sh 'git push --all'
} }
sh 'rm -rf ServerCode'
} }
} }
} }

View file

@ -1,6 +1,6 @@
name: libac_dart name: libac_dart
description: "Aria's Creations code library" description: "Aria's Creations code library"
version: 1.2.070924+2111 version: 1.2.070924+2118
homepage: "https://zontreck.com" homepage: "https://zontreck.com"