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!

Retrieve All Build Artifacts



  • Hi,

    I am working upon Retrieve All Build Artifacts operation. When I run the concerned application, I get the below error:
    "ERROR: 404 Could not find any build artifacts for build 'builds.json' number '1.2.4'."

    builds.json is the build file I have uploaded to the jFrog Artifactory and 1.2.4 is the build number.
    Now, in the Artifact library of jFrog, there is an artifact file named "Artifact4.txt" in which I have added properties as - build: builds.json and number: 1.2.4, but I am still getting the error.

    Please suggest why is it not able to find any artifact against the builds.json.

    Product: BuildMaster
    Version: 5.7.2



  • A build is a separate object in Artifactory. You can create one with the Upload-Build operation.

    Artifactory::Upload-Build
    (
        Credentials: ArtifactoryCredentialsName,
        Name: builds.json,
        Version: 1.2.4,
        Number: 1,
        Modules: @(%(id: some-module-name, artifacts: @(%ArtifactDefinition))
    );
    

    You can get %ArtifactDefinition from Get-Artifact-Metadata or Upload-Artifact.


Log in to reply
 

Inedo Website HomeSupport HomeCode of ConductForums GuideDocumentation