Skip to content

Skip a build if git clone fails #68

Closed

Description

@vstinner

Currently, when "git clone" fails, the whole build is marked as an error:
https://buildbot.python.org/all/#/builders/57/builds/266

  • job 0 "git" failed because "git clone" failed (network issue)
  • job 1 "make distclean" failed because there is no Makefile: this one is fine, Clean step uses warnOnFailure = 1, it's just a warning

I failed to find the proper configuration to say: if git fails, give up on this build, but don't mark is as an error.

Activity

  1. vstinner commented on Nov 30, 2018

    @vstinner
    MemberAuthor

    BuildStep parameters:
    http://docs.buildbot.net/latest/manual/configuration/buildsteps.html#common-parameters-of-source-checkout-operations

    The Git step uses haltOnFailure = True, config from the base class:

        # if the checkout fails, there's no point in doing anything else
        haltOnFailure = True
        flunkOnFailure = True
        notReally = False
    

    https://github.com/buildbot/buildbot/blob/5433c07b04c8f6ab9b8e4de74f806fc96718ae8a/master/buildbot/steps/source/base.py#L47-L50

  2. vstinner commented on Nov 30, 2018

    @vstinner
    MemberAuthor

    My attempt to fix this issue: #69

  3. added a commit that references this issue on Dec 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions