Docker Community Forums

Share and learn in the Docker community.

Trying to fetch the artifact from jfrog, error occured with jq command on concourse

Hi team,

I request a help here,
I am trying to fetch an artifact(eg: *.yml) from jfrog repositry,
We are using Concourse build pipeline as a platform.
We wrote a simple build pipeline yml file to put and fetch the artifact.

But faced an error in our build console :
jq: error (at :5): Cannot iterate over null (null)
file for version ‘13.0.0-*’ not found

Please suggest if any mistake a part from the yml code:
yml Code part:
resource_types:

  • name: artifactory
    type: docker-image
    source:
    repository: pivotalservices/artifactory-resource

resources:

  • name: configuration-snapshots
    type: artifactory
    check_every: 1m
    source:
    endpoint: https://devstack.vwgroup.com/artifactory/modsp-snapshots
    repository: “/configuration”
    regex: “manifest-(?.*).yml”
    username: ((artifactory_user))
    password: ((artifactory_pwd))
    skip_ssl_verification: true

    • aggregate:

      • put: configuration-snapshots
        params: {file: ./manifest-files/qa_1/manifest-*.yml}
        get_params:
        skip_download: true
        folder: qa_1
    • task: create-manifest-files
      config:
      platform: linux
      image_resource:
      type: docker-image
      source: {repository: busybox}

      inputs:
      - name: ci
      - name: modsp-configuration
      - name: version
      outputs:
      - name: manifest-files
      run:
      path: sh
      args:
      - -c
      - |
      VERSION=(cat ./version/version) cp modsp-configuration/stage/qa_1/manifest.yml ./manifest.yml cp modsp-configuration/stage/qa_1/stage.properties ./stage.properties cp ci/task/propertiesToManifestConversion.sh ./propertiesToManifestConversion.sh mkdir -p newscript mkdir -p manifest-files/qa_1 mkdir -p manifest-files/qa_2 sh propertiesToManifestConversion.sh cp ./newscript/complete_manifest.yml manifest-files/qa_1/manifest-{VERSION}.yml

           cp modsp-configuration/stage/qa_2/manifest.yml ./manifest.yml
           cp modsp-configuration/stage/qa_2/stage.properties ./stage.properties
           rm ./newscript/complete_manifest.yml
           sh propertiesToManifestConversion.sh
           cp ./newscript/complete_manifest.yml manifest-files/qa_2/manifest-${VERSION}.yml
           cp ./newscript/complete_manifest.yml manifest-files/manifest-${VERSION}.yml
           echo created `ls ./manifest-files/qa_1/*` and  `ls ./manifest-files/qa_2/*`
      

      params:
      TERM: dumb

      • put: configuration-snapshots
        params:
        file: ./manifest-files/qa_2/manifest-*.yml
        folder: qa_2
        get_params: {skip_download: false}