Files
JuiceWorkStation-Dashboard/Jenkinsfile
T

54 lines
886 B
Groovy

pipeline {
agent any
tools {
nodejs 'nodejs'
}
options {
timestamps()
disableConcurrentBuilds()
timeout(time: 30, unit: 'MINUTES')
}
environment {
NODE_ENV = 'production'
CI = 'true'
}
stages {
stage('Checkout') {
steps {
checkout scm
}
}
stage('Install Dependencies') {
steps {
sh 'npm ci --include=dev'
}
}
stage('Lint') {
steps {
sh 'npm run lint'
}
}
stage('Build') {
steps {
sh 'npm run build'
}
}
}
post {
success {
archiveArtifacts artifacts: 'dist/**', fingerprint: true
}
always {
cleanWs()
}
}
}