Construction jenkins-4- timed test automation tasks

Foreword

Timing building: We usually write the code editor, which are run manually run the automated test task in the editor

But it can not always be performed manually run a dozen or twenty minutes depends on what there is there is an error. Here we can use jenkins is set to build good python package abnormal sends e-mail notification. Properly properly!

A timing profile Construction

1, Timer build grammar, star separated Dafa: * * * * *

* It is five, separated by a space.

2, detailed syntax:

  • * Denotes a first minute, ranging from 0 to 59
  • * Represents the second hour, ranging from 0 to 23
  • * The third day of the month, ranging from 1 to 31
  • The fourth * denotes the first few months, ranging from 1 to 12
  • The fifth * represents the day of the week, ranging from 0 to 7, where 0 is Sunday and 7 representatives

 Second, the timing of the sub-grammar for example

  • Once every 30 minutes Construction: H parameter representative of
  • H/30 * * * *
  • Once every two hours to build:
  • H H/2 * * *
  • 8:00 every day, once constructed are 15-point (an intermediate point of the plurality of time separated by a comma)
  • H 9,15 * * *
  • 8:00 am to 18:00 every day to check once every three hours
  • H 8-18/3 * * *

Usually we used it should be is: 8:00 every day, are building a 15-point (H 9,15 * * *)

Note: the middle of multiple time points separated by commas, not separated jenkins thoughtful service will prompt you!

Third, examples

1. Configuration -> set is built, you need to input syntax:

 2, the syntax is not, jenkins give you tips grammatical mistakes (firmly)

 3, the point to you automatically build, from the release of your hands, you concentrate on writing code to submit to github.

Guess you like

Origin www.cnblogs.com/gsxl/p/12147110.html