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 {
|
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'
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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"
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue