--- /dev/null
+---
+# ============LICENSE_START=======================================================
+# Copyright (C) 2020 Nordix Foundation.
+# ================================================================================
+# 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=========================================================
+
+- project:
+ name: eiffel-gerrit-herald
+
+ project: eiffel-gerrit-herald
+
+ project-name: eiffel-gerrit-herald
+
+
+ stream:
+ - 'master':
+ branch: 'master'
+ project-build-root: './'
+
+ distro: ubuntu2004
+
+ jobs:
+ - '{project-name}-build-{distro}-{stream}-periodic'
+
+# vim: set ts=2 sw=2 expandtab:
--- /dev/null
+---
+# ============LICENSE_START=======================================================
+# Copyright (C) 2020 Nordix Foundation.
+# ================================================================================
+# 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=========================================================
+
+- project:
+ name: eiffel-intelligence-frontend
+
+ project: eiffel-intelligence-frontend
+
+ project-name: eiffel-intelligence-frontend
+
+
+ stream:
+ - 'master':
+ branch: 'master'
+ project-build-root: 'src/main/docker'
+
+ distro: ubuntu2004
+
+ jobs:
+ - '{project-name}-build-{distro}-{stream}-periodic'
+
+# vim: set ts=2 sw=2 expandtab:
--- /dev/null
+---
+# ============LICENSE_START=======================================================
+# Copyright (C) 2020 Nordix Foundation.
+# ================================================================================
+# 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=========================================================
+
+- project:
+ name: eiffel-intelligence
+
+ project: eiffel-intelligence
+
+ project-name: eiffel-intelligence
+
+
+ stream:
+ - 'master':
+ branch: 'master'
+ project-build-root: 'src/main/docker'
+
+ distro: ubuntu2004
+
+ jobs:
+ - '{project-name}-build-{distro}-{stream}-periodic'
+
+# vim: set ts=2 sw=2 expandtab:
project-name: eiffel-playground
- project-build-root: './'
stream:
- 'master':
branch: 'master'
+ project-build-root: './'
distro: ubuntu2004
--- /dev/null
+---
+# ============LICENSE_START=======================================================
+# Copyright (C) 2020 Nordix Foundation.
+# ================================================================================
+# 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=========================================================
+
+- project:
+ name: eiffel-remrem-generate
+
+ project: eiffel-remrem-generate
+
+ project-name: eiffel-remrem-generate
+
+
+ stream:
+ - 'master':
+ branch: 'master'
+ project-build-root: 'service/src/main/docker'
+
+ distro: ubuntu2004
+
+ jobs:
+ - '{project-name}-build-{distro}-{stream}-periodic'
+
+# vim: set ts=2 sw=2 expandtab:
--- /dev/null
+---
+# ============LICENSE_START=======================================================
+# Copyright (C) 2020 Nordix Foundation.
+# ================================================================================
+# 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=========================================================
+
+- project:
+ name: eiffel-remrem-publish
+
+ project: eiffel-remrem-publish
+
+ project-name: eiffel-remrem-publish
+
+
+ stream:
+ - 'master':
+ branch: 'master'
+ project-build-root: 'publish-service/src/main/docker'
+
+ distro: ubuntu2004
+
+ jobs:
+ - '{project-name}-build-{distro}-{stream}-periodic'
+
+# vim: set ts=2 sw=2 expandtab:
- project-parameters:
project: '{project}'
branch: '{branch}'
- - eiffel-parameters
+ - string:
+ 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: PROJECT_BUILD_ROOT
+ default: '{project-build-root}'
+ description: Dockerfiles are located in different paths so this sets the path to navigate in the clone.
+ - choice:
+ name: HARBOR_EIFFEL_PROJECT
+ choices:
+ - eiffel
+ - eiffel-playground
+ description: Project to push container images to. Default is eiffel. eiffel-playground is for development purposes.
+ - choice:
+ name: PODMAN_LOG_LEVEL
+ choices:
+ - error
+ - debug
+ - info
+ - warn
+ - fatal
+ - panic
+ description: Podman log level to use. Default is error.
+ - string:
+ name: NORDIX_REGISTRY
+ default: 'registry.nordix.org'
+ description: Nordix container image registry.
scm:
- - git-scm-github:
- branch: '$BRANCH'
+ - git:
+ url: 'https://github.com/eiffel-community/$PROJECT.git'
+ branches:
+ - '*/{branch}'
refspec: ''
- wipe_workspace: true
- clean_before: false
- base_dir: '$WORKSPACE'
+ timeout: 15
+ per-build-tag: false
+ skip-tag: true
+ shallow-clone: false
+ use-author: false
+ ignore-notify: false
+ wipe-workspace: true
+ prune: false
+ clean:
+ after: false
+ before: false
+ choosing-strategy: 'default'
+ basedir: '$WORKSPACE'
+
triggers:
- pollscm:
wrappers:
- build-timeout:
timeout: 10
+ - mask-passwords
+ - openstack:
+ single-use: True
builders:
- shell:
+++ /dev/null
----
-# common parameters for all eiffel projects
-- parameter:
- name: eiffel-parameters
- parameters:
- - string:
- 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: PROJECT_BUILD_ROOT
- default: '{project-build-root}'
- description: Dockerfiles are located in different paths so this sets the path to navigate in the clone.
- - choice:
- name: PODMAN_LOG_LEVEL
- choices:
- - error
- - debug
- - info
- - warn
- - fatal
- - panic
- default: info
- description: Podman log level to use. Default is error.
-
-# vim: set ts=2 sw=2 expandtab:
IMAGE_TAG="latest"
# set image name
-IMAGE_NAME="$NORDIX_REGISTRY/$PROJECT/$PROJECT:$IMAGE_TAG"
+IMAGE_NAME_TAG="$NORDIX_REGISTRY/$HARBOR_EIFFEL_PROJECT/$PROJECT:$IMAGE_TAG"
# set the build command so we can log it to console
PODMAN_BUILD_CMD="podman build --log-level $PODMAN_LOG_LEVEL --tag $IMAGE_NAME ."
echo "Info : Building the container image with the command"
echo " $PODMAN_BUILD_CMD"
echo "----------------------------------------------------------------"
-"$PODMAN_BUILD_CMD"
+$PODMAN_BUILD_CMD
echo "----------------------------------------------------------------"
echo "Info : Build successful! List of container images is"
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"
+podman push --log-level "$PODMAN_LOG_LEVEL" "$IMAGE_NAME_TAG"
podman logout --log-level "$PODMAN_LOG_LEVEL" "$NORDIX_REGISTRY"
echo "----------------------------------------------------------------"
echo "Info : Done!"