Change to store the pull robot on the repository build and only add the credentials to the queue item. This prevents the credentials from being exposed to the end user. Also fixes the restart build option
This commit is contained in:
parent
2a72e91bdb
commit
9a79d1562a
13 changed files with 110 additions and 68 deletions
|
@ -26,4 +26,7 @@ def format_robot_username(parent_username, robot_shortname):
|
|||
return '%s+%s' % (parent_username, robot_shortname)
|
||||
|
||||
def parse_robot_username(robot_username):
|
||||
if not '+' in robot_username:
|
||||
return None
|
||||
|
||||
return robot_username.split('+', 2)
|
||||
|
|
Reference in a new issue