-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJenkinsfile
More file actions
33 lines (28 loc) · 870 Bytes
/
Copy pathJenkinsfile
File metadata and controls
33 lines (28 loc) · 870 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
pipeline {
agent any
triggers {
pollSCM('H/2 * * * *') // Polls the SCM every 2 minutes
}
stages {
stage('Clone Repository') {
steps {
// Replace with your actual GitHub repository URL
git branch: 'main', url: 'https://github.com/Kzizah/Beauty_parlour_Management_System.git'
}
}
stage('Run Docker Version and Docker Compose Version') {
steps {
// Check Docker version
sh 'docker --version'
// Check Docker Compose version
sh 'docker-compose --version'
}
}
stage('Run Docker Compose to Start the Project') {
steps {
// Build and start the project
sh 'docker-compose up -d --build'
}
}
}
}