wip
This commit is contained in:
parent
942d7becf8
commit
e17d92448a
1 changed files with 1 additions and 4 deletions
|
@ -5,17 +5,14 @@ from functools import cache
|
|||
from subprocess import check_output
|
||||
import json
|
||||
|
||||
|
||||
app = Flask(__name__)
|
||||
app.secret_key = environ.get("FLASK_SECRET_KEY", default='test')
|
||||
|
||||
|
||||
@app.route('/', methods = ['GET'])
|
||||
def build():
|
||||
strategy = request.args.get('strategy')
|
||||
hook_data = request.get_json()
|
||||
print(hook_data)
|
||||
return check_output([f'/opt/build_server/strategies/{strategy}', json.dumps(hook_data)])
|
||||
return check_output([f'/opt/build-server/strategies/{strategy}', json.dumps(hook_data)])
|
||||
|
||||
|
||||
if __name__ =='__main__':
|
||||
|
|
Loading…
Reference in a new issue