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!

    Applying label (Subversion) fails with "System.InvalidCastException"

    Scheduled Pinned Locked Moved Support
    subversionbuildmasterlabel
    2 Posts 1 Posters 8 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.
    • ? This user is from outside of this forum
      Guest
      last edited by

      Hi,

      I'm new to BuildMaster and I'm having a problem labeling source in Subversion (see the log bellow).

      The "Get Latest from trunk" action works fine.

      I've the BuildMaster Express 3.5.8 (Build 30),
      Subversion 1.7.9 - both installed locally.

      Thanks for an advice,

      Jan

      ===

      Build 7 for Quercus 0.0.0 (07/04/2013 17:47:28)
      Action Group 1: Get Quercus Source
      Action 1: Apply label "%RELNO%.%BLDNO%" to files in trunk
      Preparing remote servers for execution...
      Preparing MYCOMPUTER for execution...
      Preparation complete.
      Initializing action...
      Source and Target directory same; splitting.
      RemoteAction Initialization Complete:
      Temp Directory: C:\BuildMaster_SVCTMP_A2_S3\TMP
      Source Directory: C:\BuildMaster_SVCTMP_A2_S3\SRC
      Target Directory: C:\BuildMaster_SVCTMP_A2_S3\WRK
      Server: MYCOMPUTER (Id: 1)
      Initialization complete. Executing...
      Applying label '0.0.0.7'.
      Execution complete. Finalizing...
      System.InvalidCastException: Unable to cast object of type 'Inedo.BuildMasterExtensions.Subversion.Subversion15Provider' to type 'Inedo.BuildMaster.Extensibility.Providers.SourceControl.IVersioningProvider'. at Inedo.BuildMaster.Windows.ServiceApplication.SlimPlanActionExecuter.ExecuteRemoteCommand(RemoteActionBase action, RemoteCommandEventArgs e) at Inedo.BuildMaster.Windows.ServiceApplication.SlimPlanActionExecuter.TryExecuteRemoteCommand(RemoteActionBase action, RemoteCommandEventArgs e)
      Target directory unused; joining with source.
      Finalization complete.

      1 Reply Last reply Reply Quote 0
      • ? This user is from outside of this forum
        Guest
        last edited by

        Hi Jan,

        Subversion does not support the "Apply Label" operation, so it complains about this. The UI is supposed to prevent you from using this action, but I think one of the recipes will create this action for you.

        Just replace the Apply Label / Get Labeled action pair with:

        1. Tag /trunk/mypath to /tags/%RELNO%.%BLDNO%
        2. Get Latest from /tags/%RELNO%.%BLDNO%

        Hope that helps,

        Tod

        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