jenkins/sdk: provide ssh credential for sdk build
Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
This commit is contained in:
parent
55ac1c7307
commit
071a721e80
|
|
@ -79,11 +79,13 @@ pipeline {
|
|||
stage('build') {
|
||||
steps {
|
||||
script {
|
||||
if(env.IS_NM_LINUX_SDK.toBoolean()) {
|
||||
sh "bash -c '. ./env.image-ostree && bitbake -q netmodule-linux-sdk'"
|
||||
}
|
||||
else {
|
||||
sh "bash -c '. ./env.image-ostree && bitbake -q -fc populate_sdk netmodule-linux-image-dev'"
|
||||
sshagent (credentials: ['7767e711-08a4-4c71-b080-197253dd7392']) {
|
||||
if(env.IS_NM_LINUX_SDK.toBoolean()) {
|
||||
sh "bash -c '. ./env.image-ostree && bitbake -q netmodule-linux-sdk'"
|
||||
}
|
||||
else {
|
||||
sh "bash -c '. ./env.image-ostree && bitbake -q -fc populate_sdk netmodule-linux-image-dev'"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -122,8 +124,9 @@ def printJobParameters() {
|
|||
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 > /dev/null && bitbake -q -c cleanall netmodule-linux-sdk'"
|
||||
sshagent (credentials: ['7767e711-08a4-4c71-b080-197253dd7392']) {
|
||||
sh "bash -c '. ./env.image-ostree > /dev/null && git fetch -ap && bitbake -q -c cleanall netmodule-linux-sdk'"
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue