Move build into a shell script instead
This commit is contained in:
parent
5d4e94de25
commit
c0eb8554c9
2 changed files with 11 additions and 10 deletions
19
Jenkinsfile
vendored
19
Jenkinsfile
vendored
|
@ -11,16 +11,18 @@ pipeline {
|
|||
}
|
||||
|
||||
stages {
|
||||
stage('Prepare') {
|
||||
steps {
|
||||
sh 'unset WORKSPACE'
|
||||
sh 'unset PWD'
|
||||
}
|
||||
}
|
||||
|
||||
stage('Build') {
|
||||
steps {
|
||||
sh 'dart doc'
|
||||
sh 'tar -cvf docs.tgz doc/api/*'
|
||||
script {
|
||||
// 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 push --all'
|
||||
}
|
||||
sh 'rm -rf ServerCode'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
name: libac_dart
|
||||
description: "Aria's Creations code library"
|
||||
version: 1.2.070924+2111
|
||||
version: 1.2.070924+2118
|
||||
homepage: "https://zontreck.com"
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue