-
Notifications
You must be signed in to change notification settings - Fork 26
/
Jenkinsfile
46 lines (46 loc) · 1.1 KB
/
Jenkinsfile
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
42
43
44
45
46
pipeline {
agent any
stages {
stage('Initialize') {
steps {
cleanWs()
}
}
stage('SCM Checkout') {
steps {
git 'https://github.com/ranazrad/simple-webapp-nodejs.git'
}
}
stage('Install') {
steps {
nodejs('node8') {
script {
if (isUnix()) {
sh "npm install"
}
else {
bat "npm install"
}
}
}
}
}
stage('Test') {
steps {
nodejs('node8') {
sh "npm run test"
}
}
}
stage('Deploy-Test-Env') {
steps {
nodejs('node8') {
//sh "npm run start"
//sleep(60)
sh "echo hello world!"
}
//sh "cat README.md"
}
}
}
}