Jenkinsfiles: Execute commands silently

This commit is contained in:
Alexandre Bard 2021-08-26 14:02:08 +02:00
parent dcc5b24f9e
commit d9f7f04bfc
4 changed files with 6 additions and 6 deletions

View File

@ -145,7 +145,7 @@ def syncSources(src, dst) {
}
sshagent (credentials: ['7767e711-08a4-4c71-b080-197253dd7392']) {
sh "rsync -auvz --ignore-existing -e \"ssh\" ${from}/* ${to}"
sh "rsync -q -auvz --ignore-existing -e \"ssh\" ${from}/* ${to}"
}
}

View File

@ -125,7 +125,7 @@ def printJobParameters() {
def build(envType, imgType) {
def envPostFix = "${envType}" == "" ? "" : "-${envType}"
sh "bash -c '. ./env.image${envPostFix} && bitbake -k virtual/netmodule-image'"
sh "bash -c '. ./env.image${envPostFix} && bitbake -q -k virtual/netmodule-image'"
}

View File

@ -148,7 +148,7 @@ def cleanLeftOvers(cleaningDir) {
def build(imgType) {
def tgtImgType = "${imgType}" == "bootloader" ? "dev" : "${imgType}"
def imgTypePostfix = "${tgtImgType}" == "" ? "" : "-${tgtImgType}"
sh "bash -c '. ./env.image-ostree && bitbake -k netmodule-linux-image${imgTypePostfix}'"
sh "bash -c '. ./env.image-ostree && bitbake -q -k netmodule-linux-image${imgTypePostfix}'"
}
//-----------------------------------------------------------------------------

View File

@ -80,10 +80,10 @@ pipeline {
steps {
script {
if(env.IS_NM_LINUX_SDK.toBoolean()) {
sh "bash -c '. ./env.image-ostree && bitbake netmodule-linux-sdk'"
sh "bash -c '. ./env.image-ostree && bitbake -q netmodule-linux-sdk'"
}
else {
sh "bash -c '. ./env.image-ostree && bitbake -fc populate_sdk netmodule-linux-image-dev'"
sh "bash -c '. ./env.image-ostree && bitbake -q -fc populate_sdk netmodule-linux-image-dev'"
}
}
}
@ -122,7 +122,7 @@ def cleanLastBuildArtifacts() {
println "cleaning artifacts from last build..."
sh "rm -f ${env.YOCTO_DEPLOYS}/*"
sh "bash -c 'git fetch -ap'"
sh "bash -c '. ./env.image-ostree && bitbake -c cleanall netmodule-linux-sdk'"
sh "bash -c '. ./env.image-ostree && bitbake -q -c cleanall netmodule-linux-sdk'"
}