-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJenkinsfile
28 lines (28 loc) · 898 Bytes
/
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
/* Jenkinsfile (Declarative Pipeline) */
pipeline {
agent {
docker {
image 'python:3.8'
args '--user 0:0 -v /var/run/docker.sock:/var/run/docker.sock '
label 'python-docker'
}
}
stages {
stage('prep') {
steps {
withEnv(["HOME=${env.WORKSPACE}"]) {
sh 'python --version'
sh 'python -m venv .venv'
sh 'ls -al .venv/bin'
sh 'chmod +x .venv/bin/activate'
sh '.venv/bin/activate'
sh 'PWD=`pwd`; export PATH=${PWD}/.local/bin:$PATH'
sh 'pip3 install pyinstaller'
sh 'pip3 install -r requirements.txt'
sh 'pyinstaller --onefile enumhost.py'
sh 'dist/enumhost --all'
}
}
}
}
}