Commit 7191aec7 authored by Johan Lorenzo's avatar Johan Lorenzo Committed by Sebastian Kaspari
Browse files

Bug 1600104 - Change FennecNightly signing format to have sha1 digest

parent 46439930
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -54,6 +54,12 @@ job-template:
                        '3': production-signing
                        default: dep-signing
                default: dep-signing
    signing-format:
      by-build-type:
          # Fennec nightly cannot have the sha256 checksums. For more details, see
          # https://github.com/mozilla-releng/scriptworker-scripts/pull/102#issue-349016967
          fennec-nightly: autograph_apk_fennec_sha1
          default: autograph_apk
    index:
        by-build-type:
            (fennec-.+|nightly|performance-test|beta|production):
+3 −2
Original line number Diff line number Diff line
@@ -18,7 +18,7 @@ transforms = TransformSequence()
@transforms.add
def resolve_keys(config, tasks):
    for task in tasks:
        for key in ("index", "worker-type", "worker.signing-type"):
        for key in ("index", "worker-type", "worker.signing-type", "signing-format"):
            resolve_keyed_by(
                task,
                key,
@@ -41,6 +41,7 @@ def set_signing_attributes(config, tasks):
@transforms.add
def set_signing_format(config, tasks):
    for task in tasks:
        signing_format = task.pop("signing-format")
        for upstream_artifact in task["worker"]["upstream-artifacts"]:
            upstream_artifact["formats"] = ["autograph_apk"]
            upstream_artifact["formats"] = [signing_format]
        yield task