CruiseControl.NET - Project Does Not Exist

I have CruiseControl.NET installed on the server. Everything was fine with me. All that is needed is to extract the code from SVN, build it, after successful assembly, start the project setup using the project trigger for deploying the code in the DEV environment. I added some internal security settings, mostly just user groups. I use LDAP protection. When I added the security features, my automatic deployment to the DEV server stopped working. I can force the project to deploy it, but when project No. 1 is successfully created, I get an error below when the deployment project starts (I replaced the project name with PROJECT for security purposes):

2010-07-20 13: 28: 19,354 [PROJECT: DEBUG] Getting ProjectStatus from server: tcp: // localhost: 21234 / CruiseManager.rem
2010-07-20 13: 28: 19,355 [PROJECT: ERROR] Exception: project " PROJECT "does not exist on the CCNet server.

ThoughtWorks.CruiseControl.Remote.NoSuchProjectException: PROJECT project does not exist on the CCNet server.
  in ThoughtWorks.CruiseControl.Core.Triggers.ProjectTrigger.GetCurrentProjectStatus ()
  in ThoughtWorks.CruiseControl.Core.Triggers.ProjectTrigger.Fire ()
  in ThoughtWorks.CruiseControl.Core.Triggers.MultipleTrigger.Fire ()
  in ThoughtWorks.CruiseControl.Core.ProjectIntegrator .PollTriggers ()
  in ThoughtWorks.CruiseControl.Core.ProjectIntegrator.Integrate ()
  in ThoughtWorks.CruiseControl.Core.ProjectIntegrator.Run ()

CruiseControl, ( ). CruiseControl , "admin" CruiseControl.

, CruiseControl, ?

+3
2

, -, , . :

<cb:scope ProjectName="$(projMhWebDevDeploy)">
<project name="$(projMhWebDevDeploy)" queue="Q1" queuePriority="1">
  <cb:define safeProjectName="MH_Web_Dev_Branch_Deployment"/>
  <cb:define projectDirectory="$(ccnetDirectory)\Projects\$(safeProjectName)"/>

  <triggers>
    <projectTrigger project="$(projMhWeb)">
      <triggerStatus>Success</triggerStatus>
      <innerTrigger type="intervalTrigger" seconds="5" buildCondition="IfModificationExists" />
    </projectTrigger>
    <projectTrigger project="$(projMhWeb)">
      <triggerStatus>Success</triggerStatus>
      <innerTrigger type="intervalTrigger" seconds="5" buildCondition="ForceBuild" />
    </projectTrigger>
  </triggers>

  <category>DEV Deployments</category>
  <webURL>$(urlCcnetDashBoard)</webURL>
  <workingDirectory>$(projectDirectory)</workingDirectory>
  <artifactDirectory>$(ccnetDirectory)\BuildFiles\$(safeProjectName)</artifactDirectory>

  <tasks>
    <!-- Deploy Code -->
    <exec>
      <executable>$(deployCodeBat)</executable>
      <buildArgs>
        $(ccnetDirectory)\Projects\MH_Web\Web
        $(deployMhWebDev)
        brh
      </buildArgs>
      <baseDirectory>$(ccnetDirectory)\BatchFiles\</baseDirectory>
    </exec>
    <!-- Deploy Helicon HTTPD -->
    <exec>
      <executable>$(deployHeliconBat)</executable>
      <buildArgs>
        $(ccnetDirectory)\Projects\MH_Web\Web
        "$(deployHeliconDev)"
        httpd.conf
      </buildArgs>
      <baseDirectory>$(ccnetDirectory)\BatchFiles\</baseDirectory>
    </exec>
  </tasks>
  <publishers>
    <xmllogger />
    <modificationHistory onlyLogWhenChangesFound="true" />
    <email mailport="25" includeDetails="true" useSSL="false" from="FROM" mailhost="SERVER">
      <users>
        EMAIL ADDRESSES ARE HERE
      </users>
      <groups>
        <group name="BuildMaster">
          <notifications>
            <notificationType>Always</notificationType>
          </notifications>
        </group>
      </groups>
    </email>
  </publishers>
  <security type="defaultProjectSecurity" defaultRight="Deny">
    <permissions>
      <rolePermission name="Developers" ref="Developers"/>
      <rolePermission name="Admin" ref="Admin"/>
    </permissions>
  </security>
</project>   
</cb:scope>
0

, - . , AD perms , CCNet, . (, ):

<internalSecurity>        
    <permissions>
        <!-- Roles -->
        <rolePermission name="Admin" forceBuild="Allow" startProject="Allow" >
            <users>
                <userName name="DOMAIN\GROUP1\"/>
            </users>         
        </rolePermission>
        <rolePermission name="Developers" forceBuild="Deny" startProject="Deny">
            <users>
                <userName name="DOMAIN\GROUP2\"/>
            </users>
        </rolePermission>
    </permissions>
</internalSecurity>
0

Source: https://habr.com/ru/post/1755599/


All Articles