forked from contentful/the-example-app.nodejs
-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathJenkinsfile
More file actions
41 lines (40 loc) · 1.06 KB
/
Jenkinsfile
File metadata and controls
41 lines (40 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
pipeline {
agent {
docker {
//image 'node:dubnium-alpine3.11'
image 'node:9'
args '-p 3000:3000'
}
//docker 'node:dubnium-alpine3.11'
}
stages {
stage ('Checkout') {
steps {
git \
branch: 'liorbenami_branch', \
url: 'https://github.com/liorbenami1/the-example-app.nodejs.git'
}
}
stage('Build') {
steps {
sh 'npm install -g contentful-cli'
sh 'npm install'
sh 'npm run start:dev &'
//sh 'mvn clean package'
//junit '**/target/surefire-reports/TEST-*.xml'
//archiveArtifacts artifacts: 'target/*.war', fingerprint: true
}
}
stage('unit-test') {
steps {
sh 'npm run test:unit'
sh 'sleep 5m'
}
}
stage('Deploy-to-DEV') {
steps {
sh 'echo Hello'
}
}
}
}