Not sure I got this right but if you are looking how the system check for modification and trigger new execution, Jenkinsfile need a successful manual build first. This will record the repos checkout and according to the jobs settings and the checkout options, can start polling/trigger new execution.
NOTE: Warning/Error build don't record the repos to be poll, you need a successful build for this to happen for the first time at least.