Automatically create Daily Notion Tasks by Jenkins

We already introduced how to create daily Notion tasks By Azure function in last article 创建重复性的Notion任务以及自动更新任务状态 | NightWish. I will introduce how to automatically create Daily Notion tasks and update Notion tasks status in case you are unable to access Azure .

Jenkins setup:

  1. Install Jenkins by Docker, please refer my article Docker 持续部署hexo blog到github page上和云虚拟机上 | NightWish

  2. Create a Jenkins project

  3. Configure Jenkins project

    3.1 Configure Environment parameters AUTH,TEMPLATE_DATABASEID,and DAILY_TASK_DATABASEID
    ParametersConfiguration

    3.2 Configure Build Triggers to make this job could be automatically run on 4PM UTC time Zone(12AM Beijing Time Zone)
    BuildTrigger

    3.1 Execute shell script to get Python package for recurring tasks creation,See details in github NotionRecurringTask for this python package introduction

    image-20220930112459250

    3.2 Execute python script to call NotionRecurringTask package for Daily tasks creation
    image-20220930112632487

Test Result

you could see Notion tasks were created by jenkins job

image-20220930113050053