-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJenkinsfile
More file actions
46 lines (41 loc) · 1.28 KB
/
Jenkinsfile
File metadata and controls
46 lines (41 loc) · 1.28 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
42
43
44
45
46
pipeline {
// agent any means => jenkins, find us what is required? to build with node or what
agent any
environment {
firebaseToken = credentials('firebaseToken');
}
stages {
stage('Source') {
steps {
// Get code from a GitHub repository
git 'https://github.com/VrishtiGupta11/phatakapp.git'
// Run npm install
bat "npm install"
echo 'Source Stage Finished'
}
}
stage('Test') {
steps {
//sh(script: 'node_modules/.bin/cypress run || true')
// sh "npm run cypress:run"
// bat "npm run cy:open"
bat "npm run cy:run"
echo 'Test Stage Finished'
}
}
stage('Build') {
steps {
// Run ng build command
// bat "ng build"
bat "npm run ng -- build"
echo 'Build Stage Finished'
}
}
// stage('Deploy') {
// steps {
// bat "firebase deploy --non-interactive --token ${firebaseToken} --only hosting"
// echo 'Deploy Stage Finished'
// }
// }
}
}