Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for value in data['actions']:
- if 'remoteUrls' in value:
- url = value['remoteUrls']
- ref = value['lastBuiltRevision']['SHA1']
- new_dict['url'] = url
- new_dict['ref'] = ref
- print new_dict
- {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