Skip to content

Commit 1f742b0

Browse files
author
bradmorg
committed
new app
1 parent da960ee commit 1f742b0

File tree

4 files changed

+10
-11
lines changed

4 files changed

+10
-11
lines changed

Jenkinsfile

+2-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ pipeline {
1818
steps {
1919
echo 'Testing..'
2020
sh '''
21-
curl http://localhost:5000
21+
python hello.py
22+
python hello.py --name=Brad
2223
'''
2324
}
2425
}

myapp/app.py

-9
This file was deleted.

myapp/hello.py

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import fire
2+
3+
def hello(name="World"):
4+
return "Hello %s!" % name
5+
6+
if __name__ == '__main__':
7+
fire.Fire(hello)

myapp/requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Flask
1+
fire==0.4.0

0 commit comments

Comments
 (0)