Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-42890

Could not find FROM instruction in Dockerfile when it starts with a BOM

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Blocker Blocker
    • docker-workflow-plugin
    • None
    • Jenkins 2.49 on Ubuntu 16.04 on Azure VM.
      Docker Commons Plugin - 1.6
      Docker Pipeline - 1.10

      When building using pipeline definition as follows:

                              dir('src/MyProject') {
                                  script {
                                      def img = docker.build "mycompany/myproject:v0.0.${env.BUILD_NUMBER}"
                                      docker.withRegistry('https://mycompany.azurecr.io/''mycompany.azurecr.io') {
                                          img.push()
                                          img.push 'latest'
                                      }
                                  }
                              }
      

      The stage fails despite docker image built correctly.

            Unassigned Unassigned
            mkubasz Mateusz Kubaszek
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: