-
Notifications
You must be signed in to change notification settings - Fork 1
/
Jenkinsfile
44 lines (33 loc) · 877 Bytes
/
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
pipeline {
agent any
stages{
stage('Checkout'){
steps {
sh 'rm -rf QuizApp'
echo 'Starting Build'
sh 'git clone https://github.com/Saiphani724/QuizApp.git'
sh 'cd QuizApp'
sh 'npm install -y'
sh 'docker-compose build'
sh 'docker-compose up'
echo 'BUILT THE CONTAINERS!!'
}
}
stage('Test') {
steps {
sh 'npm install -y'
sh 'jasmine'
}
}
stage('deploy'){
steps {
echo "Environment will be: test"
}
}
}
post {
always {
cleanWs()
}
}
}