Continuous Integration

Jonathon Marshall asked on January 20, 2017 16:01

Hi

We would like to include all classes or object types except the types which the editing user enters via UI on main site

We are unable to exclude all of the following from CI but it would seem to us to be fundamental that we are able to so that user creates and edits content but the developers modify site with new pages etc.

eg we cant exclude : (articles, bookingevents, simplearticles)

<ObjectType>cms.settingskey</ObjectType>
<ObjectType>cms.user</ObjectType>
<ObjectType>cms.usersettings</ObjectType>
<ObjectType>cms.usersite</ObjectType>
<ObjectType>cms.userrole</ObjectType>
<ObjectType>cms.membershipuser</ObjectType>
<ObjectType>cms.workflowuser</ObjectType>
<ObjectType>cms.userculture</ObjectType>    

<ObjectType>cms.article</ObjectType>    
<ObjectType>cms.simplearticle</ObjectType>      
<ObjectType>cms.news</ObjectType>   
<ObjectType>cms.event</ObjectType>  
<ObjectType>cms.bookingevent</ObjectType>       
<ObjectType>media.library</ObjectType>  
<ObjectType>media.grouplibrary</ObjectType> 
<ObjectType>media.libraryrolepermission</ObjectType>

Recent Answers


Brenden Kehren answered on January 20, 2017 16:05

In v9 CI objects were somewhat limited. See the documentation here.

In v10, it nearly doubled so if you're not on v10 you might want to think about upgrading if this suits your needs.

0 votesVote for this answer Mark as a Correct answer

Jonathon Marshall answered on January 20, 2017 16:07 (last edited on January 20, 2017 16:10)

We are using 10 but even under 10 the following exclusions don't work cms.article cms.simplearticle
cms.news cms.event cms.bookingevent

0 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on January 20, 2017 16:20

I've not setup CI before but reading the documentation do you need to create an object filter node?

 <ObjectFilters>
     <ExcludedCodeNames ObjectType="cms.documenttype">cms.article</ExcludedCodeNames>
 </ObjectFilters>
0 votesVote for this answer Mark as a Correct answer

Ilesh Mistry answered on January 20, 2017 17:12 (last edited on January 20, 2017 17:16)

Hi Jonathan, have you rerun the Serialise Objects in Kentico, after making those exclusions? The documentation has full instructions on this. link text

0 votesVote for this answer Mark as a Correct answer

Jonathon Marshall answered on January 20, 2017 18:46

Hi Ilesh and Brenden

Brenden, thx for suggestion. As per your advice I tried using documenttype as a mechanism to filter but it just doesn't work on articles - even with wildcards to filter out all types the documents are created and added into the site repository.

Ilesh - Yes - I did delete all repository items, then run Serialise with new settings (after) basically cms.documenttype seems not to be a valid as a mechanism for filtering using ObjectFilters

0 votesVote for this answer Mark as a Correct answer

Ilesh Mistry answered on January 20, 2017 21:52 (last edited on January 20, 2017 22:33)

Hi Jonathan, can you try the following please... <ObjectFilters> <ExcludedCodeNames ObjectType="cms.documenttype">%article%</ExcludedCodeNames> </ObjectFilters>

Just an update I tried this, but it didn't seem to work for me either. So I would recommend for now to add something into your ignore file. So if your using GIT, add the something like \CMS\App_Data\CIRepository\@global\cms.documenttype\cms.article.xml

Now this won't speed up Kentico CI, but at least those Page Types won't be tracked.

0 votesVote for this answer Mark as a Correct answer

Ilesh Mistry answered on January 21, 2017 10:20

Try CMS.Article... <ObjectFilters> <ExcludedCodeNames ObjectType="cms.documenttype">CMS.Article</ExcludedCodeNames> </ObjectFilters> this seemed to work for me after speaking to KS.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.