Merge branch 'jenkins-integration' of Software_Engineering_I/greenvironment-server into master
commit
3a7f579515
@ -0,0 +1,32 @@
|
||||
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
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue