We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6395504 commit 3a7fa1fCopy full SHA for 3a7fa1f
1 file changed
Jenkinsfile
@@ -0,0 +1,34 @@
1
+pipeline {
2
+ agent any
3
+
4
+ stages {
5
6
+ stage('Build') {
7
+ steps {
8
+ script {
9
+ sh 'apt-get update'
10
+ sh 'apt-get upgrade -y'
11
12
+ }
13
14
15
+ stage('Test') {
16
17
18
19
20
21
+ sh 'apt-get install -y python3 python3-venv python3-pip'
22
23
+ sh '''
24
+ python3 -m venv .venv
25
+ . .venv/bin/activate
26
27
+ sleep 15
28
+ python test.py
29
+ '''
30
31
32
33
34
+}
0 commit comments