From: Eric Ball Date: Tue, 25 Feb 2020 15:23:38 +0000 (+0000) Subject: Merge "iec: compass: Fix log permissions, curl redirect" X-Git-Url: https://gerrit.akraino.org/r/gitweb?p=ci-management.git;a=commitdiff_plain;h=e434136315b44d1c376ad81d5e97950e69ad22b3;hp=52b76e81ba1eaeacb7ee4c9d7307190568c7269d Merge "iec: compass: Fix log permissions, curl redirect" --- diff --git a/jjb/akraino-templates/akraino-jjb-templates.yaml b/jjb/akraino-templates/akraino-jjb-templates.yaml index 55d9c69..82d34dd 100644 --- a/jjb/akraino-templates/akraino-jjb-templates.yaml +++ b/jjb/akraino-templates/akraino-jjb-templates.yaml @@ -344,3 +344,61 @@ publishers: - lf-infra-publish + +- job-template: + id: akraino-project-build-node-init + name: '{project-name}-{build-node}-init' + disabled: '{obj:disabled}' + concurrent: true + + parameters: + - lf-infra-parameters: + project: '{project}' + stream: '{stream}' + branch: '{branch}' + - label: + name: '{build-node}' + default: '{build-node}' + node-eligibility: 'all' + all-nodes: true + + gerrit_merge_triggers: + - change-merged-event + - comment-added-contains-event: + comment-contains-value: remerge$ + + gerrit_trigger_file_paths: + - compare-type: REG_EXP + pattern: 'global-jjb' + + scm: + - lf-infra-gerrit-scm: + jenkins-ssh-credential: '{jenkins-ssh-credential}' + git-url: '{git-url}/{project}.git' + refspec: '' + branch: '{branch}' + submodule-recursive: true + submodule-timeout: '{submodule-timeout}' + submodule-disable: false + choosing-strategy: default + + triggers: + - gerrit: + server-name: '{gerrit-server-name}' + trigger-on: '{obj:gerrit_merge_triggers}' + projects: + - project-compare-type: ANT + project-pattern: '{project}' + branches: + - branch-compare-type: ANT + branch-pattern: '**/{branch}' + file-paths: '{obj:gerrit_trigger_file_paths}' + + builders: + - description-setter: + description: "POD: $NODE_NAME" + - shell: | + #!/bin/bash -ex + export SWAP_SIZE=0 + sudo -E ./global-jjb/jenkins-init-scripts/init.sh + sudo chown jenkins:jenkins -R archives diff --git a/jjb/akraino-templates/akraino-ta-common-macros.yaml b/jjb/akraino-templates/akraino-ta-common-macros.yaml index 782e6b8..1f6bcb3 100644 --- a/jjb/akraino-templates/akraino-ta-common-macros.yaml +++ b/jjb/akraino-templates/akraino-ta-common-macros.yaml @@ -201,6 +201,7 @@ # Ensure python-tools are installed in case job template does not # call the lf-infra-pre-build macro. - ../../global-jjb/shell/python-tools-install.sh + - shell: !include-raw: - ../shell/ta-rpm-deploy.sh - shell: !include-raw: - ../../global-jjb/shell/logs-clear-credentials.sh @@ -220,6 +221,7 @@ # Ensure python-tools are installed in case job template does not # call the lf-infra-pre-build macro. - ../../global-jjb/shell/python-tools-install.sh + - shell: !include-raw: - ../shell/ta-iso-deploy.sh - shell: !include-raw: - ../../global-jjb/shell/logs-clear-credentials.sh diff --git a/jjb/ci-management/static-slaves-ci-jobs.yaml b/jjb/ci-management/static-slaves-ci-jobs.yaml new file mode 100644 index 0000000..c07b550 --- /dev/null +++ b/jjb/ci-management/static-slaves-ci-jobs.yaml @@ -0,0 +1,16 @@ +--- +- project: + name: static-slaves-ci-jobs + + project: ci-management + project-name: ci-management + branch: master + stream: '{branch}' + + build-node: + - aarch64_dev + - aarch64_build + - aarch64_baremetal + + jobs: + - akraino-project-build-node-init diff --git a/jjb/shell/ta-iso-deploy.sh b/jjb/shell/ta-iso-deploy.sh index 1ec4731..705ac3c 100644 --- a/jjb/shell/ta-iso-deploy.sh +++ b/jjb/shell/ta-iso-deploy.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/bash -l # SPDX-License-Identifier: EPL-1.0 ############################################################################## # Copyright (c) 2017 The Linux Foundation and others. @@ -16,6 +16,8 @@ set -eu -o pipefail set -x # Trace commands for this script to make debugging easier. +set +f # Ensure filename expansion (globbing) is enabled + NEXUS_REPO=images-snapshots release_path=TA/release-1 diff --git a/jjb/shell/ta-rpm-deploy.sh b/jjb/shell/ta-rpm-deploy.sh index f0381e8..d742333 100644 --- a/jjb/shell/ta-rpm-deploy.sh +++ b/jjb/shell/ta-rpm-deploy.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/bash -l # SPDX-License-Identifier: EPL-1.0 ############################################################################## # Copyright (c) 2017 The Linux Foundation and others. @@ -16,6 +16,8 @@ set -eu -o pipefail set -x # Trace commands for this script to make debugging easier. +set +f # Ensure filename expansion (globbing) is enabled + NEXUS_REPO=rpm.snapshots release_path=TA/release-1