forked from JayYu0116/MLIP_Lab6
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkinsfile
38 lines (34 loc) · 1.14 KB
/
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
38
pipeline {
agent any
stages {
stage('Build') {
steps {
sh ''' #!/bin/bash
echo 'In C or Java, we can compile our program in this step'
echo 'In Python, we can build our package here or skip this step'
'''
}
}
stage('Test') {
steps {
sh '''#!/bin/bash
echo 'Test Step: We run testing tool like pytest here'
# TODO fill out the path to conda here
python3 -m venv mlip_lab
source mlip_lab/bin/activate
pip3 install pytest numpy pandas scikit-learn
# TODO Complete the command to run pytest
pytest
# echo 'pytest not runned'
# exit 1 #comment this line after implementing Jenkinsfile
'''
}
}
stage('Deploy') {
steps {
echo 'In this step, we deploy our porject'
echo 'Depending on the context, we may publish the project artifact or upload pickle files'
}
}
}
}