Skip to content
Open

Brrr #72

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
33 changes: 12 additions & 21 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,39 +1,30 @@
pipeline {
agent {
node {
label 'docker-agent-python'
}
}
triggers {
pollSCM '* * * * *'
}
agent any // Allocate an agent for the entire pipeline

stages {
stage('Build') {
stage('WakingUp') {
steps {
echo "Building.."
echo "WakingUp.."
sh '''
cd myapp
pip install -r requirements.txt
echo "doing WakingUp stuff.."
'''
}
}
stage('Test') {
stage('Eating') {
steps {
echo "Testing.."
echo "Eating.."
sh '''
cd myapp
python3 hello.py
python3 hello.py --name=Brad
echo "doing Eating stuff.."
'''
}
}
stage('Deliver') {
stage('Working') {
steps {
echo 'Deliver....'
echo 'Working....'
sh '''
echo "doing delivery stuff.."
echo "doing Working stuff.."
'''
}
}
}
}
}
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")