Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add one line for build #43

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
pipeline {
agent {
node {
label 'docker-agent-python'
label 'docker-agent-alpine-python-node'
}
}
triggers {
Expand All @@ -13,7 +13,9 @@ pipeline {
echo "Building.."
sh '''
cd myapp
pip install -r requirements.txt
python3 -m venv ~/.venv
source ~/.venv/bin/activate
pip3 install -r requirements.txt
'''
}
}
Expand All @@ -22,6 +24,7 @@ pipeline {
echo "Testing.."
sh '''
cd myapp
source ~/.venv/bin/activate
python3 hello.py
python3 hello.py --name=Brad
'''
Expand Down