Skip to content

Commit

Permalink
linagora/esn#29 Setup CI
Browse files Browse the repository at this point in the history
fixup! linagora/esn#29 Setup CI

linagora/esn#29 Setup CI
  • Loading branch information
bspham committed Sep 4, 2020
1 parent efdb044 commit 0f4a7b2
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
37 changes: 37 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
pipeline {

agent {
dockerfile {
filename 'Dockerfile'
dir 'test'
}
}

stages {
stage('Install packages') {
steps {
sh 'npm install'
}
}

stage('Run tests') {
steps {
sh 'npm run test'
}
}

stage('Deliver Docker images') {
when { branch 'main' }
steps {
echo "Delivery"
}
}

stage('Deploy new version') {
when { branch 'main' }
steps {
echo "Deploy"
}
}
}
}
3 changes: 3 additions & 0 deletions test/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
FROM node:10-buster

RUN apt-get update

0 comments on commit 0f4a7b2

Please sign in to comment.