Skip to content

2.Incremental Check and Full Check

Incremental Check

Checking Art Resources Under a Specified Directory

1. For projects with access to SVN-CI

Project teams can configure WebHook Interface for ArtEase on SVN-CI. 1. Copy the WebHook Interface at Management -> Server Management. image-20220927150823409 2. Configure this interface on SVN-CI. After triggering the interface to submit SVN-CI, ArtEase will start validation checks. image

2. For projects without access to SVN-CI

Project teams can run incremental checks with a custom Post script. Post address:
image
Parameters:

data = {
 "svn_commit": { 
     "author": "Submitter",
     "scheme": "Scheme Name",
     "callback": True or False,  # Whether it needs to callback
     "remind": 1 or 0,  # 1 for receiving POPO reminder, 0 for not
     "popo_group": "POPO Group ID",  # Group to receive POPO notification. Optional. Add Robot (grp.hsfeedback@corp.netease.com) to the group first
     "files":[ [ "U", "Incremental File Address" ],[ "A", "Incremental File Address"] ] 
    } 
}
Files have the same format as SVN-CI interface, with U for modify, A for add and D for delete.

res = requests.post(artease_url, data=json.dumps(data), headers=headers), with Post headers’ format as {'Content-Type': 'application/json'}

Attention

The file submit path and the check path of the docker run by ArtEase must be consistent. Example:

The incremental files’ submit address is /shipping/res/toolest/test.png
ArtEase’s check path is /home/svn/trunk/
The path after joining the actual check is: /home/svn/trunk/shipping/res/toolest/test.png. Make sure the files exist in the joined path. Otherwise, it could result in a situation in which a triggered incremental check has zero check files.

Full Check

Check all art resources under ArtEase

You can also run full checks with a custom script:

import requests
import json

headers = {
    'Content-Type': 'application/json'
}

data = {
    "params":{
        "author": "Submitter", # POPO Account
        "scheme": "Scheme Name",
        "callback": True or False,  # Whether it needs to callback
        "popo_group": "POPO Group ID",  # Group to receive POPO notification. Optional. Add Robot (grp.hsfeedback@corp.netease.com) to the group first
        "remind": 1 or 0,  # 1 for receiving POPO reminder, 0 for not
    }    
}
res = requests.post(artease_url, data = json.dumps(data), headers=headers)