This repository was archived by the owner on Apr 20, 2025. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathJenkinsfile
More file actions
51 lines (48 loc) · 1.09 KB
/
Jenkinsfile
File metadata and controls
51 lines (48 loc) · 1.09 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
47
48
49
50
51
pipeline {
agent any
tools {
// gradle 'gradle'
'org.jenkinsci.plugins.docker.commons.tools.DockerTool' 'docker-latest'
}
stages {
stage('Git-Checkout') {
steps {
git branch: 'main', url: 'https://github.com/dipankardas011/PDF-Editor.git'
}
}
stage('Build') {
steps{
sh '''
cd src/backend/merger
docker build --target test -t hello-backendM .
cd ../rotator
docker build --target test -t hello-backendR .
cd ../../frontend/
docker build --target test -t hello-frontend .
'''
}
}
stage('Test') {
steps {
sh '''
echo "Backend testing"
docker run --rm hello-backendM
echo "Rotator testing"
docker run --rm hello-backendR
echo "Frontend testing"
docker run --rm hello-frontend
'''
}
}
}
post {
always {
sh '''
docker rmi -f hello-backendM
docker rmi -f hello-backendR
docker rmi -f hello-frontend
echo "Done cLEAniNg"
'''
}
}
}