TheBrokenRail
fb58a0839f
Some checks failed
ScriptCraft/pipeline/head There was a failure building this commit
44 lines
1.3 KiB
Groovy
44 lines
1.3 KiB
Groovy
pipeline {
|
|
agent {
|
|
dockerfile true
|
|
}
|
|
stages {
|
|
stage('Setup') {
|
|
steps {
|
|
sh 'cd scripts; ./setup.sh'
|
|
}
|
|
}
|
|
stage('Build') {
|
|
steps {
|
|
sh './gradlew clean build typedoc eslint publish'
|
|
}
|
|
post {
|
|
success {
|
|
archiveArtifacts artifacts: 'build/libs/*', fingerprint: true
|
|
|
|
publishHTML target: [
|
|
allowMissing: false,
|
|
alwaysLinkToLastBuild: false,
|
|
keepAll: false,
|
|
reportDir: 'src/main/ts/build/typedoc',
|
|
reportFiles: 'index.html',
|
|
reportName: 'TypeDoc'
|
|
]
|
|
}
|
|
}
|
|
}
|
|
stage('Build Examples') {
|
|
steps {
|
|
sh 'cd examples/typescript; ./gradlew clean build'
|
|
sh 'cd examples/javascript; ./gradlew clean build'
|
|
}
|
|
post {
|
|
success {
|
|
archiveArtifacts artifacts: 'examples/typescript/build/libs/*', fingerprint: true
|
|
archiveArtifacts artifacts: 'examples/javascript/build/libs/*', fingerprint: true
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|