Jesse James Isler
0e86e99ff4
Some checks failed
gitea_dndsources/schedulord-frontend/pipeline/head There was a failure building this commit
48 lines
974 B
Groovy
48 lines
974 B
Groovy
pipeline {
|
|
agent none
|
|
|
|
stages {
|
|
stage('Install') {
|
|
steps {
|
|
sh 'npm install'
|
|
}
|
|
}
|
|
|
|
stage('Test') {
|
|
parallel {
|
|
stage('Static code analysis') {
|
|
steps {
|
|
sh 'npm run-script lint'
|
|
}
|
|
}
|
|
stage('Unit tests') {
|
|
steps {
|
|
sh 'npm run-script test'
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
stage('Build') {
|
|
steps {
|
|
sh 'npm run-script build'
|
|
}
|
|
stash includes: 'dist/', name: 'dist'
|
|
}
|
|
|
|
stage('Build Docker Image') {
|
|
agent any
|
|
// environment {
|
|
// DOCKER_PUSH = credentials('docker_push')
|
|
// }
|
|
steps {
|
|
unstash 'dist'
|
|
// sh 'docker build -t $DOCKER_PUSH_URL/frontend .'
|
|
sh 'docker build .'
|
|
// sh 'docker login -u $DOCKER_PUSH_USR -p $DOCKER_PUSH_PSW $DOCKER_PUSH_URL'
|
|
// sh 'docker push $DOCKER_PUSH_URL/frontend'
|
|
}
|
|
}
|
|
}
|
|
}
|