-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathJenkinsfile
More file actions
30 lines (27 loc) · 743 Bytes
/
Jenkinsfile
File metadata and controls
30 lines (27 loc) · 743 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
pipeline {
agent any
stages {
stage('Checkout Code') {
steps {
// Replace 'your-repo-url.git' with your GitHub repository URL
git branch: 'main', url: 'https://github.com/snehavvv/code-with-error.git'
}
}
stage('Install Dependencies') {
steps {
script {
// Install dependencies using pip
sh 'pip install -r requirements.txt'
}
}
}
stage('Run Application') {
steps {
script {
// Run the Flask application
sh 'python app.py'
}
}
}
}
}