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



  • 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



  • Hello Anshulika,

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



  • 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.



  • 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.



  • 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.



  • 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.



Inedo Website HomeSupport HomeCode of ConductForums GuideDocumentation