forked from JayYu-GTC/MLIP_Lab6
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJenkinsfile
More file actions
37 lines (32 loc) · 1.1 KB
/
Jenkinsfile
File metadata and controls
37 lines (32 loc) · 1.1 KB
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('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
sudo /home/vagrant/miniconda3/bin/conda init
# TODO Complete the command to run pytest
sudo /home/vagrant/miniconda3/bin/conda run -n mlip 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'
}
}
}
}