Skip to content

Commit

Permalink
Revert "hw-test: Verify img signature before ..."
Browse files Browse the repository at this point in the history
This reverts commit f80a154.
  • Loading branch information
henrirosten committed Sep 17, 2024
1 parent f80a154 commit 74c34d1
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions ghaf-hw-test.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
def REPO_URL = 'https://github.com/tiiuae/ci-test-automation/'
def DEF_LABEL = 'testagent'
def TMP_IMG_DIR = 'image'
def TMP_SIG_DIR = 'signature'
def CONF_FILE_PATH = '/etc/jenkins/test_config.json'

////////////////////////////////////////////////////////////////////////////////
Expand Down Expand Up @@ -161,11 +160,6 @@ pipeline {
"""
img_relpath = run_cmd("find ${TMP_IMG_DIR} -type f -print -quit | grep .")
println "Downloaded image to workspace: ${img_relpath}"
// Verify signature using the tooling from: https://github.com/tiiuae/ci-yubi
sh "wget -nv -P ${TMP_SIG_DIR} ${params.IMG_URL}.sig"
sig_relpath = run_cmd("find ${TMP_SIG_DIR} -type f -print -quit | grep .")
println "Downloaded signature to workspace: ${sig_relpath}"
sh "nix run github:tiiuae/ci-yubi/e2aa4c6#verify -- --path ${img_relpath} --sigfile ${sig_relpath}"
// Uncompress, keeping only the decompressed image file
if(img_relpath.endsWith("zst")) {
sh "zstd -dfv ${img_relpath} && rm ${img_relpath}"
Expand Down

0 comments on commit 74c34d1

Please sign in to comment.