...
|
...
|
@@ -71,7 +71,8 @@ def ansible_tower_process(newmaster, failmaster): |
|
|
make_sure_job_success(job_id)
|
|
|
|
|
|
#update git
|
|
|
jenkins_param = {"token": JENKINS_TOKEN, "MODIFY_ENV": INVENTORY_ENV[inventory], "key": ",".join(keys), "value": ",".join(values)}
|
|
|
if keys and values:
|
|
|
jenkins_param = {"token": JENKINS_TOKEN, "MODIFY_ENV": INVENTORY_ENV[inventory], "keys": ",".join(keys), "values": ",".join(values)}
|
|
|
requests.get(JENKINS_UPDATE_VAR_URL, params = jenkins_param)
|
|
|
return 0
|
|
|
|
...
|
...
|
|