Removed use of NodeJS Jenkins tool from Jenkinsfile.
This commit is contained in:
parent
c71b170985
commit
13ffc874d3
16
Jenkinsfile
vendored
16
Jenkinsfile
vendored
@ -3,33 +3,25 @@ pipeline {
|
|||||||
stages {
|
stages {
|
||||||
stage("install") {
|
stage("install") {
|
||||||
steps {
|
steps {
|
||||||
nodejs('System NodeJS') {
|
sh "npm install"
|
||||||
sh "npm install"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage("tests") {
|
stage("tests") {
|
||||||
steps {
|
steps {
|
||||||
nodejs('System NodeJS') {
|
sh "npm run test:junit"
|
||||||
sh "npm run test:junit"
|
|
||||||
}
|
|
||||||
junit 'junit/*.xml'
|
junit 'junit/*.xml'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage("build") {
|
stage("build") {
|
||||||
steps {
|
steps {
|
||||||
nodejs('System NodeJS') {
|
sh "npm run build:prod"
|
||||||
sh "npm run build:prod"
|
|
||||||
}
|
|
||||||
fingerprint "dist/**"
|
fingerprint "dist/**"
|
||||||
archiveArtifacts artifacts: 'dist/audioshowkit.js', followSymlinks: false
|
archiveArtifacts artifacts: 'dist/audioshowkit.js', followSymlinks: false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage("generate docs") {
|
stage("generate docs") {
|
||||||
steps {
|
steps {
|
||||||
nodejs('System NodeJS') {
|
sh "npm run docs"
|
||||||
sh "npm run docs"
|
|
||||||
}
|
|
||||||
publishHTML([allowMissing: false, alwaysLinkToLastBuild: true, keepAll: true, reportDir: './docs', reportFiles: 'index.html', reportName: 'AudioShowKit Docs', reportTitles: ''])
|
publishHTML([allowMissing: false, alwaysLinkToLastBuild: true, keepAll: true, reportDir: './docs', reportFiles: 'index.html', reportName: 'AudioShowKit Docs', reportTitles: ''])
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user