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:
Marc Mattmüller 2023-08-29 14:27:18 +02:00
parent a138da021e
commit 54161e2b5c
2 changed files with 76 additions and 0 deletions

View File

@ -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')
}
}
}
}

View File

@ -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
}