Skip to content
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
12 changes: 6 additions & 6 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ pipeline {
stages {
stage('Build') {
agent {
docker {
# docker {
//This image parameter (of the agent section’s docker parameter) downloads the python:2-alpine
//Docker image and runs this image as a separate container. The Python container becomes
//the agent that Jenkins uses to run the Build stage of your Pipeline project.
image 'python:2-alpine'
}
# image 'python:2-alpine'
# }
}
steps {
//This sh step runs the Python command to compile your application and
Expand All @@ -23,12 +23,12 @@ pipeline {
}
stage('Test') {
agent {
docker {
# docker {
//This image parameter downloads the qnib:pytest Docker image and runs this image as a
//separate container. The pytest container becomes the agent that Jenkins uses to run the Test
//stage of your Pipeline project.
image 'qnib/pytest'
}
# image 'qnib/pytest'
# }
}
steps {
//This sh step executes pytest’s py.test command on sources/test_calc.py, which runs a set of
Expand Down