You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
1.1 KiB
Groovy
40 lines
1.1 KiB
Groovy
pipeline {
|
|
agent any
|
|
|
|
stages {
|
|
stage('Dependencies') {
|
|
steps {
|
|
echo 'Installing Dependencies...'
|
|
nodejs(nodeJSInstallationName: 'Node 12.x') {
|
|
sh 'yarn install'
|
|
}
|
|
}
|
|
}
|
|
stage('Stylecheck') {
|
|
steps {
|
|
echo 'Checking Style...'
|
|
nodejs(nodeJSInstallationName: 'Node 12.x') {
|
|
sh 'tslint "src/**/*.ts"'
|
|
}
|
|
}
|
|
}
|
|
stage('Build') {
|
|
steps {
|
|
echo 'Building...'
|
|
nodejs(nodeJSInstallationName: 'Node 12.x') {
|
|
sh 'gulp'
|
|
}
|
|
sh '/bin/tar -zcvf greenvironment-server.tar.gz dist'
|
|
archiveArtifacts artifacts: 'greenvironment-server.tar.gz', fingerprint: true
|
|
}
|
|
}
|
|
stage('Test') {
|
|
steps {
|
|
echo 'Testing...'
|
|
nodejs(nodeJSInstallationName: 'Node 12.x') {
|
|
sh 'yarn test'
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} |