[AETHER-299] Add archive-artifacts job to OMEC CI
Change-Id: Id51f103f6d37ee82b6e77a3ed445f2f8cab9c699
diff --git a/jjb/omec-ci.yaml b/jjb/omec-ci.yaml
index 433708d..6c9b644 100644
--- a/jjb/omec-ci.yaml
+++ b/jjb/omec-ci.yaml
@@ -27,6 +27,11 @@
pod: 'dev'
build-node: 'ng40-host-node'
ng40-vm: 'ng40@192.168.122.101'
+ - 'omec-archive-artifacts':
+ pod: 'dev'
+ build-node: 'omec-ci'
+ cp-context: 'dev-central-gcp'
+ dp-context: 'dev-edge-onf-menlo'
- 'omec-postmerge':
project: '{name}'
build-node: 'omec-ci'
@@ -850,3 +855,49 @@
url: 'https://github.com/{github-organization}/omec-project-ci'
branches:
- 'master'
+
+# OMEC archive artifacts job
+- job-template:
+ id: 'omec-archive-artifacts'
+ name: 'omec_archive-artifacts_{pod}'
+ project-type: pipeline
+
+ description: |
+ <!-- Managed by Jenkins Job Builder -->
+ Created from job-template {id} from ci-management/jjb/omec-ci.yaml <br />
+
+ properties:
+ - cord-infra-properties:
+ build-days-to-keep: '{build-days-to-keep}'
+ artifact-num-to-keep: '{artifact-num-to-keep}'
+
+ wrappers:
+ - lf-infra-wrappers:
+ build-timeout: '{build-timeout}'
+ jenkins-ssh-credential: '{jenkins-ssh-credential}'
+
+ parameters:
+ - string:
+ name: buildNode
+ default: '{build-node}'
+ description: 'Name of the Jenkins executor node to run the job on.'
+
+ - string:
+ name: cpContext
+ default: '{cp-context}'
+ description: 'K8S context for omec control plane.'
+
+ - string:
+ name: dpContext
+ default: '{dp-context}'
+ description: 'K8S context for omec data plane.'
+
+ concurrent: false
+
+ pipeline-scm:
+ script-path: 'Jenkinsfile-omec-archive-artifacts.groovy'
+ scm:
+ - git:
+ url: 'https://github.com/{github-organization}/omec-project-ci'
+ branches:
+ - 'master'