Skip to content

Commit

Permalink
Merge pull request #1 from duncanscott/get-full-name
Browse files Browse the repository at this point in the history
Get full name
  • Loading branch information
VishalMewadaPackt authored Oct 26, 2018
2 parents ed6a40f + 0be94db commit 9424449
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 9 deletions.
Empty file added Lesson1/Note
Empty file.
2 changes: 0 additions & 2 deletions Lesson1/Note: No code files required

This file was deleted.

Empty file added Lesson2/Note
Empty file.
2 changes: 0 additions & 2 deletions Lesson2/Note: No code files required

This file was deleted.

Binary file added Lesson5/.test_functions.py.swp
Binary file not shown.
15 changes: 10 additions & 5 deletions Lesson5/Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,16 +1,21 @@
// Allocate Build Node
node('master') {
stage("Fetch Source Code") {
git 'https://github.com/TrainingByPackt/Beginning-Continuous-Delivery-With-Jenkins'
git 'https://github.com/TrainingByPackt/Beginning-Jenkins.git'
}

dir('Lesson5') {
printMessage('Running Pipeline')

stage("Testing") {
sh 'python test_functions.py'
}

stage("Deployment") {
if (env.BRANCH_NAME == 'master') {
printMessage('Deploying the master branch')
} else {
printMessage("No deployment for branch [${env.BRANCH_NAME}]")
}

}
printMessage('Pipeline Complete')
}
}
Expand Down
1 change: 1 addition & 0 deletions Lesson5/test_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

from functions import *


class TestFunctions(unittest.TestCase):
""" Test add_values
"""
Expand Down

0 comments on commit 9424449

Please sign in to comment.