From d1725aec9a1fb2025d56683fcb51f8f99795615d Mon Sep 17 00:00:00 2001 From: Homada Boumedane <homada.boumedane@unige.ch> Date: Thu, 20 Jun 2019 17:04:44 +0200 Subject: [PATCH] chore(dlcm-portal): add jenkins file add jenkins file to use pipeline build --- Jenkinsfile | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 Jenkinsfile diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 000000000..3c8bc4ca5 --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,42 @@ +pipeline{ + agent any + + stages{ + stage ('checkout'){ + steps{ + checkout scm + } + } + + stage ('install modules'){ + steps{ + sh 'npm install --verbose -d' + } + } + + stage ('test'){ + steps{ + /* sh 'ng test --watch=false --no-progress --browsers=ChromeNoSandboxHeadless' */ + } + } + + stage ('code quality'){ + steps{ + / * sh 'ng lint' */ + } + } + + stage ('build') { + steps{ + sh 'ng build --aot=true --prod=true' + } + } + + stage('Deploy') { + steps { + echo 'Deploying....' + } + } + + } +} -- GitLab