This repository has been archived on 2023-11-26. You can view files and clone it, but cannot push or open issues or pull requests.
ScriptCraft/Jenkinsfile

49 lines
1.5 KiB
Plaintext
Raw Normal View History

2020-04-25 09:33:17 -04:00
pipeline {
agent {
2020-04-29 15:23:18 -04:00
dockerfile true
2020-04-25 09:33:17 -04:00
}
stages {
stage('Setup') {
steps {
2020-05-31 13:52:29 -04:00
sh 'cd scriptcraft/scripts; ./setup.sh'
2020-04-25 09:33:17 -04:00
}
}
2020-05-31 13:25:16 -04:00
stage('Build Plugin') {
steps {
sh 'cd plugin; ./gradlew clean publish'
}
}
2020-05-31 14:08:33 -04:00
stage('Build ScriptCraft') {
2020-04-25 09:33:17 -04:00
steps {
2020-05-31 13:25:16 -04:00
sh 'cd scriptcraft; ./gradlew clean build typedoc eslint publish'
2020-04-25 09:33:17 -04:00
}
post {
success {
2020-05-31 13:25:16 -04:00
archiveArtifacts artifacts: 'scriptcraft/build/libs/*', fingerprint: true
2020-04-26 19:09:15 -04:00
publishHTML target: [
allowMissing: false,
alwaysLinkToLastBuild: false,
keepAll: false,
2020-05-31 13:25:16 -04:00
reportDir: 'scriptcraft/src/main/ts/build/typedoc',
2020-04-26 19:09:15 -04:00
reportFiles: 'index.html',
reportName: 'TypeDoc'
]
2020-04-25 09:33:17 -04:00
}
}
}
2020-05-25 17:21:56 -04:00
stage('Build Examples') {
steps {
2020-06-01 18:25:39 -04:00
sh 'cd examples/typescript; ./gradlew clean build'
sh 'cd examples/javascript; ./gradlew clean build'
2020-05-25 17:21:56 -04:00
}
post {
success {
archiveArtifacts artifacts: 'examples/typescript/build/libs/*', fingerprint: true
archiveArtifacts artifacts: 'examples/javascript/build/libs/*', fingerprint: true
}
}
}
2020-04-25 09:33:17 -04:00
}
}