diff --git a/pipelines/monolithic.Jenkinsfile b/pipelines/monolithic.Jenkinsfile index 2fd3592..f0f694c 100644 --- a/pipelines/monolithic.Jenkinsfile +++ b/pipelines/monolithic.Jenkinsfile @@ -163,6 +163,9 @@ pipeline { booleanParam ( name: 'BUILD_ISO' ) + booleanParam ( + name: 'POST_ISO_SIGNING' + ) booleanParam ( name: 'BUILD_RT' ) diff --git a/pipelines/parts/build-iso.Jenkinsfile b/pipelines/parts/build-iso.Jenkinsfile index b5a07f1..ad96af3 100644 --- a/pipelines/parts/build-iso.Jenkinsfile +++ b/pipelines/parts/build-iso.Jenkinsfile @@ -43,6 +43,9 @@ pipeline { booleanParam ( name: 'BUILD_ISO' ) + booleanParam ( + name: 'POST_ISO_SIGNING' + ) } stages { stage ("build-iso") { @@ -51,6 +54,7 @@ pipeline { } } stage ("sign-iso") { + when { expression { params.POST_ISO_SIGNING } } steps { sh ("${Constants.SCRIPTS_DIR}/sign-iso.sh") } diff --git a/scripts/start-containers.sh b/scripts/start-containers.sh index de39fcf..cc4d89b 100755 --- a/scripts/start-containers.sh +++ b/scripts/start-containers.sh @@ -39,6 +39,14 @@ while [[ "$(stx control status | grep -i running | wc -l)" -lt 6 ]] ; do done stx control status +# Add ssh access key to signing server +if [ -f ~/.ssh/id_rsa ]; then + notice "Registering signing server access key" + stx control keys-add --key-type=signing-server --key=~/.ssh/id_rsa +else + notice "Signing server access key not found" +fi + # finish setup stx build prepare