Updated Jenkinsfile to use latest containerized build agent.
This commit is contained in:
parent
d3a125acba
commit
483327a958
15
Jenkinsfile
vendored
15
Jenkinsfile
vendored
@ -1,33 +1,28 @@
|
|||||||
pipeline {
|
pipeline {
|
||||||
agent any
|
agent any
|
||||||
environment {
|
|
||||||
PATH = "/home/jenkins/.local/share/fnm:${PATH}"
|
|
||||||
}
|
|
||||||
stages {
|
stages {
|
||||||
stage("install") {
|
stage("install") {
|
||||||
steps {
|
steps {
|
||||||
sh 'brew install node@16'
|
sh 'conda env create -f environment.yml'
|
||||||
sh 'npm install'
|
sh 'conda activate webdev && npm install'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage("test") {
|
stage("test") {
|
||||||
steps {
|
steps {
|
||||||
sh '''
|
sh 'conda activate webdev && npm run test:junit'
|
||||||
npm run test:junit
|
|
||||||
'''
|
|
||||||
junit 'junit/*.xml'
|
junit 'junit/*.xml'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage("build") {
|
stage("build") {
|
||||||
steps {
|
steps {
|
||||||
sh 'npm run build:prod'
|
sh 'conda activate webdev && 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 {
|
||||||
sh 'npm run docs'
|
sh 'conda activate webdev && 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: ''])
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
17
environment.yml
Normal file
17
environment.yml
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
name: webdev
|
||||||
|
channels:
|
||||||
|
- conda-forge
|
||||||
|
dependencies:
|
||||||
|
- _libgcc_mutex=0.1=conda_forge
|
||||||
|
- _openmp_mutex=4.5=2_gnu
|
||||||
|
- ca-certificates=2022.9.24=ha878542_0
|
||||||
|
- icu=70.1=h27087fc_0
|
||||||
|
- libgcc-ng=12.2.0=h65d4601_19
|
||||||
|
- libgomp=12.2.0=h65d4601_19
|
||||||
|
- libstdcxx-ng=12.2.0=h46fd767_19
|
||||||
|
- libuv=1.44.2=h166bdaf_0
|
||||||
|
- libzlib=1.2.13=h166bdaf_4
|
||||||
|
- nodejs=18.12.1=h8839609_0
|
||||||
|
- openssl=3.0.7=h166bdaf_0
|
||||||
|
- zlib=1.2.13=h166bdaf_4
|
||||||
|
prefix: /opt/conda/envs/webdev
|
Loading…
Reference in New Issue
Block a user