Commit ddd2dc2e authored by Pietro Braghieri's avatar Pietro Braghieri

remove SDE string from distribution url

parent 321ceb44
......@@ -16,7 +16,7 @@ variables:
SKIP_DEPENDENCIES: "false"
AUTO_DEPLOY_TO_PRODUCTION: "false"
MAVEN_LOCAL_DISTRIBUTION_REPOSITORY_DIR: "/tmp/maven_repository"
MAVEN_LOCAL_DISTRIBUTION_REPOSITORY_PRJ_DIR: "$MAVEN_LOCAL_DISTRIBUTION_REPOSITORY_DIR/SDE"
stages:
- test
......@@ -28,10 +28,10 @@ maven_build_and_test:
stage: test
environment: staging
variables:
MAVEN_LOCAL_DISTRIBUTION_REPOSITORY_URL: "file://$MAVEN_LOCAL_DISTRIBUTION_REPOSITORY_DIR"
MAVEN_LOCAL_DISTRIBUTION_PRJ_REPOSITORY_URL: "file://$MAVEN_LOCAL_DISTRIBUTION_REPOSITORY_PRJ_DIR"
script:
- mkdir -p MAVEN_LOCAL_DISTRIBUTION_REPOSITORY_DIR
- "export DISPLAY=:0.0; mvn $MAVEN_CLI_OPTS -P Neon-Java8,DevelopmentUpdateSite,CI_Execution -Ddistribution.repository=$MAVEN_LOCAL_DISTRIBUTION_REPOSITORY_URL clean deploy"
- "export DISPLAY=:0.0; mvn $MAVEN_CLI_OPTS -P Neon-Java8,DevelopmentUpdateSite,CI_Execution -Ddistribution.repository=$MAVEN_LOCAL_DISTRIBUTION_PRJ_REPOSITORY_URL clean deploy"
only:
- master
......@@ -43,7 +43,7 @@ maven_build_and_test:
UPDATE_SITE_MOUNT_DIR: "/tmp/www_ci"
UPDATE_SITE_PROD_TARGET_DIR: "html/tools/aida_sde"
REPOSITORY_TO_COPY: "eu.fbk.tools.aida.sde.repository/target/repository"
MAVEN_REPOSITORY_DIR: "html/tools/maven_repository/SDE"
MAVEN_REPOSITORY_PRJ_DIR: "html/tools/maven_repository/SDE"
stage: deploy
environment: staging
......@@ -54,7 +54,7 @@ maven_build_and_test:
- mkdir -p $UPDATE_SITE_MOUNT_DIR/$UPDATE_SITE_PROD_TARGET_DIR
- cp -r ${REPOSITORY_TO_COPY}/* $UPDATE_SITE_MOUNT_DIR/$UPDATE_SITE_PROD_TARGET_DIR
- chmod -R 0777 $UPDATE_SITE_MOUNT_DIR/$UPDATE_SITE_PROD_TARGET_DIR
- cp -r ${MAVEN_LOCAL_DISTRIBUTION_REPOSITORY_DIR}/* $UPDATE_SITE_MOUNT_DIR/$MAVEN_REPOSITORY_DIR
- cp -r ${MAVEN_LOCAL_DISTRIBUTION_REPOSITORY_DIR}/* $UPDATE_SITE_MOUNT_DIR/$MAVEN_REPOSITORY_PRJ_DIR
- fusermount -uz $UPDATE_SITE_MOUNT_DIR
only:
refs:
......@@ -72,4 +72,4 @@ manual_to_production_update_site:
only:
variables:
- $AUTO_DEPLOY_TO_PRODUCTION == "false"
\ No newline at end of file
......@@ -14,7 +14,7 @@
<repository>
<id>SDE</id>
<name>SDE</name>
<url>${distribution.repository}/SDE</url>
<url>${distribution.repository}</url>
</repository>
</distributionManagement>
......
......@@ -25,7 +25,7 @@
<repository>
<id>SDE</id>
<name>SDE</name>
<url>${distribution.repository}/SDE</url>
<url>${distribution.repository}</url>
</repository>
</distributionManagement>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment