Inedo Community Forums Forums
    • Recent
    • Tags
    • Popular
    • Login

    Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.

    If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!

    Promote Build

    Scheduled Pinned Locked Moved Support
    artifactorybuildmaster
    6 Posts 1 Posters 26 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • ? This user is from outside of this forum
      Guest
      last edited by

      Hi,

      I am working upon Artifactory extension Promote Build operation. When I try to run the concerned application, I get the below error:
      "ERROR: 404 Cannot find target repository by the key '<Some target repository name>'."

      I tried with using "" before/after the repository name thinking that it might be asking for the path, but nothing was of any help. Please help me get through this error.

      Product: BuildMaster
      Version: 5.7.2

      1 Reply Last reply Reply Quote 0
      • ? This user is from outside of this forum
        Guest
        last edited by

        Hello Anshulika,

        It appears that Artifactory repository names are case-sensitive. Does the capitalization of the name in BuildMaster match the capitalization in Artifactory?

        1 Reply Last reply Reply Quote 0
        • ? This user is from outside of this forum
          Guest
          last edited by

          Hello Ben,

          Yes, the target repository has same cases in both the Build Master and Artifactory.

          Moreover, if I select another repository as the target repository, it throws below error:

          "ERROR: 400 Unable to find artifacts of build '<Build Name>' #<Build Number>: aborting promotion."

          Plesae advise how to get rid of this.

          1 Reply Last reply Reply Quote 0
          • ? This user is from outside of this forum
            Guest
            last edited by

            I think "ERROR: 404 Cannot find target repository by the key '<Some target repository name>'." refers to the To repository field, and "ERROR: 400 Unable to find artifacts of build '<Build Name>' #<Build Number>: aborting promotion." refers to the From repository field in the Move Artifacts tab in BuildMaster.

            1 Reply Last reply Reply Quote 0
            • ? This user is from outside of this forum
              Guest
              last edited by

              That's correct. But I was looking for a way to overcome the error.

              I am not able to understand what should I correct to execute the plan successfully.

              Below is the plan I am using:

              Artifactory::Promote-Build
              (
              Credentials: <Credential name>,
              BuildName: <Build name>,
              BuildNumber: <Build number>,
              Status: Deployed,
              Properties: %(artifacts: @(type: txt, sha1: <sha1 value>, md5: <md5 value>, name: Artifact7.txt)),
              FromRepository: <From repository name>,
              ToRepository: <To repository name>,
              Copy: true,
              BaseUrl: <Base Url>,
              UserName: <User name>,
              Password: <Password>
              );

              Please help.

              1 Reply Last reply Reply Quote 0
              • ? This user is from outside of this forum
                Guest
                last edited by

                In Properties, @(type: txt, sha1: <sha1 value>, md5: <md5 value>, name: Artifact7.txt) should be @(%(type: txt, sha1: <sha1 value>, md5: <md5 value>, name: Artifact7.txt)).

                If you're more used to JSON, those are equivalent to ["type: txt","sha1: <sha1 value>","md5: <md5 value>","name: Artifact7.txt"] and [{"type":"txt","sha1":"<sha1 value>","md5":"<md5 value>","name":"Artifact7.txt"}], respectively.

                1 Reply Last reply Reply Quote 0

                Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                With your input, this post could be even better 💗

                Register Login
                • 1 / 1
                • First post
                  Last post
                Inedo Website Home • Support Home • Code of Conduct • Forums Guide • Documentation