• Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • Jenkins 1.565.3
      Openshift Deployer Plugin 1.2.0

      Deployment fails if .openshift directory being copied contains a file (as opposed to only containing directories). So, in my scenario the .openshift directory contained a README.md file which caused the copying logic to fail.

          [JENKINS-27866] .openshift directory cannot contain files

          Chee Kin Lim added a comment - - edited

          Look like issue reported by you similar to the following issue I faced while using Git Deploy:
          [OPENSHIFT] Copying the deployment from slave node to '/var/lib/openshift/563d715b89f5cfd380000048/app-root/data/jobs/easycrm-github-build/builds/21/workspace/openshift-deployer-workdir/ROOT.war'
          [OPENSHIFT] Cloning 'easycrm' [ssh://561c6eef89f5cf391800009c@easycrm-qprofit.rhcloud.com/~/git/easycrm.git/] to /var/lib/openshift/563d715b89f5cfd380000048/app-root/data/jobs/easycrm-github-build/builds/21/workspace/openshift-deployer-workdir/git
          [OPENSHIFT] Deleting 'src'
          [OPENSHIFT] Deleting 'grails-app'
          [OPENSHIFT] Deleting 'wrapper'
          [OPENSHIFT] Deleting 'web-app'
          [OPENSHIFT] Deleting 'README.md'
          [OPENSHIFT] Deleting '.gitignore'
          [OPENSHIFT] Deleting 'grailsw.bat'
          [OPENSHIFT] Deleting '.travis.yml'
          [OPENSHIFT] Deleting 'grailsw'
          [OPENSHIFT] Deleting 'pom.xml'
          [OPENSHIFT] Deleting 'application.properties'
          [OPENSHIFT] Deployment 'ROOT.war' copied to 'ROOT.war'
          ERROR: [OPENSHIFT] java.lang.IllegalArgumentException: Source '/var/lib/openshift/563d715b89f5cfd380000048/app-root/data/jobs/easycrm-github-build/builds/18/workspace/openshift-deployer-workdir/git/.openshift' is not a directory

          In Jenkins build job configuration, the value configured for .openshift directory location remain default: src/main/resources/openshift

          In Github repo, I am storing all configurations into src/main/resources/openshift directory. In git repo of Openshift, I empty out the .openshift directory (with .gitkeep file to retain the empty directory).

          May I know what is your workaround solution if any?

          Please advise. Thank you

          Chee Kin Lim added a comment - - edited Look like issue reported by you similar to the following issue I faced while using Git Deploy: [OPENSHIFT] Copying the deployment from slave node to '/var/lib/openshift/563d715b89f5cfd380000048/app-root/data/jobs/easycrm-github-build/builds/21/workspace/openshift-deployer-workdir/ROOT.war' [OPENSHIFT] Cloning 'easycrm' [ssh://561c6eef89f5cf391800009c@easycrm-qprofit.rhcloud.com/~/git/easycrm.git/] to /var/lib/openshift/563d715b89f5cfd380000048/app-root/data/jobs/easycrm-github-build/builds/21/workspace/openshift-deployer-workdir/git [OPENSHIFT] Deleting 'src' [OPENSHIFT] Deleting 'grails-app' [OPENSHIFT] Deleting 'wrapper' [OPENSHIFT] Deleting 'web-app' [OPENSHIFT] Deleting 'README.md' [OPENSHIFT] Deleting '.gitignore' [OPENSHIFT] Deleting 'grailsw.bat' [OPENSHIFT] Deleting '.travis.yml' [OPENSHIFT] Deleting 'grailsw' [OPENSHIFT] Deleting 'pom.xml' [OPENSHIFT] Deleting 'application.properties' [OPENSHIFT] Deployment 'ROOT.war' copied to 'ROOT.war' ERROR: [OPENSHIFT] java.lang.IllegalArgumentException: Source '/var/lib/openshift/563d715b89f5cfd380000048/app-root/data/jobs/easycrm-github-build/builds/18/workspace/openshift-deployer-workdir/git/.openshift' is not a directory In Jenkins build job configuration, the value configured for .openshift directory location remain default: src/main/resources/openshift In Github repo, I am storing all configurations into src/main/resources/openshift directory. In git repo of Openshift, I empty out the .openshift directory (with .gitkeep file to retain the empty directory). May I know what is your workaround solution if any? Please advise. Thank you

            siamaksade Siamak Sadeghianfar
            joephill Joe Phillips
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: