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!

    Addressing Configuration files in Build vs Release

    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.
    • J Offline
      Justinvolved
      last edited by

      Hi,

      I think I am misunderstanding something around build vs release and their relation to the Configuration Files.
      I have an application with some configuration files, and a pipeline When I go through "Create New Build", with the pipeline selected, the deployment to test fails with:
      a213405b-0a51-4e22-89dd-3036221338f5-image.png

      I created a release based on the same build, and this is succesfully deployed including the configuration files: b64ae133-d5b0-4121-bc7c-e0dc7a78a621-image.png

      Both are connected to the same release pipeline, but there must be a difference in the context and the way I can address variables maybe? In OtteScript I use $PipelineStageName to get the correct configuration file...

      Thanks,

      Justin

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

        Hi @Justinvolved ,

        That is definitely a bug in the Operation, as there shouldn't be a NullReference exception like that.

        Just to confirm... in the first example, you created a build without a release? I.e. you just "directly" selected a pipeline? But then, it worked when you created a build in a release?

        Cheers,
        Alana

        1 Reply Last reply Reply Quote 0
        • J Offline
          Justinvolved
          last edited by

          Hi @atripp

          Sorry for the delayed response.
          Yes, so I created a build, and during the creation of the build you are asked to select a pipeline.

          After that the build was successful, but deployment failed. So then I created a release, based on the same build #1, and that does succeed. Where the issue is in the build #1 case the nullreference occurs on the config files.

          My overview now shows the deploy from the build failed, but in the release it succeeded:
          b238f06e-94a4-4f2e-bd1d-c542890a9119-image.png

          I could setup buildmaster to be accesible by you, please let me know if that helps.

          Justin

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

            Thanks for clarifying @Justinvolved

            I was able to reproduce this issue, looks like it was a regression with "releaseless builds". Easy fix... it'll be in the next maintenance release as BM-3808. The release is scheduled for this Friday :)

            Cheers

            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