jenkins/ramdisk/mmc: provide ssh credential for build

Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
This commit is contained in:
Marc Mattmueller 2021-10-27 11:56:20 +02:00
parent bc58edf65d
commit 526eb8729b
2 changed files with 9 additions and 5 deletions

View File

@ -130,8 +130,10 @@ def printJobParameters() {
def build(envType, imgType) {
def envPostFix = "${envType}" == "" ? "" : "-${envType}"
sh "bash -c '. ./env.image${envPostFix} > /dev/null && bitbake -q -k virtual/netmodule-image'"
sshagent (credentials: ['7767e711-08a4-4c71-b080-197253dd7392']) {
def envPostFix = "${envType}" == "" ? "" : "-${envType}"
sh "bash -c '. ./env.image${envPostFix} > /dev/null && bitbake -q -k virtual/netmodule-image'"
}
}

View File

@ -152,9 +152,11 @@ def cleanLeftOvers(cleaningDir) {
//-----------------------------------------------------------------------------
def build(imgType) {
def tgtImgType = "${imgType}" == "bootloader" ? "dev" : "${imgType}"
def imgTypePostfix = "${tgtImgType}" == "" ? "" : "-${tgtImgType}"
sh "bash -c '. ./env.image-ostree > /dev/null && bitbake -q -k netmodule-linux-image${imgTypePostfix}'"
sshagent (credentials: ['7767e711-08a4-4c71-b080-197253dd7392']) {
def tgtImgType = "${imgType}" == "bootloader" ? "dev" : "${imgType}"
def imgTypePostfix = "${tgtImgType}" == "" ? "" : "-${tgtImgType}"
sh "bash -c '. ./env.image-ostree > /dev/null && bitbake -q -k netmodule-linux-image${imgTypePostfix}'"
}
}
//-----------------------------------------------------------------------------