[OOM] Upgrade and clean up OOM jobs 22/132122/1
authorefiacor <fiachra.corcoran@est.tech>
Thu, 10 Nov 2022 09:45:50 +0000 (09:45 +0000)
committerefiacor <fiachra.corcoran@est.tech>
Thu, 10 Nov 2022 09:46:16 +0000 (09:46 +0000)
Change-Id: I8c6a22f39add57a5b30ad711ac296825986feb20
Signed-off-by: efiacor <fiachra.corcoran@est.tech>
Issue-ID: CIMAN-424

jjb/global-macros.yaml
jjb/global-templates-helm.yaml
jjb/oom-platform-cert-service/oom-platform-cert-service-csit.yaml
jjb/oom-platform-cert-service/oom-platform-cert-service.yaml
jjb/oom-platform-keycloak/oom-platform-keycloak.yaml [deleted file]
jjb/oom/offline-installer.yaml
jjb/oom/oom-helm.yaml
jjb/oom/oom-main-linter.yaml
jjb/oom/oom-readiness.yaml
packer/provision/helm.yaml
shell/helm-repo-init.sh

index 50a9a57..bc40107 100644 (file)
             - patchset-created-event:
                 exclude-drafts: 'false'
                 exclude-no-code-change: 'false'
-                exclude-trivial-rebase: 'true'
+                exclude-trivial-rebase: 'false'
                 exclude-wip: 'true'
             - draft-published-event
             - comment-added-contains-event:
index 475efa0..3ce9285 100644 (file)
           server: '{server-name}'
           project: '{project}'
           branch: '{branch}'
+          helm_bin: '{helm_bin}'
           files: '{files}'
 
     builders:
           global-settings-file: '{mvn-global-settings}'
           settings-file: '{mvn-settings}'
       - shell: |
-          echo "export HELM_BIN=helm3.6" > helm.prop
-      - shell: '{obj:pre_build_script}'
-      - shell: '{obj:build_script}'
-      - oom-create-netrc:
-          server-id: oom-helm
-      - inject:
-          properties-content: |
-            BUILD_TYPE=snapshot
-      - shell: '{obj:post_build_script}'
-      - lf-provide-maven-settings-cleanup
-
-- job-template:
-    name: '{project-name}-{stream}-verify-external-helm'
-    # Job template for helm verify jobs
-
-    <<: *helm_job_boiler_plate
-
-    parameters:
-      - lf-infra-parameters:
-          branch: '{branch}'
-          project: 'oom'
-          stream: '{stream}'
-          lftools-version: '{lftools-version}'
-
-    scm:
-      - lf-infra-gerrit-scm:
-          jenkins-ssh-credential: '{jenkins-ssh-credential}'
-          git-url: '{git-url}'
-          refspec: '$GERRIT_BRANCH'
-          branch: '$GERRIT_BRANCH'
-          submodule-recursive: '{submodule-recursive}'
-          submodule-timeout: '{submodule-timeout}'
-          submodule-disable: '{submodule-disable}'
-          choosing-strategy: default
-
-    triggers:
-      - gerrit-trigger-helm-patch-submitted:
-          status-context: '{project}-Helm-Verify'
-          server: '{server-name}'
-          project: '{project}'
-          branch: '{branch}'
-          files: '{files}'
-
-    builders:
-      - lf-infra-pre-build
-      - inject:
-          properties-content: 'HELM_MODULE={helm-module}'
-      - shell: !include-raw-escape: shell/apply-submodule-patch-oom.sh
-      - shell: |
-          echo "export HELM_BIN=helm3.6" > helm.prop
-      - shell: '{obj:pre_build_script}'
-      - shell: '{obj:build_script}'
-
-- job-template:
-    name: '{project-name}-{stream}-merge-external-helm'
-    # Job template for Helm merge jobs
-
-    <<: *helm_job_boiler_plate
-
-    parameters:
-      - lf-infra-parameters:
-          branch: '{branch}'
-          project: 'oom'
-          stream: '{stream}'
-          lftools-version: '{lftools-version}'
-
-    scm:
-      - lf-infra-gerrit-scm:
-          jenkins-ssh-credential: '{jenkins-ssh-credential}'
-          git-url: '{git-url}'
-          refspec: '$GERRIT_BRANCH'
-          branch: '$GERRIT_BRANCH'
-          submodule-recursive: '{submodule-recursive}'
-          submodule-timeout: '{submodule-timeout}'
-          submodule-disable: '{submodule-disable}'
-          choosing-strategy: default
-
-    triggers:
-      - gerrit-trigger-helm-patch-merged:
-          server: '{server-name}'
-          project: '{project}'
-          branch: '{branch}'
-          files: '{files}'
-
-    builders:
-      - lf-infra-pre-build
-      - inject:
-          properties-content: 'HELM_MODULE={helm-module}'
-      - lf-provide-maven-settings:
-          global-settings-file: 'global-settings'
-          settings-file: '{mvn-settings}'
-      - shell: |
-          echo "export HELM_BIN=helm3.6" > helm.prop
+          echo "export HELM_BIN={helm_bin}" > helm.prop
       - shell: '{obj:pre_build_script}'
       - shell: '{obj:build_script}'
       - oom-create-netrc:
 
     triggers:
       - gerrit:
