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

Error during push - invalid file permissions [v2.1]

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • cloudfoundry-plugin
    • None
    • Ubuntu 16.04.3
      Oracle JDK 1.8.0_144-b01
      Jenkins 2.6.2 (from Ubuntu PPA)

      Hi folks,

      after upgrading my cloudfoundry plugin to 2.x from 1.x I receive the following error whenever I try to push a new app (static build pack) to Bluemix:
      org.cloudfoundry.client.v2.ClientV2Exception: CF-AppResourcesFileModeInvalid(160003): The resource file mode is invalid: File mode '444' is invalid. Minimum file mode is '0600'
      However when I connect to the build server and run the the same push via cf cli, within the jenkins workspace directory, it works. So it really seems to be a problem with the plugin.

      Also, it does not help changing the files permissions after the build (e.g. chmod 755).

      The project configuration in jenkins used to work before.

      Best
      Patrick

       

          [JENKINS-46225] Error during push - invalid file permissions [v2.1]

          Patrick Palacin created issue -
          Patrick Palacin made changes -
          Description Original: Hi folks,

          after upgrading my cloudfoundry plugin to 2.x from 1.x I receive the following error whenever I try to push a new app (static build pack) to Bluemix:
          org.cloudfoundry.client.v2.ClientV2Exception: CF-AppResourcesFileModeInvalid(160003): The resource file mode is invalid: File mode '444' is invalid. Minimum file mode is '0600'
          However when I connect to the build server and run the the same push via cf cli, within the jenkins workspace directory, it works. So it really seems to be a problem with the plugin.

          It also does not help changing the files permissions after the build (e.g. chmod 755).

          The project configuration in jenkins used to work before.

          Best
          Patrick

           
          New: Hi folks,

          after upgrading my cloudfoundry plugin to 2.x from 1.x I receive the following error whenever I try to push a new app (static build pack) to Bluemix:
           org.cloudfoundry.client.v2.ClientV2Exception: CF-AppResourcesFileModeInvalid(160003): The resource file mode is invalid: File mode '444' is invalid. Minimum file mode is '0600'
           However when I connect to the build server and run the the same push via cf cli, within the jenkins workspace directory, it works. So it really seems to be a problem with the plugin.

          Also, it does not help changing the files permissions after the build (e.g. chmod 755).

          The project configuration in jenkins used to work before.

          Best
           Patrick

           

          Olivier Lamy added a comment -

          Olivier Lamy added a comment - sworisbreathing ?

          Steven Swor added a comment -

          ppalacin - Does your Jenkins job use a manifest file, or do you specify the configuration in Jenkins? Also, does your workspace have a .cfignore file?

          Steven Swor added a comment - ppalacin - Does your Jenkins job use a manifest file, or do you specify the configuration in Jenkins? Also, does your workspace have a  .cfignore file?
          Patrick Palacin made changes -
          Attachment New: image-2017-08-17-10-08-43-843.png [ 39314 ]
          Patrick Palacin made changes -
          Attachment Original: image-2017-08-17-10-08-43-843.png [ 39314 ]
          Patrick Palacin made changes -
          Attachment New: jenkins_config.png [ 39315 ]

          Hi sworisbreathing,

          i have a manifest that is used for development deployment. But the production app is pushed with a custom config provided in Jenkins.

          I have tried it with and without a cfignore, doesn't change anything

          Patrick Palacin added a comment - Hi sworisbreathing , i have a manifest that is used for development deployment. But the production app is pushed with a custom config provided in Jenkins. I have tried it with and without a cfignore, doesn't change anything

          Steven Swor added a comment - - edited

          ppalacin hrm... the plugin does have a test for a custom buildpack, which passes. I notice you don't specify an application path in your jenkins config (which means the plugin will attempt to push the entire workspace). Can you double-check the file permissions in the Jenkins workspace for the production push job (including any hidden files such as a .git/ folder)?

          Steven Swor added a comment - - edited ppalacin hrm... the plugin does have a test for a custom buildpack, which passes. I notice you don't specify an application path in your jenkins config (which means the plugin will attempt to push the entire workspace). Can you double-check the file permissions in the Jenkins workspace for the production push job (including any hidden files such as a .git/ folder)?
          Olivier Lamy made changes -
          Assignee Original: Olivier Lamy [ olamy ] New: Steven Swor [ sworisbreathing ]

            sworisbreathing Steven Swor
            ppalacin Patrick Palacin
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: