Advertisement
Guest User

Untitled

a guest
Mar 5th, 2019
225
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.06 KB | None | 0 0
  1. Hello all, we are migrating from TFS to GITLAB and im trying to configure our release management.
  2. Our CI is Jenkins ( because of windows SDK's from external partys ). When a jenkins release is build successfully a .zip is created.
  3. Then im using the API to upload the zip using : /api/v4/projects/'+projectid+'/uploads', headers=headers, files=files)
  4. After that im creating a release using : api/v4/projects/'+projectid+'/repository/tags/'+tagid+'/release', headers=headers, data=jsondata)
  5.  
  6. Because of a large number of experiments, like styling the description, adding JUnit results in the description etc. And creating a lot of TAGS,
  7. I can now share the *.zip with our Test team. ( GITLAB users )
  8.  
  9. I still have a problem, I want to remove releases with the "curl --request DELETE --header "PRIVATE-TOKEN: " ....
  10. This works fine for existing TAGS. But the problem... i created more then 20 TAGS to make our chain work. So i deleted them from GIT.
  11. I see a TAG as a shortcut to a hash in GIT.
  12.  
  13. How can i remove releases when a TAG doesnt exist ?
  14.  
  15. Thank you in advance.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement