Uploaded image for project: 'WildFly WIP'
  1. WildFly WIP
  2. WFWIP-395

Build error for build from image

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • OpenShift
    • None
    • Hide
      mvn clean test -Dtest=com.redhat.xpaas.eap.s2i.ImageSourceBuildTest#buildFromImageSource -P74-openjdk11 -Dxtf.eap.74-openjdk11.image=docker-registry.upshift.redhat.com/kwills/eap74-openjdk11-openshift-rhel8:CLOUD-3930
      

      expected: Test succeeds.
      Observed: Test fails. Image is not built with error

      error: error copying source path /tmp/artifacts/m2/. to .m2: exit status 1
      

      This test succeeds on Beta-4 image.
      registry-proxy.engineering.redhat.com/rh-osbs/jboss-eap-7-tech-preview-eap74-openjdk11-openshift-rhel8:7.4.0.Beta-4
       

      Show
      mvn clean test -Dtest=com.redhat.xpaas.eap.s2i.ImageSourceBuildTest #buildFromImageSource -P74-openjdk11 -Dxtf.eap.74-openjdk11.image=docker-registry.upshift.redhat.com/kwills/eap74-openjdk11-openshift-rhel8:CLOUD-3930 expected: Test succeeds. Observed: Test fails. Image is not built with error error: error copying source path /tmp/artifacts/m2/. to .m2: exit status 1 This test succeeds on Beta-4 image. registry-proxy.engineering.redhat.com/rh-osbs/jboss-eap-7-tech-preview-eap74-openjdk11-openshift-rhel8:7.4.0.Beta-4  
    • Undefined

    Description

      When trying to use the maven repository from an existing build as an "image source" to a new build and verifiy it is possible to configure the extracted maven repo as a local "src" maven repo in an offline maven build.

      While building an image from image source, build fails with error:

      error: error copying source path /tmp/artifacts/m2/. to .m2: exit status 1
      

      Notable settings

      build settings [extract]

      spec:
        serviceAccount: builder
        source:
          type: Binary
          binary: {}
          images:
            - from:
                kind: DockerImage
                name: >-
                  [previously build image]
              paths:
                - sourcePath: /tmp/artifacts/m2/.
                  destinationDir: .m2
        strategy:
          type: Source
          sourceStrategy:
            from:
              kind: DockerImage
              name: >-
                docker-registry.upshift.redhat.com/kwills/eap74-openjdk11-openshift-rhel8:CLOUD-3930
            env:
              - name: MAVEN_ARGS_APPEND
                value: '-o'
              - name: MAVEN_LOCAL_REPO
                value: /tmp/src/.m2
      

      Attachments

        1. log
          8 kB
        2. build-eap-s2i-1.yaml
          3 kB
        3. build-eap-s2i.yaml
          3 kB
        4. build-eap-s2i-src.yaml
          3 kB

        Issue Links

          Activity

            People

              rhn-support-vsalbaba Vojtěch Šalbaba
              rhn-support-vsalbaba Vojtěch Šalbaba
              Vojtěch Šalbaba Vojtěch Šalbaba
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: