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