-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathJenkinsfile
More file actions
37 lines (37 loc) · 964 Bytes
/
Jenkinsfile
File metadata and controls
37 lines (37 loc) · 964 Bytes
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
pipeline {
agent any
environment {
CI = 'true'
}
stages {
stage('Hello') {
steps {
echo 'Hello World'
}
}
stage('Cloning Git') {
steps {
git 'https://github.com/rajpradeep01/Digital-Course-File-Software-Project-.git'
}
}
stage('Install dependencies') {
steps {
sh 'npm install'
}
}
stage('Jest test'){
steps{
sh 'npm run test'
}
}
stage('Docker image creation') {
steps {
sh '''docker login --username ashwith433 --password docker@123321
docker build . -t ashwith433/digital_course_file --pull=true
docker push ashwith433/digital_course_file
'''
echo "Completed docker image building"
}
}
}
}