Module ImportFrom alias Import alias ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases NameLoad body Assign NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Num BinOpMult Num Num body Expr Str If CompareIs NameLoad NameLoad body Raise Call NameLoad Str If Call NameLoad GeneratorExp BoolOpAnd NameLoad CompareNotEq Call NameLoad NameLoad NameLoad comprehension NameStore TupleLoad NameLoad NameLoad body Raise Call NameLoad Str If UnaryOpNot Call NameLoad NameLoad TupleLoad NameLoad NameLoad body If NameLoad body Assign NameStore ListLoad NameLoad orelse Assign NameStore ListLoad If UnaryOpNot Call NameLoad NameLoad TupleLoad NameLoad NameLoad body If NameLoad body Assign NameStore ListLoad NameLoad orelse Assign NameStore ListLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr BoolOpOr NameLoad Dict Assign AttributeStore NameLoad attr Dict If NameLoad body Assign SubscriptStore AttributeLoad NameLoad attr Index Str NameLoad If NameLoad body Assign SubscriptStore AttributeLoad NameLoad attr Index Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad kwarg body Expr Str Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad NameLoad attr keyword NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Dict Str Str Str Str Str Str Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad Str attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad body If CompareLt AttributeLoad NameLoad attr BinOpSub Call AttributeLoad NameLoad attr Call NameLoad keyword Num body Return Raise decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad Call AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Return Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad decorator_list decorator_list Assign NameStore TupleLoad Str Str Str Str ClassDef bases NameLoad body Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad Str Str Str NameLoad Str Str NameLoad BinOpAdd BinOpAdd AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad kwarg body Expr Str If CompareIn NameLoad TupleLoad NameLoad NameLoad NameLoad body Raise Call NameLoad Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr keyword NameLoad keyword NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return Call AttributeLoad Call AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad Call NameLoad NameLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Dict Str Str Str Str Str Str Str Str Str Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return NameLoad decorator_list decorator_list
N/A __future__ absolute_import N/A logging datetime datetime timedelta flask current_app changes.artifacts.coverage CoverageHandler changes.artifacts.xunit XunitHandler changes.backends.base UnrecoverableException changes.buildsteps.base BuildStep changes.config db changes.constants Status builder JenkinsBuilder generic_builder JenkinsGenericBuilder JenkinsBuildStep N/A BuildStep N/A N/A builder_cls JenkinsBuilder N/A logger N/A N/A logging getLogger jenkins __init__ N/A N/A self job_name jenkins_url jenkins_diff_url auth_keyname verify cluster debug_config cpus memory N/A None None None None True None None 4 N/A 8 1024 N/A N/A 
        The JenkinsBuildStep constructor here, which is used as a base
        for all Jenkins builds, only accepts parameters which are used
        to determine where and how to schedule the builds and does not
        deal with any of the logic regarding what to actually schedule
        on those jenkins masters.

        jenkins_url and jenkins_diff_url are either a single url or a list
        of possible jenkins masters for use of queueing. We don't worry
        about which slaves to schedule them on at this level.

        Args:
            auth_keyname: A key in the Changes config file that specifies the
                auth parameter to pass to the requests library. This could be
                a (username, password) tuple, in which case the requests library
                uses HTTPBasicAuth. For details, see http://docs.python-requests.org/en/latest/user/authentication/#basic-authentication
            verify (str or bool): The verify parameter to pass to the requests
                library for verifying SSL certificates. For details,
                see http://docs.python-requests.org/en/latest/user/advanced/#ssl-cert-verification
            cpus (int): Number of CPUs this buildstep requires to run.
            memory (int): Memory required for this buildstep in megabytes.
            cluster (Optional[str]): The Jenkins label to apply to be used to restrict the build to a subset of
                slaves where the master supports it.
            debug_config: A dictionary of debug config options. These are passed through
                to changes-client. There is also an infra_failures option, which takes a
                dictionary used to force infrastructure failures in builds. The keys of
                this dictionary refer to the phase (either 'primary' or 'expanded' if
                applicable), and the values are the probabilities with which
                a JobStep in that phase will fail.
                An example: "debug_config": {"infra_failures": {"primary": 0.5}}
                This will then cause an infra failure in the primary JobStep with
                probability 0.5.
         N/A N/A job_name None N/A N/A N/A ValueError Missing required config: need job_name. N/A N/A any N/A N/A int_field N/A N/A type int_field int N/A int_field N/A cpus memory N/A N/A N/A ValueError cpus and memory fields must be JSON ints N/A N/A N/A isinstance jenkins_url N/A list tuple N/A N/A jenkins_url N/A N/A jenkins_url N/A jenkins_url N/A N/A jenkins_url N/A N/A N/A N/A isinstance jenkins_diff_url N/A list tuple N/A N/A jenkins_diff_url N/A N/A jenkins_diff_url N/A jenkins_diff_url N/A N/A jenkins_diff_url N/A N/A N/A self job_name job_name N/A N/A self jenkins_urls jenkins_url N/A N/A self jenkins_diff_urls jenkins_diff_url N/A N/A self auth_keyname auth_keyname N/A N/A self verify verify N/A N/A self cluster cluster N/A N/A self debug_config N/A debug_config N/A N/A N/A self _resources N/A N/A cpus N/A N/A N/A N/A self _resources N/A cpus cpus N/A memory N/A N/A N/A N/A self _resources N/A memory memory N/A get_builder N/A N/A self app N/A current_app kwargs N/A N/A 
        Any arguments passed in as kwargs will get passed in to the constructor
        for the builder associated with the buildstep. In particular we use this
        to override build_type.
         N/A args N/A N/A N/A N/A self get_builder_options copy N/A N/A N/A args update kwargs N/A N/A N/A self builder_cls app app args N/A get_builder_options N/A N/A self N/A N/A N/A 
        A dictionary that is used as kwargs for creating the builder (these can be
        overridden in the kwargs of get_builder but this is not done very commonly),
        so most builder constructor values originate from the get_builder_options
        of the corresponding buildstep or one of its superclasses.
         N/A N/A master_urls diff_urls job_name verify auth_keyname cluster debug_config N/A self jenkins_urls N/A self jenkins_diff_urls N/A self job_name N/A self verify N/A self auth_keyname N/A self cluster N/A self debug_config N/A get_label N/A N/A self N/A N/A N/A N/A N/A Execute job "{0}" on Jenkins format N/A self job_name N/A execute N/A N/A self job N/A N/A N/A 
        Creates a new job using the builder. This is where most of the
        logic is implemented for a given buildstep, but in this case the
        logic is handed to the builder.
         N/A builder N/A N/A self get_builder N/A N/A N/A builder create_job job N/A update N/A N/A self job N/A N/A N/A builder N/A N/A self get_builder N/A N/A N/A builder sync_job job N/A update_step N/A N/A self step N/A N/A N/A builder N/A N/A self get_builder N/A N/A N/A N/A N/A builder sync_step step N/A N/A N/A UnrecoverableException N/A N/A N/A N/A step date_created N/A N/A N/A datetime utcnow N/A timedelta minutes 5 N/A N/A N/A N/A cancel_step N/A N/A self step N/A N/A N/A builder N/A N/A self get_builder N/A N/A N/A builder cancel_step step N/A N/A step status N/A Status finished N/A N/A step date_finished N/A N/A datetime utcnow N/A N/A N/A N/A db session add step N/A create_replacement_jobstep N/A N/A self step N/A N/A N/A builder N/A N/A self get_builder N/A N/A N/A builder create_job N/A step job replaces step N/A fetch_artifact N/A N/A self artifact N/A N/A N/A 
        Processes a single artifact. Critical artifacts - that is, artifacts
        that are somehow special and possibly required - can be specified
        by overriding this method. It is not necessary to super all the way
        to here for critical artifacts, so this implementation is typically only
        used (and always used) for normal artifacts.
         N/A builder N/A N/A self get_builder N/A N/A N/A builder sync_artifact artifact N/A can_snapshot N/A N/A self N/A N/A N/A 
        Since we do most of our build_type logic in the builder rather than
        the buildstep, it makes sense to let the builder determine if it
        can snapshot or not. In particular, this means we have no need to
        actually look up and verify the buildtype from within the buildstep.
         N/A N/A N/A N/A N/A self get_builder can_snapshot N/A get_resource_limits N/A N/A self N/A N/A N/A N/A N/A N/A self _resources copy N/A get_artifact_manager N/A N/A self jobstep N/A N/A N/A builder N/A N/A self get_builder N/A N/A N/A builder get_artifact_manager jobstep N/A verify_final_artifacts N/A N/A self jobstep artifacts N/A N/A N/A builder N/A N/A self get_builder N/A N/A N/A builder verify_final_artifacts jobstep artifacts N/A prefer_artifactstore N/A N/A self N/A N/A N/A N/A N/A N/A self debug_config get prefer_artifactstore False N/A N/A N/A SERVICE_LOG_FILE_PATTERNS N/A logged.service *.logged.service service.log *.service.log JenkinsGenericBuildStep N/A JenkinsBuildStep N/A N/A builder_cls JenkinsGenericBuilder __init__ N/A N/A self job_name script cluster path workspace reset_script build_type setup_script teardown_script clean artifacts snapshot_script N/A None None None None True N/A N/A N/A XunitHandler FILENAMES N/A CoverageHandler FILENAMES SERVICE_LOG_FILE_PATTERNS None kwargs N/A N/A 
        build_type describes how to use changes-client, but 'legacy'
        defaults to not using it at all. See configuration file
        for more details [CHANGES_CLIENT_BUILD_TYPES]
        workspace can be used to override where to check out the
        source tree and corresponds to the repository root
        once the build starts.

        The cluster and diff cluster arguments refer
        to Jenkins tags that are used to run the builds, so
        it should be made sure that slaves with these tags exist
        for the masters that are being used (See JenkinsBuildStep).

        path is relative to workspace and refers to where to change
        directory to after checking out the repository.

        setup_script, script, and teardown_script represent what to
        actually run. setup_script and teardown_script are always
        executed in the root of the repository (because of limitations
        regarding sharded builds documented elsewhere) while script
        is run from "path". teardown_script is always guaranteed
        to run regardless of whether script runs, but script will not
        run if setup_script fails. snapshot_script runs in place
        of script for snapshot builds.

        reset_script is used to asynchronously reset the workspace.

        `clean` controls if the repository should be cleaned before
        tests are run (requires integration with generic-build).
        Defaults to true, because False may be unsafe; it may be
        useful to set to False if snapshots are in use and they
        intentionally leave useful incremental build products in the
        repository.

        artifacts is a list of file name patterns describing the artifacts
        which need to be picked up by changes-client.
         N/A N/A None N/A job_name script cluster N/A N/A N/A ValueError Missing required config: need job_name, script, and cluster. N/A N/A self setup_script setup_script N/A N/A self script script N/A N/A self teardown_script teardown_script N/A N/A self reset_script reset_script N/A N/A self snapshot_script snapshot_script N/A N/A self path path N/A N/A self workspace workspace N/A N/A self build_type build_type N/A N/A self artifacts artifacts N/A N/A self clean clean N/A N/A N/A N/A super JenkinsGenericBuildStep self __init__ job_name job_name cluster cluster kwargs N/A get_lxc_config N/A N/A self jobstep N/A N/A N/A 
        Get the LXC configuration, if the LXC adapter should be used.
        Args:
            jobstep (JobStep): The JobStep to get the LXC config for.

        Returns:
            LXCConfig: The config to use for this jobstep, or None.
         N/A N/A N/A N/A N/A self get_builder get_lxc_config jobstep N/A get_builder_options N/A N/A self N/A N/A N/A options N/A N/A N/A super JenkinsGenericBuildStep self get_builder_options N/A N/A N/A options update N/A setup_script script teardown_script reset_script snapshot_script path workspace build_type artifacts clean N/A self setup_script N/A self script N/A self teardown_script N/A self reset_script N/A self snapshot_script N/A self path N/A self workspace N/A self build_type N/A self artifacts N/A self clean N/A options N/A N/A