+          helm_bin: '{helm_bin}'
           server-name: '{gerrit-server-name}'
           trigger-on:
             - comment-added-contains-event:
           global-settings-file: '{mvn-global-settings}'
           settings-file: '{mvn-settings}'
       - shell: |
-          echo "export HELM_BIN=helm3.6" > helm.prop
+          echo "export HELM_BIN={helm_bin}" > helm.prop
       - shell: '{obj:pre_build_script}'
       - shell: '{obj:build_script}'
       - oom-create-netrc:
             BUILD_TYPE=release
       - shell: '{obj:post_build_script}'
       - lf-provide-maven-settings-cleanup
-
-- job-template:
-    name: '{project-name}-{subproject}-{stream}-verify-helm'
-    # Job template for helm verify jobs
-
-    <<: *helm_job_boiler_plate
-
-    disabled: true
-    builders:
-      - lf-infra-pre-build
-      - shell: |
-          echo "export HELM_BIN=helm3.6" > helm.prop
-      - shell: '{pre_build_script}'
-      - shell: '{build_script}'
-      - shell: '{post_build_script}'
-
-- job-template:
-    name: '{project-name}-{subproject}-{stream}-merge-helm'
-    # Job template for helm merge jobs
-
-    <<: *helm_job_boiler_plate
-
-    disabled: true
-    builders:
-      - lf-infra-pre-build
-      - shell: |
-          echo "export HELM_BIN=helm3.6" > helm.prop
-      - shell: '{pre_build_script}'
-      - shell: '{build_script}'
-      - inject:
-          properties-content: |
-            BUILD_TYPE=snapshot
-      - shell: '{post_build_script}'
-
-- job-template:
-    name: '{project-name}-{stream}-update-helm-weekly'
-    # Job template for weekly helm update jobs
-    #
-    # Required Variables:
-    #     branch:    git branch (eg. stable/lithium or master)
-    <<: *helm_job_boiler_plate
-
-    disabled: true
-    scm:
-      - lf-infra-gerrit-scm:
-          jenkins-ssh-credential: '{jenkins-ssh-credential}'
-          git-url: '$GIT_URL/$PROJECT'
-          refspec: '$GERRIT_REFSPEC'
-          branch: '$GERRIT_BRANCH'
-          submodule-recursive: true
-          submodule-timeout: '{submodule-timeout}'
-          submodule-disable: '{submodule-disable}'
-          choosing-strategy: default
-
-    builders:
-      - lf-infra-pre-build
-      - shell: |
-          echo "export HELM_BIN=helm3.6" > helm.prop
-      - shell: '{pre_build_script}'
-      - shell: '{build_script}'
-      - shell: '{post_build_script}'
-
-    triggers:
-      # 11 AM UTC
-      - timed: '@daily'
-      - gerrit-trigger-release-manually:
-          server: '{server-name}'
-          project: '{project}'
-          branch: '{branch}'
index 4cec290..c584552 100644 (file)
@@ -8,10 +8,8 @@
       stream:
           - "master":
                 branch: "master"
-          - "istanbul":
-                branch: "istanbul"
-          - "honolulu":
-                branch: "honolulu"
+          - "kohn":
+                branch: "kohn"
       functionality:
           - "certservice":
                 trigger_jobs:
index 249e16a..3fb2a4a 100644 (file)
           -   'master':
                   branch: 'master'
                   java-version: openjdk11
-          -   'istanbul':
-                  branch: 'istanbul'
-                  java-version: openjdk11
-          -   'honolulu':
-                  branch: 'honolulu'
+          -   'kohn':
+                  branch: 'kohn'
                   java-version: openjdk11
       project: 'oom/platform/cert-service'
       mvn-settings: 'oom-platform-cert-service-settings'
diff --git a/jjb/oom-platform-keycloak/oom-platform-keycloak.yaml b/jjb/oom-platform-keycloak/oom-platform-keycloak.yaml
deleted file mode 100644 (file)
index 308dd5b..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
----
-- project:
-    name: oom-platform-keycloak-project-view
-    project-name: oom-platform-keycloak
-    views:
-      - project-view
-
-- project:
-    name: oom-platform-keycloak-info
-    project: oom/platform/keycloak
-    project-name: oom-platform-keycloak
-    build-node: centos7-builder-2c-1g
-    jobs:
-      - gerrit-info-yaml-verify
index 0c9b885..be47867 100644 (file)
@@ -8,8 +8,8 @@
     stream:
       - 'master':
           branch: 'master'
