Initial pipeline setup.
This commit is contained in:
35
Jenkinsfile
vendored
Normal file
35
Jenkinsfile
vendored
Normal file
@@ -0,0 +1,35 @@
|
||||
pipeline{
|
||||
agent any
|
||||
stages{
|
||||
stage("install") {
|
||||
steps {
|
||||
nodejs('NodeJS (17.4.0)') {
|
||||
sh "npm install"
|
||||
}
|
||||
}
|
||||
}
|
||||
stage("build") {
|
||||
steps {
|
||||
nodejs('NodeJS (17.4.0)') {
|
||||
sh "npm run build"
|
||||
}
|
||||
}
|
||||
}
|
||||
stage("test") {
|
||||
steps {
|
||||
nodejs('NodeJS (17.4.0)') {
|
||||
sh "npm run test"
|
||||
}
|
||||
}
|
||||
}
|
||||
stage("publish docs") {
|
||||
steps {
|
||||
nodejs('NodeJS (17.4.0)') {
|
||||
sh "npm run docs"
|
||||
}
|
||||
publishHTML([allowMissing: false, alwaysLinkToLastBuild: false, keepAll: false, reportDir: 'docs', reportFiles: 'index.html', reportName: 'AudioShowKit JSDocs', reportTitles: ''])
|
||||
publishHTML([allowMissing: false, alwaysLinkToLastBuild: false, keepAll: false, reportDir: 'docs', reportFiles: 'index.html', reportName: 'AudioShowKit Demo', reportTitles: ''])
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user