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



  • 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


  • inedo-engineer

    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!



  • @gdivis
    Thank you


Log in to reply
 

Inedo Website HomeSupport HomeCode of ConductForums GuideDocumentation