-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathJenkinsfile
37 lines (35 loc) · 924 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
pipeline {
agent any
stages {
stage('Clone Repository') {
steps {
// Checkout the code from the GitHub repository
git 'https://github.com/whoami-anoint/your-repo.git'
}
}
stage('Build') {
steps {
// Your build commands or scripts go here
sh 'echo "Building the project"'
}
}
stage('Test') {
steps {
// Your testing commands or scripts go here
sh 'echo "Testing the project"'
}
}
stage('Deploy') {
steps {
// Your deployment commands or scripts go here
sh 'echo "Deploying the project"'
}
}
}
post {
always {
// Cleanup steps, if any
echo 'Pipeline execution finished'
}
}
}