Exemple #1
0
 def checker(step: BuildStep) -> bool:
     if artifact_type not in ['sdks', 'cache', 'build']:
         raise ValueError("is_artifact_save_necessary: Unsupported artifact type {!r}".format(artifact_type))
     artifact_produced_property = "produce_{}_artifacts".format(artifact_type)
     #print("DEBUG: {!r} property = {!r}".format(
     #    artifact_produced_property, step.getProperty(artifact_produced_property)))
     #print("DEBUG: {!r} property .split() = {!r}".format(
     #    "artifacts_produced", str(step.getProperty("artifacts_produced")).split()))
     #print("DEBUG: my boolean evaluation = {!r}".format(
     #    bool(step.getProperty(artifact_produced_property)) and
     #    (artifact_type in
     #     str(step.getProperty("artifacts_produced")).split())
     #))
     return (
         bool(step.getProperty(artifact_produced_property)) and
         (artifact_type in
          str(step.getProperty("artifacts_produced")).split())
     )
Exemple #2
0
 def checker(step: BuildStep) -> bool:
     return (
         bool(step.getProperty("force_repo_quicksync_artifacts_download")) or
         (quicksync_artifact_type in
          str(step.getProperty("which_repo_quicksync_artifact_to_download")).split())
     )
Exemple #3
0
 def assert_local_manifest_application(step: BuildStep) -> bool:
     return bool(step.getProperty("use_local_manifest") and
                 step.getProperty("local_manifest_xml"))