Guest User

Untitled

a guest
Jun 19th, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. for value in data['actions']:
  2. if 'remoteUrls' in value:
  3. url = value['remoteUrls']
  4. ref = value['lastBuiltRevision']['SHA1']
  5. new_dict['url'] = url
  6. new_dict['ref'] = ref
  7. print new_dict
  8.  
  9. {vcs1: {'url': [u'ssh://abc.com:29418/abc.git'], 'ref': u'194d4c418c71f77355117bd253cf2ac9849b25dd'}, vcs2: {'url': [u'ssh://def:29418/def.git'], 'ref': u'7a198bf01b73330c379cc54aae1631f4448a4b0b'}}
Add Comment
Please, Sign In to add comment