-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJenkinsfile
More file actions
32 lines (29 loc) · 988 Bytes
/
Jenkinsfile
File metadata and controls
32 lines (29 loc) · 988 Bytes
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
pipeline {
agent any
environment{
venv_DIR = 'venv'
}
stages {
stage('Cloning Github repo to Jenkins') {
steps {
script {
echo 'Cloning Github repo to Jenkins............'
checkout scmGit(branches: [[name: '*/main']], extensions: [], userRemoteConfigs: [[credentialsId: 'github-token', url: 'https://github.com/simR122/mlops1_hotel.git']])
}
}
}
stage('Setting up our virtual env and installing dependencies') {
steps {
script {
echo 'Setting up our virtual env and installing dependencies.........'
sh '''
python -m venv $venv_DIR
. ${VENV_DIR}/Scripts/activate
pip install --upgrade pip
pip install -e .
'''
}
}
}
}
}