- 'master':
branch: 'master'
project-git-repo: '{project}'
- project-build-macro: 'eiffel-build-periodic-macro'
+ project-build-macro: 'eiffel-global-container-build-macro'
image-dockerfile: 'Dockerfile'
image-name: '{project}'
image-tag: 'dev'
distro: ubuntu2004
jobs:
- - '{project-name}-build-periodic-{distro}-{stream}'
+ - '{project-name}-build-merge-{distro}-{stream}'
# vim: set ts=2 sw=2 expandtab:
- 'master':
branch: 'master'
project-git-repo: '{project}'
- project-build-macro: 'eiffel-intelligence-frontend-build-periodic-macro'
+ project-build-macro: 'eiffel-intelligence-frontend-container-build-macro'
image-dockerfile: 'src/main/docker/Dockerfile'
image-name: '{project}'
image-tag: 'dev'
distro: ubuntu2004
jobs:
- - '{project-name}-build-periodic-{distro}-{stream}'
+ - '{project-name}-build-merge-{distro}-{stream}'
# vim: set ts=2 sw=2 expandtab:
- 'master':
branch: 'master'
project-git-repo: '{project}'
- project-build-macro: 'eiffel-intelligence-build-periodic-macro'
+ project-build-macro: 'eiffel-intelligence-container-build-macro'
image-dockerfile: 'src/main/docker/Dockerfile'
image-name: '{project}'
image-tag: 'dev'
distro: ubuntu2004
jobs:
- - '{project-name}-build-periodic-{distro}-{stream}'
+ - '{project-name}-build-merge-{distro}-{stream}'
# vim: set ts=2 sw=2 expandtab:
- 'master':
branch: 'master'
project-git-repo: '{project}'
- project-build-macro: 'eiffel-remrem-generate-build-periodic-macro'
+ project-build-macro: 'eiffel-remrem-generate-container-build-macro'
image-dockerfile: 'src/main/docker/Dockerfile'
image-name: '{project}'
image-tag: 'dev'
distro: ubuntu2004
jobs:
- - '{project-name}-build-periodic-{distro}-{stream}'
+ - '{project-name}-build-merge-{distro}-{stream}'
# vim: set ts=2 sw=2 expandtab:
- 'master':
branch: 'master'
project-git-repo: '{project}'
- project-build-macro: 'eiffel-remrem-publish-build-periodic-macro'
+ project-build-macro: 'eiffel-remrem-publish-container-build-macro'
image-dockerfile: 'src/main/docker/Dockerfile'
image-name: '{project}'
image-tag: 'dev'
distro: ubuntu2004
jobs:
- - '{project-name}-build-periodic-{distro}-{stream}'
+ - '{project-name}-build-merge-{distro}-{stream}'
# vim: set ts=2 sw=2 expandtab:
- 'master':
branch: 'master'
project-git-repo: '{project}'
- project-build-macro: 'eiffel-build-periodic-macro'
+ project-build-macro: 'eiffel-global-container-build-macro'
image-dockerfile: 'Dockerfile'
image-name: '{project}'
image-tag: 'dev'
distro: ubuntu2004
jobs:
- - '{project-name}-build-periodic-{distro}-{stream}'
+ - '{project-name}-build-merge-{distro}-{stream}'
# vim: set ts=2 sw=2 expandtab:
- 'master':
branch: 'master'
project-git-repo: 'etos-environment-provider'
- project-build-macro: 'eiffel-build-periodic-macro'
+ project-build-macro: 'eiffel-global-container-build-macro'
image-dockerfile: 'Dockerfile.workers'
image-name: '{project}'
image-tag: 'dev'
distro: ubuntu2004
jobs:
- - '{project-name}-build-periodic-{distro}-{stream}'
+ - '{project-name}-build-merge-{distro}-{stream}'
# vim: set ts=2 sw=2 expandtab:
- 'master':
branch: 'master'
project-git-repo: '{project}'
- project-build-macro: 'eiffel-build-periodic-macro'
+ project-build-macro: 'eiffel-global-container-build-macro'
image-dockerfile: 'Dockerfile'
image-name: '{project}'
image-tag: 'dev'
distro: ubuntu2004
jobs:
- - '{project-name}-build-periodic-{distro}-{stream}'
+ - '{project-name}-build-merge-{distro}-{stream}'
# vim: set ts=2 sw=2 expandtab:
- 'master':
branch: 'master'
project-git-repo: '{project}'
- project-build-macro: 'eiffel-build-periodic-macro'
+ project-build-macro: 'eiffel-global-container-build-macro'
image-dockerfile: 'Dockerfile'
image-name: '{project}'
image-tag: 'dev'
distro: ubuntu2004
jobs:
- - '{project-name}-build-periodic-{distro}-{stream}'
+ - '{project-name}-build-merge-{distro}-{stream}'
# vim: set ts=2 sw=2 expandtab:
- 'master':
branch: 'master'
project-git-repo: '{project}'
- project-build-macro: 'eiffel-build-periodic-macro'
+ project-build-macro: 'eiffel-global-container-build-macro'
image-dockerfile: 'Dockerfile'
image-name: '{project}'
image-tag: 'dev'
distro: ubuntu2004
jobs:
- - '{project-name}-build-periodic-{distro}-{stream}'
+ - '{project-name}-build-merge-{distro}-{stream}'
# vim: set ts=2 sw=2 expandtab:
- 'master':
branch: 'master'
project-git-repo: 'etos-test-runner-containers'
- project-build-macro: 'eiffel-build-periodic-macro'
+ project-build-macro: 'eiffel-global-container-build-macro'
image-dockerfile: 'base/Dockerfile'
image-name: 'etos-base-test-runner'
image-tag: 'dev'
- 'master':
branch: 'master'
project-git-repo: 'etos-test-runner-containers'
- project-build-macro: 'eiffel-build-periodic-macro'
+ project-build-macro: 'eiffel-global-container-build-macro'
image-dockerfile: 'go/Dockerfile'
image-name: 'etos-go-test-runner'
image-tag: 'dev'
- 'master':
branch: 'master'
project-git-repo: 'etos-test-runner-containers'
- project-build-macro: 'eiffel-build-periodic-macro'
+ project-build-macro: 'eiffel-global-container-build-macro'
image-dockerfile: 'python/Dockerfile'
image-name: 'etos-python-test-runner'
image-tag: 'dev'
- 'master':
branch: 'master'
project-git-repo: 'etos-test-runner-containers'
- project-build-macro: 'eiffel-build-periodic-macro'
+ project-build-macro: 'eiffel-global-container-build-macro'
image-dockerfile: 'rust/Dockerfile'
image-name: 'etos-rust-test-runner'
image-tag: 'dev'
properties:
- logrotate
- github:
- url: '$GIT_BASE_HTTPS/{project-git-repo}'
+ # NOTE (fdegir): url is hardcoded here since env vars in job properties
+ # do not seem to be resolved correctly, causing job no to function properly
+ url: 'https://github.com/eiffel-community/{project-git-repo}'
parameters:
- project-parameters:
name: GIT_BASE_HTTPS
default: https://github.com/eiffel-community
description: HTTPS URL of Project Repo on GitHub to clone repo.
- - string:
- name: GIT_BASE_SSH
- default: git@github.com:eiffel-community
- description: SSH URL of Project Repo on GitHub to clone repo.
- string:
name: IMAGE_DOCKERFILE
default: '{image-dockerfile}'
scm:
- git:
- url: '$GIT_BASE_HTTPS/{project-git-repo}.git'
+ url: 'https://github.com/eiffel-community/{project-git-repo}.git'
branches:
- '*/{branch}'
refspec: ''
- nordixinfra-harbor-creds-wrapper
- mask-passwords
- openstack:
- single-use: True
+ single-use: true
builders:
- '{project-build-macro}'
- shell:
!include-raw: ../scripts/eiffel-global-container-build.sh
-# NOTE (fdegir): below macros will potentially be removed or renamed
-# once the above macro is taken into use
- builder:
- name: 'eiffel-build-periodic-macro'
+ name: 'eiffel-intelligence-container-build-macro'
builders:
- shell:
- !include-raw: ../scripts/eiffel-build-periodic.sh
+ !include-raw: ../scripts/eiffel-intelligence-container-build.sh
- builder:
- name: 'eiffel-intelligence-build-periodic-macro'
+ name: 'eiffel-intelligence-frontend-container-build-macro'
builders:
- shell:
- !include-raw: ../scripts/eiffel-intelligence-build-periodic.sh
+ !include-raw: ../scripts/eiffel-intelligence-frontend-container-build.sh
- builder:
- name: 'eiffel-intelligence-frontend-build-periodic-macro'
+ name: 'eiffel-remrem-generate-container-build-macro'
builders:
- shell:
- !include-raw: ../scripts/eiffel-intelligence-frontend-build-periodic.sh
+ !include-raw: ../scripts/eiffel-remrem-generate-container-build.sh
- builder:
- name: 'eiffel-remrem-generate-build-periodic-macro'
+ name: 'eiffel-remrem-publish-container-build-macro'
builders:
- shell:
- !include-raw: ../scripts/eiffel-remrem-generate-build-periodic.sh
-
-- builder:
- name: 'eiffel-remrem-publish-build-periodic-macro'
- builders:
- - shell:
- !include-raw: ../scripts/eiffel-remrem-publish-build-periodic.sh
+ !include-raw: ../scripts/eiffel-remrem-publish-container-build.sh
# vim: set ts=2 sw=2 expandtab:
+++ /dev/null
-#!/bin/bash
-
-# ============LICENSE_START=======================================================
-# Copyright (C) 2020 The Nordix Foundation. All rights reserved.
-# ================================================================================
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-#
-# SPDX-License-Identifier: Apache-2.0
-# ============LICENSE_END=========================================================
-
-set -o errexit
-set -o pipefail
-set -o nounset
-
-# navigate to root of the git clone
-cd "$WORKSPACE"
-
-# the Dockerfile to use for building the container image
-IMAGE_DOCKERFILE="${IMAGE_DOCKERFILE:?IMAGE_DOCKERFILE is unset!}"
-
-# the name of the container image
-IMAGE_NAME="${IMAGE_NAME:?IMAGE_NAME is unset!}"
-
-# the tag to apply to the container image
-IMAGE_TAG="${IMAGE_TAG:-latest}"
-
-# set image name
-IMAGE_NAME_TAG="$NORDIX_REGISTRY/$HARBOR_EIFFEL_PROJECT/$IMAGE_NAME:$IMAGE_TAG"
-
-# set the build command so we can log it to console
-PODMAN_BUILD_CMD="podman build --file $IMAGE_DOCKERFILE --log-level $PODMAN_LOG_LEVEL --tag $IMAGE_NAME_TAG ."
-
-echo "Info : Building the container image with the command"
-echo " $PODMAN_BUILD_CMD"
-echo "----------------------------------------------------------------"
-$PODMAN_BUILD_CMD
-echo "----------------------------------------------------------------"
-echo "Info : Build successful! List of container images is"
-echo "----------------------------------------------------------------"
-podman images --log-level $PODMAN_LOG_LEVEL
-echo "----------------------------------------------------------------"
-echo "Info : Logging in to registry.nordix.org and pushing the image"
-echo "----------------------------------------------------------------"
-podman login --log-level "$PODMAN_LOG_LEVEL" "$NORDIX_REGISTRY" --username "$HARBOR_USERNAME" --password "$HARBOR_PASSWORD"
-podman push --log-level "$PODMAN_LOG_LEVEL" "$IMAGE_NAME_TAG"
-podman logout --log-level "$PODMAN_LOG_LEVEL" "$NORDIX_REGISTRY"
-echo "----------------------------------------------------------------"
-echo "Info : Done!"
-
-# vim: set ts=2 sw=2 expandtab: