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!

    SVN Repository Monitor won't trigger

    Scheduled Pinned Locked Moved Support
    buildmasterscript-repository
    4 Posts 3 Posters 21 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.
    • D Offline
      dwynn_6489
      last edited by

      I have created an SVN repository monitor, but I can't tell that it is doing anything. I want this monitor to trigger a build/deployment for a release in the application to which I associated the monitor, so when I created the monitor I entered the name of the desired plan and selected the application. Where would I see the results of the execution?

      I see this in the Service Log, so it appears monitor is triggering.

      Running Repository Monitor...
      Fetching repository monitors and last recorded states...
      Found 1 active repository monitors.
      Repository Monitor completed.

      When viewing the Monitor on screen, in the "States" column it says "no branches recorded".

      I'm using a Resource Credential. Is it possible it isn't configured correctly, and is there a way to tell?

      This is what I see in the RepositoryMonitors table

      RepositoryMonitor_Id = 1
      RepositoryMonitor_Name = sq_test
      Application_Id = 1175
      ApplicationGroup_Id = NULL
      RepositoryMonitor_Configuration (shown below)
      CronExpression_Text = 0 0/1 * * * ?
      Active_Indicator = Y
      ExecuteOn_Server_Id = NULL
      Plan_Name = sq_dummy2
      BranchFilter_Text = integration

      <Inedo.Extensions.Subversion.RepositoryMonitors.SvnRepositoryMonitor Assembly="Subversion">
      <Properties CredentialName="sq_test" />
      </Inedo.Extensions.Subversion.RepositoryMonitors.SvnRepositoryMonitor>

      Thanks.

      Product: BuildMaster
      Version: 6.1.5

      1 Reply Last reply Reply Quote 0
      • jjonesJ Offline
        jjones inedo-engineer
        last edited by

        Hi David,

        From looking at the code that error/message is occurring because it is not finding any pertinent repository monitor records in the [RepositoryMonitorStates] It is looking for any records with branches named default or master... This is leading me to believe that there is a configuration issue that doesn't generate an exception when monitoring or no changes were found. Additional logging might be something worth looking into. Without any additional information it would be hard to determine on our end.

        Thanks,
        Jason

        1 Reply Last reply Reply Quote 0
        • D Offline
          dwynn_6489
          last edited by

          What other information can I provide? Right now the feature is not functional.

          Side note - the "Plan" option when configuring a monitor only shows global plans, no application scoped plans.

          Thanks.

          1 Reply Last reply Reply Quote 0
          • jraschJ Offline
            jrasch inedo-engineer
            last edited by

            Hi David,

            You can view the results of a monitor that triggers a plan in the Admin > Executions page, filtering by "Build Trigger".

            You can also add some hack debugging to the plan that logs the built-in monitor variables to a file so you can see if it's triggering.

            If it's still not triggering, try configuring the monitor to a public instance of something on GitHub like https://github.com/Inedo/git-test.git to see if that works since GitHub supports the SVN protocols as well.

            Hope this helps,
            -John

            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