streampipes-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From zehn...@apache.org
Subject [incubator-streampipes] 18/25: Update CI file
Date Tue, 17 Dec 2019 09:48:19 GMT
This is an automated email from the ASF dual-hosted git repository.

zehnder pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/incubator-streampipes.git

commit 29e067830f1252f6ae08f18d2105a30b9b1b5344
Author: Dominik Riemer <riemer@fzi.de>
AuthorDate: Thu Dec 12 10:34:46 2019 +0100

    Update CI file
---
 .gitlab-ci.yml | 48 +++++++++++++++++++-----------------------------
 1 file changed, 19 insertions(+), 29 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 4b4775b..5dddd44 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -14,49 +14,39 @@
 # limitations under the License.
 
 variables:
-  REGISTRY_HOST: ipe-wim-gitlab.fzi.de:5000
+  REGISTRY_HOST: $REGISTRY_HOST
   IMAGE_NAME: $REGISTRY_HOST/$CI_PROJECT_PATH
   DOCKER_HUB_IMAGE_NAME: streampipes
   MAVEN_CLI_OPTS: -DskipTests --batch-mode --errors --fail-at-end --show-version -DinstallAtEnd=true
-DdeployAtEnd=true
-  HARBOR_REGISTRY_HOST: laus.fzi.de:8201
+  HARBOR_REGISTRY_HOST: $HARBOR_REGISTRY_HOST
   HARBOR_IMAGE_NAME: $HARBOR_REGISTRY_HOST/$CI_PROJECT_PATH
-  GIT_REPO_ORIGIN: ssh://git@ipe-wim-gitlab.fzi.de:2222
+  GIT_REPO_ORIGIN: $GIT_REPO_ORIGIN
   GIT_STRATEGY: clone
 
 
 stages:
-#  - build
   - github
+  - build
 
-#build:
-#  image: maven:3-jdk-8
-#  stage: build
-#  script:
-#    - echo "$GPG_PRIVATE_KEY" | gpg --batch --import --passphrase "$GPG_PASSPHRASE"
-#    - echo "$MAVEN_CREDENTIALS" > /root/.m2/settings.xml
-#    - mvn clean package javadoc:aggregate -U -DskipTests
-#    - export MVN_VERSION=$(mvn org.apache.maven.plugins:maven-help-plugin:2.1.1:evaluate
-Dexpression=project.version | grep -v '\[')
-#    - "echo $MVN_VERSION >> ./target/mvn_version"
-#  artifacts:
-#    paths:
-#      - ./*/target/*.jar
-#      - ./target/mvn_version
-#    expire_in:  1 hour
-#  except:
-#      - /release-.*$/
 
-
-github:
+pull github:
   image: maven:3-jdk-8
   stage: github
   script:
+    - git remote set-url origin $GIT_REPO_ORIGIN/$CI_PROJECT_NAMESPACE/$CI_PROJECT_NAME.git
+    - git remote add github https://github.com/apache/incubator-streampipes-examples.git
+    - eval $(ssh-agent -s)
+    - ssh-add <(echo "$SSH")
+    - mkdir ~/.ssh
+    - touch ~/.ssh/known_hosts
+    - ssh-keyscan -p 2222 -t rsa ipe-wim-gitlab.fzi.de > ~/.ssh/known_hosts
     - git config --global user.email 'zehnder@fzi.de'
     - git config --global user.name 'zehnder'
-    - git checkout $CI_COMMIT_REF_NAME
-    - git pull
-    - git remote add github https://$GITHUB_TOKEN:x-oauth-basic@github.com/streampipes/streampipes-pipeline-elements-examples.git
-    - git push github $CI_COMMIT_REF_NAME
-  only:
-    - dev
-    - master
+    - git pull github --all
+    - git push origin --all
 
+build:
+  image: maven:3-jdk-8
+  stage: build
+  script:
+    - mvn clean package javadoc:aggregate -U -DskipTests


Mime
View raw message