-      - 'jakarta':
-          branch: 'jakarta'
+      - 'kohn':
+          branch: 'kohn'
 
     jobs:
       - '{project-name}-{stream}-review':
@@ -39,8 +39,8 @@
       stream:
           - 'master':
                 branch: 'master'
-          - 'jakarta':
-                branch: 'jakarta'
+          - 'kohn':
+                branch: 'kohn'
 
 - project:
       name: offline-installer-pytest
@@ -58,5 +58,5 @@
       stream:
           - 'master':
                 branch: 'master'
-          - 'jakarta':
-                branch: 'jakarta'
+          - 'kohn':
+                branch: 'kohn'
index 2d06faa..40eca91 100644 (file)
     stream:
       - "master":
           branch: "master"
+      - "kohn":
+          branch: "kohn"
       - "jakarta":
           branch: "jakarta"
-      - "istanbul":
-          branch: "istanbul"
-
 
     helm_bin:
       - helm3.8
 
-    exclude: []
-    subproject: []
-
     jobs:
       - "{project-name}-{stream}-image-verify":
           files: "**"
       - "{project-name}-{stream}-merge-helm":
           build_script: "{oom_build_script}"
           post_build_script: !include-raw-escape: shell/publish_helm_charts.sh
-          files: "**"
+          files: "kubernetes/**"
           build-timeout: 900
       - "{project-name}-{stream}-release-helm":
           build_script: "{oom_build_script_skip_lint}"
           post_build_script: !include-raw-escape: shell/publish_helm_charts.sh
-          files: "**"
+          files: "kubernetes/**"
           build-timeout: 900
index b6653d4..0f49ead 100644 (file)
@@ -30,7 +30,7 @@
     stream:
       - "master":
           branch: "master"
-      - "istanbul":
-          branch: "istanbul"
+      - "kohn":
+          branch: "kohn"
       - "jakarta":
           branch: "jakarta"
index 5a8257b..de93089 100644 (file)
@@ -31,8 +31,6 @@
       stream:
           - 'master':
                 branch: 'master'
-          - 'jakarta':
-                branch: 'jakarta'
 
 - project:
     name: oom-readiness-release
index d3ab71b..7173e98 100644 (file)
@@ -6,8 +6,7 @@
   become_method: sudo
 
   vars:
-    kubectl_version: 1.23.7
-    helm3_6_version: 3.6.3
+    kubectl_version: 1.23.8
     helm3_8_version: 3.8.2
     chartmuseum_version: 0.12.0
 
         mode: 0775
       become: yes
 
-    - name: 'Install Helm3.6 {{helm3_6_version}}'
-      block:
-        - name: 'Create directory /tmp/helm3.6'
-          file:
-            path: /tmp/helm3.6
-            state: directory
-        - name: 'Fetch tar.gz for Helm 3.6'
-          get_url:
-            url: "https://get.helm.sh/helm-v{{helm3_6_version}}-linux-amd64.tar.gz"
-            dest: /tmp/helm3.6
-        - name: 'Unarchive Helm 3.6'
-          unarchive:
-            src: "/tmp/helm3.6/helm-v{{helm3_6_version}}-linux-amd64.tar.gz"
-            dest: /tmp/helm3.6
-            remote_src: true
-          become: yes
-        - name: 'Move Helm 3.6 bin to /usr/local/bin and set as executable'
-          command: 'mv /tmp/helm3.6/linux-amd64/helm /usr/local/bin/helm3.6'
-          become: yes
-        - name: 'Check Helm 3.6'
-          command: 'which helm3.6'
-        - name: 'Check kubectl {{kubectl_version}}'
-          command: 'which kubectl'
-
-        - name: 'Install Helm 3.6'
-          shell: |
-             echo "----> Installing helm3.6"
-             wget 'https://get.helm.sh/helm-v{{helm3_6_version}}-linux-amd64.tar.gz'
-             tar -xvf 'https://get.helm.sh/helm-v{{helm3_6_version}}-linux-amd64.tar.gz'
-             mv linux-amd64/helm /usr/local/bin/helm3.6
-             which helm3.6
-          become: true
-
     - name: 'Install Helm3.8 {{helm3_8_version}}'
       block:
         - name: 'Create directory /tmp/helm3.8'
index 3228aa3..953abb8 100755 (executable)
@@ -6,6 +6,6 @@ mkdir -p ".chartstorage"
 
 chartmuseum --port=6464 --storage="local" --storage-local-rootdir=".chartstorage" &> /dev/null &
 source helm.prop
-$HELM_BIN plugin install --version v0.10.2 https://github.com/chartmuseum/helm-push.git || true
+$HELM_BIN plugin install --version v0.10.3 https://github.com/chartmuseum/helm-push.git || true
 $HELM_BIN repo add local http://localhost:6464
 $HELM_BIN repo add onap http://localhost:6464