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
# 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
# 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
-#!/bin/bash
+#!/bin/bash -l
# SPDX-License-Identifier: EPL-1.0
##############################################################################
# Copyright (c) 2017 The Linux Foundation and others.
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
-#!/bin/bash
+#!/bin/bash -l
# SPDX-License-Identifier: EPL-1.0
##############################################################################
# Copyright (c) 2017 The Linux Foundation and others.
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