Inedo Community Forums Forums
    • Recent
    • Tags
    • Popular
    • Login

    Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.

    If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!

    BuildMaster Set File Attributes Operation

    Scheduled Pinned Locked Moved Support
    4 Posts 2 Posters 9 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • P Offline
      paul_6112
      last edited by

      Hi Support,
      Could someone help with the 'Set File Attributes' Operation please?

      I'm configuring the operation like this :
      03f19350-d52e-4914-825f-eb9ebb00e3e7-image.png

      And the log shows that no file attributes have been specified ?
      d37eabbe-6047-42d7-862c-ca69687c9091-image.png

      The read only flag isn't being set.. so am I missing something, or could you take a look please?

      Thanks,
      Paul

      atrippA 1 Reply Last reply Reply Quote 0
      • atrippA Offline
        atripp inedo-engineer @paul_6112
        last edited by

        Hi @paul-reeves_6112 ,

        This was a strange bug that came from a v7 compiler change and missed test case; if you do ReadOnly=false (the typical usage), it works fine.

        Fortunately it was a very simple fix, and if you download InedoCore 1.12.2-CI.1, it'll be included in that. We will ship 1.12.2 with the next maintenance release as well.

        You can set your extensions feed url (Admin > Advanced Settings) to be https://proget.inedo.com/feeds/PrereleaseExtensions, which will download prerelease versions from the extensions page

        Thanks,
        Alana

        1 Reply Last reply Reply Quote 0
        • P Offline
          paul_6112
          last edited by

          Hi @atripp ,
          Super, thank you.

          b635807d-d49d-4cb1-bdc2-c295b46cbe8f-image.png

          Maybe I'm abusing this function at the moment, but my for use case I've been looking at setting files to be ReadOnly before using a Deploy Artifact Operation which has 'Overwrite read-only files' set as false.

          If the Artifact has a default configuration file; but I'm upgrading a system where this configuration file already exists what is the best approach to keep the current file ?

          Is there a better method you can suggest ?

          Thanks,
          Paul

          atrippA 1 Reply Last reply Reply Quote 0
          • atrippA Offline
            atripp inedo-engineer @paul_6112
            last edited by

            Hi @paul-reeves_6112 ,

            Of course, it should totally work in the usecase you described, I just wanted to explain how it got missed during testing :)

            In general, we recommend not including configuration files that contain environment-specific configuration in artifacts to begin with, or at least using include/exclude filters on the Deploy Artifact operation. Then, deploying using the configuration files feature. But that's just general advice of course.

            However, your use case sounds a little different, in that you want the configuration file deployed, but only the first time? I don't have a great solution to that, but the main downside I see is that engineers who manage/edit the configuration file (add values, etc), may be surprised when it's "not deploying" like they expect it to.

            Config files can be tricky to balance as you probably already know :)

            Cheers,
            Alana

            1 Reply Last reply Reply Quote 0

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            • 1 / 1
            • First post
              Last post
            Inedo Website Home • Support Home • Code of Conduct • Forums Guide • Documentation