-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathJenkinsfile
More file actions
28 lines (25 loc) · 734 Bytes
/
Jenkinsfile
File metadata and controls
28 lines (25 loc) · 734 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
pipeline {
agent any
stages {
stage('checkout') {
steps {
checkout scmGit(branches: [[name: '*/main']], extensions: [], userRemoteConfigs: [[credentialsId: 'SHIVA_GIT_CRED', url: 'https://github.com/Cvaaaa/python.git']])
}
}
stage('Build') {
steps {
git branch: 'main', credentialsId: 'SHIVA_GIT_CRED', url: 'https://github.com/Cvaaaa/python.git'
}
}
stage('Run Python Script') {
steps {
sh 'python3 Bankapp.py'
}
}
stage('Test') {
steps {
echo 'the job has been tested'
}
}
}
}