Cicd documentation layout


How to schedule Pipeline Build in Jenkins



Download 6.25 Mb.
Page39/39
Date15.06.2023
Size6.25 Mb.
#61535
1   ...   31   32   33   34   35   36   37   38   39
CIcd

13.4. How to schedule Pipeline Build in Jenkins


The steps for schedule jobs in Jenkins:

  1. click on "Configure" of the job requirement

  2. scroll down to "Build Triggers" - sub title

  3. Click on the checkBox of Build periodically

  4. Add time schedule in the Schedule field


By setting the schedule period to H H * * * translate Jenkins to schedule the build once every day, doesn't matter what time it is (can be any minute and any hour between 00:00 and 23:59)


Jenkins used a cron expression, and the different fields are:

  1. MINUTES Minutes in one hour (0-59)

  2. HOURS Hours in one day (0-23)

  3. DAYMONTH Day in a month (1-31)

  4. MONTH Month in a year (1-12)

  5. DAYWEEK Day of the week (0-7) where 0 and 7 are sunday

13.5. Summary:


Now successfully created scheduled pipeline in Jenkins for maintenance of docker to clean-up docker images.

Thank you
Download 6.25 Mb.

Share with your friends:
1   ...   31   32   33   34   35   36   37   38   39




The database is protected by copyright ©ininet.org 2024
send message

    Main page