Skip to content
Open
Show file tree
Hide file tree
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
19 changes: 5 additions & 14 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,29 +1,20 @@
pipeline {
agent {
node {
label 'docker-agent-python'
}
}
triggers {
pollSCM '* * * * *'
}
agent any // Allocate an agent for the entire pipeline

stages {
stage('Build') {
steps {
echo "Building.."
sh '''
cd myapp
pip install -r requirements.txt
echo "doing build stuff.."
'''
}
}
stage('Test') {
steps {
echo "Testing.."
sh '''
cd myapp
python3 hello.py
python3 hello.py --name=Brad
echo "doing test stuff.."
'''
}
}
Expand All @@ -36,4 +27,4 @@ pipeline {
}
}
}
}
}
33 changes: 0 additions & 33 deletions Jenkinsfile.template

This file was deleted.

2 changes: 1 addition & 1 deletion helloworld.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@

print("Hello world")
print("my name is kareem")