-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJenkinsfile
42 lines (42 loc) · 1.02 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
39
40
41
42
pipeline {
agent {
node {
label 'Slave1'
}
}
environment {
PYENV_ROOT="$HOME/.pyenv"
PATH = "$HOME/.poetry/bin:$PYENV_ROOT/bin:$PYENV_ROOT/shims:$PATH"
}
stages {
stage('Check Environment Values') {
steps {
sh 'echo $PATH'
sh 'pyenv versions'
sh 'pyenv local 3.7.0'
sh 'python -V'
sh 'which python'
sh 'poetry debug:info'
}
}
stage('Git Pull'){
steps {
git url: 'https://github.com/yui-project/HelloWorld.git', branch: 'master'
}
}
stage('Test'){
steps {
sh 'ls -la'
sh 'chmod 777 test.sh'
sh './test.sh'
}
}
stage('Compile and Upload'){
steps {
sh 'ls -la'
sh 'chmod 777 build.sh'
sh './build.sh'
}
}
}
}