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!

    [BM] Scheduled Jobs no longer working for me

    Scheduled Pinned Locked Moved Support
    3 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
      philippe.camelio_3885
      last edited by

      Hello

      I have problems to make scheduled jobs running in v 2023.1.

      Create a small pipeline with 2 stages

      • clone
      • secours

      Assign variables

      • VAR1 = var1 (same value for both stages)
      • VAR2
        • stage clone : var2-clone
        • stage secours : var2-secours

      Pipeline Deployement targets :
      run test otter script

      Log-Information $VAR1 $VAR2;
      

      When I create the scheduled job I have this error message :

      Logged:09/19/2023 12:10:00
      Level:Error
      Category:Automatic Builds
      Message:Unhandled exception: Failed to compare two elements in the array.
      Details:System.InvalidOperationException: Failed to compare two elements in the array.
      ---> System.ArgumentException: Object must be of type String.
      at System.String.CompareTo(Object value)
      at System.Collections.Generic.ArraySortHelper`1.BinarySearch(T[] array, Int32 index, Int32 length, T value, IComparer`1 comparer)
      --- End of inner exception stack trace ---
      at System.Collections.Generic.ArraySortHelper`1.BinarySearch(T[] array, Int32 index, Int32 length, T value, IComparer`1 comparer)
      at System.Collections.Generic.SortedList`2.IndexOfKey(TKey key)
      at Inedo.TaskRunner.RunSubtaskInternalAsync[TTaskId](TTaskId id, Func`2 runAsync, String description, Object logContext, CancellationToken cancellationToken, Boolean background)
      

      This was working in previous version

      BM version : 2023.1 (docker)

      Any advice is welcome

      Best regards
      Philippe

      1 Reply Last reply Reply Quote 0
      • gdivisG Offline
        gdivis inedo-engineer
        last edited by

        Hi @philippe-camelio_3885,

        We've reproduced this, and it is a regression in v2023. We will have it fixed in this Friday's release of BuildMaster v2023.2. It is logged as BM-3893.

        Thanks!

        P 1 Reply Last reply Reply Quote 0
        • P Offline
          philippe.camelio_3885 @gdivis
          last edited by

          @gdivis
          Thank you

          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