-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJenkinsfile.testing
46 lines (45 loc) · 1.07 KB
/
Jenkinsfile.testing
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
properties([pipelineTriggers([githubPush()])])
pipeline {
agent {
docker {
image 'python:3-slim'
}
}
stages {
stage('Checkout') {
steps {
step([$class: 'CordellWalkerRecorder'])
git branch: 'main', url: 'https://github.com/GalSh5/newtest.git'
}
}
stage('Build') {
steps {
sh 'virtualenv venv && . venv/bin/activate && pip install -r pytest'
}
}
stage('Test') {
steps {
sh 'pytest'
}
}
stage('Deploy') {
steps {
echo 'Deploying....'
}
}
stage('Testing Parallel') {
parallel {
stage("number 1") {
steps {
echo "blabla"
}
}
stage("number 2") {
steps {
echo "pokpok"
}
}
}
}
}
}