Uploaded image for project: 'IT: Release Engineering'
  1. IT: Release Engineering
  2. RELENG-2695

Determine and implement a status check for repo promotion of nexus2 repos

Issue XMLXMLWordPrintable

    • Icon: Story Story
    • Resolution: Done
    • Icon: Normal Normal
    • None
    • None
    • None

      When a nexus2 repo is promoted from staging there are sometimes background activities that nexus does before the repo can be closed out. To the best of our knowledge, there is no way to determine the state of these background tasks. 

      See if it's possible to determine the state, and if not, develop a method to long-poll nexus2 in a reasonable manner.

       

       
      3:09 PM
      aric 
      lftools nexus release --server https://"$NEXUS_URL" "$STAGING_REPO"
       
       
      3:10 PM
      global-jjb/shell/release-job.sh
       
      3:10 PM
      anil has a proposal here https://gerrit.linuxfoundation.org/infra/c/releng/global-jjb/+/62606/1/shell/maven-stage.sh
       
      3:11 PM
      basically maven stage
       
      3:11 PM
      lftools deploy nexus-stage "$NEXUS_URL" "$STAGING_PROFILE_ID" "$WORKSPACE/m2repo"
       
      3:11 PM
      runs that.
       
      3:11 PM
      but it might actually fail.
       
      3:11 PM
      dw 
      ok cool, I’ll paste that into the ticket
       
      3:11 PM
      aric 
      but we have to wait time for it to complete before we can check it with lftools
      ----new messages
       
      3:12 PM
      we have
       
      3:12 PM
      lftools nexus release -v --server "$NEXUS_URL" "$staging_repo"
       
      3:12 PM
      but it only works after X amount of time, where x is unkown
       

              DWTalton DW Talton
              DWTalton DW Talton
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: