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

44 lines
1.3 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'
}
}
stage('Build') {
steps {
2020-05-26 14:45:26 +00:00
sh './gradlew clean build typedoc eslint publish'
2020-04-25 13:33:17 +00:00
}
post {
success {
archiveArtifacts artifacts: 'build/libs/*', fingerprint: true
2020-04-26 23:09:15 +00:00
publishHTML target: [
allowMissing: false,
alwaysLinkToLastBuild: false,
keepAll: false,
2020-05-24 18:09:25 +00:00
reportDir: '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-26 14:45:26 +00:00
sh 'cd examples/typescript; ./gradlew clean build'
sh 'cd examples/javascript; ./gradlew clean build'
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
}
}