jenkins test

This commit is contained in:
simon987 2019-02-22 20:44:52 -05:00
parent d44b9924e7
commit 6bc2483968
2 changed files with 26 additions and 0 deletions

22
jenkins/Jenkinsfile vendored Normal file
View File

@ -0,0 +1,22 @@
pipeline {
agent {
docker {
image 'node:10-alpine'
}
}
environment {
CI = 'true'
}
stages {
stage('Build') {
steps {
sh 'cd web/angular && ng build --prod --optimization'
}
}
stage('Deliver') {
steps {
sh './jenkins/deploy.sh'
}
}
}
}

4
jenkins/deploy.sh Normal file
View File

@ -0,0 +1,4 @@
#!/usr/bin/env bash
cp web/angular/dist/ /home/drone/task_tracker/webroot/
echo "test"