jobs: added seed for new job UpdateSrcRevisions (incl. job skeleton)
A request was to have the update source revision part in a separate job as in OEM Linux. This commit seeds a new job currently with an empty skeleton. Signed-off-by: Marc Mattmüller <marc.mattmueller@netmodule.com>
This commit is contained in:
parent
a138da021e
commit
54161e2b5c
|
|
@ -65,3 +65,38 @@ pipelineJob('nwl-target') {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
pipelineJob('nwl-update-src-rev') {
|
||||||
|
displayName('0. Update Source Revisions')
|
||||||
|
description('CI pipeline updating the source revisions for the NetModule Wireless Linux')
|
||||||
|
authorization {
|
||||||
|
permissionAll('anonymous')
|
||||||
|
}
|
||||||
|
authenticationToken('buildNwlToken')
|
||||||
|
logRotator {
|
||||||
|
artifactDaysToKeep(7)
|
||||||
|
artifactNumToKeep(7)
|
||||||
|
daysToKeep(7)
|
||||||
|
numToKeep(7)
|
||||||
|
}
|
||||||
|
definition {
|
||||||
|
cpsScm {
|
||||||
|
scm {
|
||||||
|
git {
|
||||||
|
branches('main')
|
||||||
|
extensions {
|
||||||
|
cloneOptions {
|
||||||
|
depth(1)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
remote {
|
||||||
|
credentials('nmgit_credentials')
|
||||||
|
url('ssh://git@bitbucket.gad.local:7999/nm-nsp/nwl-ci.git')
|
||||||
|
}
|
||||||
|
}
|
||||||
|
scriptPath('jobs/Jenkinsfile_UpdateSrcRevisions')
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,41 @@
|
||||||
|
// Loading code requires a NODE context
|
||||||
|
// But we want the code accessible outside the node Context
|
||||||
|
// So declare common (object created by the LOAD operation) outside the Node block.
|
||||||
|
def common
|
||||||
|
|
||||||
|
// declarative pipeline
|
||||||
|
pipeline {
|
||||||
|
agent any
|
||||||
|
|
||||||
|
parameters {
|
||||||
|
string(name: 'BUILD_BRANCH', defaultValue: 'main', description: 'Enter the branch of the NWL to build (default = main), will skip deployment if not main')
|
||||||
|
booleanParam(name: 'CLEAN_BUILD', defaultValue: false, description: 'do a clean build, i.e. remove the yocto directory and start from scratch')
|
||||||
|
}
|
||||||
|
|
||||||
|
options {
|
||||||
|
timeout(time: 1, unit: 'HOURS')
|
||||||
|
buildDiscarder(
|
||||||
|
logRotator(numToKeepStr: '10')
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
stages {
|
||||||
|
|
||||||
|
stage('Prepare') {
|
||||||
|
steps {
|
||||||
|
script {
|
||||||
|
println "ToDo: prepare stage"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
stage('Update') {
|
||||||
|
steps {
|
||||||
|
script {
|
||||||
|
println "ToDo: Update stage"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
} // stages
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue