-
Notifications
You must be signed in to change notification settings - Fork 9
/
Jenkinsfile
42 lines (34 loc) · 1.09 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
// Copyright (c) 2020, Oracle and/or its affiliates.
// Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
pipeline {
options {
disableConcurrentBuilds()
}
agent {
docker {
image "${RUNNER_IMAGE}"
}
}
stages {
stage('Build') {
steps {
sh """
# create virtual environment
sudo pip-3.6 install virtualenv
virtualenv ~/.venvs/chaostk
# enter the python virtual environment
source ~/.venvs/chaostk/bin/activate
# install oci sdk
pip-3.6 install oci
# install dependencies
pip-3.6 install -r requirements.txt -r requirements-dev.txt
chaos --version
# setup dev environment
python3.6 setup.py develop
# run the CI script
bash ./ci.bash
"""
}
}
}
}