Permalink
Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
45 lines (39 sloc) 667 Bytes
pipeline {
agent {
docker {
image 'node:9'
}
}
options {
timeout(time: 10, unit: 'MINUTES')
ansiColor('xterm')
}
stages {
stage('Install') {
steps {
sh 'npm install'
}
}
stage('Test') {
steps {
sh 'npm run test'
}
}
stage('Build') {
steps {
sh 'npm run build'
}
}
stage('Deploy') {
when {
branch 'master'
}
environment {
SURGE = credentials('halkeye-surge')
}
steps {
sh 'SURGE_LOGIN=$SURGE_USR SURGE_TOKEN=$SURGE_PSW npx surge -p dist -d infinicatr.gavinmogan.com'
}
}
}
}