Uploaded image for project: 'Jenkins Artifactory Plug-in'
  1. Jenkins Artifactory Plug-in
  2. HAP-1043

Docker push pushes image but build fails with 'Could not find manifest.json in Artifactory in the following path'

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 2.16.0
    • Fix Version/s: 2.16.1
    • Component/s: None
    • Labels:
      None

      Description

      The image is effectively pushed to artifactory, but gets the "Could not find manifest.json in Artifactory in the following path: ..." error.
      It seems like we are searching for the manifest at
      https://artifactory.sigfox.io/docker-snapshots/docker-snapshots/software-factory/oplog-tail/1.0.0-SNAPSHOT/manifest.json
      but it should be
      https://artifactory.sigfox.io/docker-snapshots/software-factory/oplog-tail/1.0.0-SNAPSHOT/manifest.json
      (repo path duplication).
      So the build fails with a NPE and do not upload the build info.

      Script used to reproduce below.

      note the docker-snapshots both in tag and Docker.push

      pipeline {
      agent none
      stages {
      stage('Build & Deploy snapshot'){
      when

      { branch 'master' }

      agent any
      steps {
      script {
      def server = Artifactory.server 'artifactory-sigfox'
      def rtDocker = Artifactory.docker server: server
      version = sh (
      script: 'cat package.json | grep version | head -1 | awk -F: \'

      { print $2 }

      \' | sed \'s/[",]//g\'',
      returnStdout: true
      ).trim()
      tag = "artifactory.sigfox.io/docker-snapshots/software-factory/oplog-tail:$version-SNAPSHOT"
      echo tag
      sh "docker build -t $tag ."
      def buildInfo = rtDocker.push tag, 'docker-snapshots'
      server.publishBuildInfo buildInfo
      }
      }
      }
      }
      }

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                barb Bar Belity
                Reporter:
                orga Or Gat
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: