You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@isis.apache.org by da...@apache.org on 2020/11/01 15:23:23 UTC
[isis] branch master updated: ISIS-2457: tidies up move to
nexus.incode.work (from GCP-based repo.incode.work)
This is an automated email from the ASF dual-hosted git repository.
danhaywood pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/isis.git
The following commit(s) were added to refs/heads/master by this push:
new 0a37400 ISIS-2457: tidies up move to nexus.incode.work (from GCP-based repo.incode.work)
0a37400 is described below
commit 0a374001965fc18c777d61bc86a54b465ff1bf3e
Author: danhaywood <da...@haywood-associates.co.uk>
AuthorDate: Sun Nov 1 15:23:05 2020 +0000
ISIS-2457: tidies up move to nexus.incode.work (from GCP-based repo.incode.work)
---
.gitlab-ci.yml | 15 ---------------
.m2/settings.xml | 12 +++---------
scripts/ci/_print-environment.sh | 3 ---
scripts/ci/build-artifacts.sh | 30 ++++++++++--------------------
scripts/ci/core-gitlab-ci.yml | 33 ---------------------------------
scripts/ci/dry-run.sh | 1 -
6 files changed, 13 insertions(+), 81 deletions(-)
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
deleted file mode 100644
index 5804ce9..0000000
--- a/.gitlab-ci.yml
+++ /dev/null
@@ -1,15 +0,0 @@
-image: maven:3.6.2-jdk-11
-
-stages:
- - build-package-push
-
-variables:
- BASELINE: 2.0.0-M2
-
-include:
- - local: scripts/ci/core-gitlab-ci.yml
-
-before_script:
- - export PROJECT_ROOT_PATH=$CI_PROJECT_DIR
- - export CI_SCRIPTS_PATH=$PROJECT_ROOT_PATH/scripts/ci
-
\ No newline at end of file
diff --git a/.m2/settings.xml b/.m2/settings.xml
index 40d1a2e..c0f043c 100644
--- a/.m2/settings.xml
+++ b/.m2/settings.xml
@@ -16,15 +16,9 @@
<servers>
<server>
- <id>gcpappenginerepo</id>
- <username>${env.GCPAPPENGINEREPO_USERNAME}</username>
- <password>${env.GCPAPPENGINEREPO_PASSWORD}</password>
- </server>
-
- <server>
- <id>nexusincodework</id>
- <username>${env.NEXUSINCODEWORK_USERNAME}</username>
- <password>${env.NEXUSINCODEWORK_PASSWORD}</password>
+ <id>nexus_incode_work</id>
+ <username>${env.NEXUS_INCODE_WORK_USERNAME}</username>
+ <password>${env.NEXUS_INCODE_WORK_PASSWORD}</password>
</server>
<server>
diff --git a/scripts/ci/_print-environment.sh b/scripts/ci/_print-environment.sh
index edb0b34..e6580ec 100644
--- a/scripts/ci/_print-environment.sh
+++ b/scripts/ci/_print-environment.sh
@@ -28,9 +28,6 @@ echo "\$NIGHTLY_ROOT_PATH = ${NIGHTLY_ROOT_PATH}"
echo "- Github:"
echo "\$GH_DEPLOY_OWNER = ${GH_DEPLOY_OWNER}"
echo "\$GITHUB_REPOSITORY = ${GITHUB_REPOSITORY}"
-echo "- GCP App Engine Repo:"
-echo "\$GCPAPPENGINEREPO_USERNAME = ${GCPAPPENGINEREPO_USERNAME}"
-echo "\$GCPAPPENGINEREPO_PASSWORD = (suppressed)"
echo "- nexus.incode.work Repo:"
echo "\$NEXUS_INCODE_WORK_USERNAME = ${NEXUS_INCODE_WORK_USERNAME}"
echo "\$NEXUS_INCODE_WORK_PASSWORD = (suppressed)"
diff --git a/scripts/ci/build-artifacts.sh b/scripts/ci/build-artifacts.sh
index 8f9ccbf..d8c68de 100644
--- a/scripts/ci/build-artifacts.sh
+++ b/scripts/ci/build-artifacts.sh
@@ -61,22 +61,17 @@ function buildDependency() {
| fgrep --line-buffered -v "Downloaded from central" \
| fgrep --line-buffered -v "Downloading from DataNucleus_2" \
| fgrep --line-buffered -v "Downloaded from DataNucleus_2" \
- | fgrep --line-buffered -v "Uploading from gcpappenginerepo" \
- | fgrep --line-buffered -v "Uploaded from gcpappenginerepo" \
- | fgrep --line-buffered -v "Downloading from gcpappenginerepo" \
- | fgrep --line-buffered -v "Downloaded from gcpappenginerepo" \
- | fgrep --line-buffered -v "Uploading from nexusincodework" \
- | fgrep --line-buffered -v "Uploaded from nexusincodework" \
- | fgrep --line-buffered -v "Downloading from nexusincodework" \
- | fgrep --line-buffered -v "Downloaded from nexusincodework" \
+ | fgrep --line-buffered -v "Uploading from nexus_incode_work" \
+ | fgrep --line-buffered -v "Uploaded from nexus_incode_work" \
+ | fgrep --line-buffered -v "Downloading from nexus_incode_work" \
+ | fgrep --line-buffered -v "Downloaded from nexus_incode_work" \
| fgrep --line-buffered -v "[INFO] --- maven-enforcer-plugin" \
| fgrep --line-buffered -v "[INFO] --- maven-site-plugin" \
| fgrep --line-buffered -v "[INFO] <<< maven-source-plugin:" \
| fgrep --line-buffered -v "[INFO] >>> maven-source-plugin" \
| fgrep --line-buffered -v "[INFO] Installing" \
| fgrep --line-buffered -v "[INFO] Copying" \
- | fgrep --line-buffered -v "[INFO] Using alternate deployment repository gcpappenginerepo" \
- | fgrep --line-buffered -v "[INFO] Using alternate deployment repository nexusincodework" \
+ | fgrep --line-buffered -v "[INFO] Using alternate deployment repository nexus_incode_work" \
| fgrep --line-buffered -v "[INFO] No site descriptor found: nothing to attach." \
| fgrep --line-buffered -v "[INFO] Skipping because packaging 'jar' is not pom."
}
@@ -158,22 +153,17 @@ mvn -s $SETTINGS_XML \
| fgrep --line-buffered -v "Downloaded from central" \
| fgrep --line-buffered -v "Downloading from DataNucleus_2" \
| fgrep --line-buffered -v "Downloaded from DataNucleus_2" \
- | fgrep --line-buffered -v "Uploading from gcpappenginerepo" \
- | fgrep --line-buffered -v "Uploaded from gcpappenginerepo" \
- | fgrep --line-buffered -v "Downloading from gcpappenginerepo" \
- | fgrep --line-buffered -v "Downloaded from gcpappenginerepo" \
- | fgrep --line-buffered -v "Uploading from nexusincodework" \
- | fgrep --line-buffered -v "Uploaded from nexusincodework" \
- | fgrep --line-buffered -v "Downloading from nexusincodework" \
- | fgrep --line-buffered -v "Downloaded from nexusincodework" \
+ | fgrep --line-buffered -v "Uploading from nexus_incode_work" \
+ | fgrep --line-buffered -v "Uploaded from nexus_incode_work" \
+ | fgrep --line-buffered -v "Downloading from nexus_incode_work" \
+ | fgrep --line-buffered -v "Downloaded from nexus_incode_work" \
| fgrep --line-buffered -v "[INFO] --- maven-enforcer-plugin" \
| fgrep --line-buffered -v "[INFO] --- maven-site-plugin" \
| fgrep --line-buffered -v "[INFO] <<< maven-source-plugin:" \
| fgrep --line-buffered -v "[INFO] >>> maven-source-plugin" \
| fgrep --line-buffered -v "[INFO] Installing" \
| fgrep --line-buffered -v "[INFO] Copying" \
- | fgrep --line-buffered -v "[INFO] Using alternate deployment repository gcpappenginerepo" \
- | fgrep --line-buffered -v "[INFO] Using alternate deployment repository nexusincodework" \
+ | fgrep --line-buffered -v "[INFO] Using alternate deployment repository nexus_incode_work" \
| fgrep --line-buffered -v "[INFO] No site descriptor found: nothing to attach." \
| fgrep --line-buffered -v "[INFO] Skipping because packaging 'jar' is not pom."
diff --git a/scripts/ci/core-gitlab-ci.yml b/scripts/ci/core-gitlab-ci.yml
deleted file mode 100644
index 34e0b0f..0000000
--- a/scripts/ci/core-gitlab-ci.yml
+++ /dev/null
@@ -1,33 +0,0 @@
-#
-# This script:
-#
-# - builds interim of isis
-# - pushes to repo.incode.cloud
-# - builds demo-app, simple-app, helloworld
-# - pushes demo-app image to hub.docker.com
-#
-# It requires the following gitlab secret variables
-#
-# - GCPAPPENGINEREPO_USERNAME
-# - GCPAPPENGINEREPO_PASSWORD
-# - GCPAPPENGINEREPO_URL
-#
-# - NEXUSINCODEWORK_USERNAME
-# - NEXUSINCODEWORK_PASSWORD
-# - NEXUSINCODEWORK_URL
-#
-# - DOCKER_REGISTRY_USERNAME # eg "apacheisiscommitters" (needs to be in the ORG_NAME)
-# - DOCKER_REGISTRY_PASSWORD
-
-
-build all:
- stage: build-package-push
- variables:
- SHARED_VARS_FILE: /builds/apache-isis-committers/apache-isis/ci-env.txt
- MVN_STAGES: deploy
- MVN_ADDITIONAL_OPTS: '-DaltReleaseDeploymentRepository=nexusincodework::default::https://nexus.incode.work/repository/nightly-builds/'
- script:
- # parent and mixins are built first because core (which includes extensions) depend upon them.
- - echo "REVISION=$BASELINE.$(date +%Y%m%d)-$(date +%H%M)-$(echo $CI_COMMIT_SHA | cut -c1-8)" > $SHARED_VARS_FILE
- - sh $CI_SCRIPTS_PATH/build-artifacts.sh
- - sh $CI_SCRIPTS_PATH/build-docker-images.sh
diff --git a/scripts/ci/dry-run.sh b/scripts/ci/dry-run.sh
index ea4319b..4c0a9d3 100644
--- a/scripts/ci/dry-run.sh
+++ b/scripts/ci/dry-run.sh
@@ -21,7 +21,6 @@
set -e
export BASELINE=2.0.0-M2
-export GCPAPPENGINEREPO_URL=https://repo.incode.work
export NEXUSINCODEWORK_URL=https://nexus.incode.work
export SHARED_VARS_FILE=~/ci-env.txt