Updated Jenkinsfile.
.bashrc is now functional for non-interactive shells.
This commit is contained in:
parent
59dbeec8be
commit
bc5e4b09eb
26
Jenkinsfile
vendored
26
Jenkinsfile
vendored
@ -6,40 +6,28 @@ pipeline {
|
||||
stages {
|
||||
stage("install") {
|
||||
steps {
|
||||
sh '''
|
||||
curl -fsSL https://fnm.vercel.app/install | bash
|
||||
eval "`fnm env`"
|
||||
fnm install
|
||||
fnm use
|
||||
npm install
|
||||
'''
|
||||
sh 'curl -fsSL https://fnm.vercel.app/install | bash'
|
||||
sh 'fnm install'
|
||||
sh 'fnm use'
|
||||
sh 'npm install'
|
||||
}
|
||||
}
|
||||
stage("test") {
|
||||
steps {
|
||||
sh '''
|
||||
eval "`fnm env`"
|
||||
npm run test:junit
|
||||
'''
|
||||
sh 'npm run test:junit'
|
||||
junit 'junit/*.xml'
|
||||
}
|
||||
}
|
||||
stage("build") {
|
||||
steps {
|
||||
sh '''
|
||||
eval "`fnm env`"
|
||||
npm run build:prod
|
||||
'''
|
||||
sh 'npm run build:prod'
|
||||
fingerprint "dist/**"
|
||||
archiveArtifacts artifacts: 'dist/audioshowkit.js', followSymlinks: false
|
||||
}
|
||||
}
|
||||
stage("generate docs") {
|
||||
steps {
|
||||
sh '''
|
||||
eval "`fnm env`"
|
||||
npm run docs
|
||||
'''
|
||||
sh 'npm run docs'
|
||||
publishHTML([allowMissing: false, alwaysLinkToLastBuild: true, keepAll: true, reportDir: './docs', reportFiles: 'index.html', reportName: 'AudioShowKit Docs', reportTitles: ''])
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user