Commit 414ab4bc authored by Alicja Reniewicz's avatar Alicja Reniewicz
Browse files

fixes for builds order

parent 6d27c0c2
Pipeline #12082 failed
...@@ -76,8 +76,16 @@ after_script: ...@@ -76,8 +76,16 @@ after_script:
- docker image ls - docker image ls
- echo '==========================================================================' - echo '=========================================================================='
build:melodic-upperware: stages:
stage: build - build-basic-dependencies
- build-required-part1
- build-required-part2
- build-required-part3
- build
- deploy
build-basic-dependencies:melodic-upperware:
stage: build-basic-dependencies
image: $MAVEN_IMAGE image: $MAVEN_IMAGE
script: script:
- $MELODIC_UPPERWARE_CLI -Pwithout-docker clean install - $MELODIC_UPPERWARE_CLI -Pwithout-docker clean install
...@@ -85,8 +93,8 @@ build:melodic-upperware: ...@@ -85,8 +93,8 @@ build:melodic-upperware:
paths: paths:
- $CI_PROJECT_DIR/upperware/target - $CI_PROJECT_DIR/upperware/target
build:upperware-metamodel: build-required-part1:upperware-metamodel:
stage: build stage: build-required-part1
image: $MAVEN_IMAGE image: $MAVEN_IMAGE
script: script:
- $UPPERWARE_METAMODEL_CLI -Pwithout-docker clean install - $UPPERWARE_METAMODEL_CLI -Pwithout-docker clean install
...@@ -94,8 +102,8 @@ build:upperware-metamodel: ...@@ -94,8 +102,8 @@ build:upperware-metamodel:
paths: paths:
- $CI_PROJECT_DIR/upperware_metamodel/target - $CI_PROJECT_DIR/upperware_metamodel/target
build:jwt-commons: build-required-part2:jwt-commons:
stage: build stage: build-required-part2
image: $MAVEN_IMAGE image: $MAVEN_IMAGE
script: script:
- $JWT_COMMONS_CLI -Pwithout-docker clean install - $JWT_COMMONS_CLI -Pwithout-docker clean install
...@@ -103,8 +111,8 @@ build:jwt-commons: ...@@ -103,8 +111,8 @@ build:jwt-commons:
paths: paths:
- $CI_PROJECT_DIR/jwt-commons/target - $CI_PROJECT_DIR/jwt-commons/target
build:melodic-commons: build-required-part2:melodic-commons:
stage: build stage: build-required-part2
image: $MAVEN_IMAGE image: $MAVEN_IMAGE
script: script:
- $MELODIC_COMMONS_CLI -Pwithout-docker clean install - $MELODIC_COMMONS_CLI -Pwithout-docker clean install
...@@ -112,17 +120,17 @@ build:melodic-commons: ...@@ -112,17 +120,17 @@ build:melodic-commons:
paths: paths:
- $CI_PROJECT_DIR/melodic-commons/target - $CI_PROJECT_DIR/melodic-commons/target
build:melodic-cache: build-required-part3:zpp-solver:
stage: build stage: build-required-part3
image: $MAVEN_IMAGE image: $MAVEN_IMAGE
script: script:
- $MELODIC_CACHE_CLI -Pwithout-docker clean install - $ZPP_SOLVER_CLI -Pwithout-docker clean install
artifacts: artifacts:
paths: paths:
- $CI_PROJECT_DIR/melodic-cache/target - $CI_PROJECT_DIR/zpp-solver/target
build:dlms: build-required-part3:dlms:
stage: build stage: build-required-part3
image: $MAVEN_IMAGE image: $MAVEN_IMAGE
script: script:
- $DLMS_CLI -Pwithout-docker clean install - $DLMS_CLI -Pwithout-docker clean install
...@@ -130,68 +138,80 @@ build:dlms: ...@@ -130,68 +138,80 @@ build:dlms:
paths: paths:
- $CI_PROJECT_DIR/dlms/target - $CI_PROJECT_DIR/dlms/target
build:dlms-utility: build-required-part3:dlms-utility:
stage: build stage: build-required-part3
image: $MAVEN_IMAGE image: $MAVEN_IMAGE
needs:
- build-required-part3:dlms
script: script:
- $DLMS_UTILITY_CLI -Pwithout-docker clean install - $DLMS_UTILITY_CLI -Pwithout-docker clean install
artifacts: artifacts:
paths: paths:
- $CI_PROJECT_DIR/dlms/DLMSUtility/target - $CI_PROJECT_DIR/dlms/DLMSUtility/target
build:dlms-agent: build-required-part3:penalty-calculator:
stage: build stage: build-required-part3
image: $MAVEN_IMAGE image: $MAVEN_IMAGE
script: script:
- $DLMS_AGENT_CLI -Pwithout-docker clean install - $PENALTY_CALCULATOR_CLI -Pwithout-docker clean install
artifacts: artifacts:
paths: paths:
- $CI_PROJECT_DIR/dlmsAgent/target - $CI_PROJECT_DIR/penalty-calculator/target
build:penalty-calculator: build-required-part3:utility-generator:
stage: build stage: build-required-part3
image: $MAVEN_IMAGE image: $MAVEN_IMAGE
script: script:
- $PENALTY_CALCULATOR_CLI -Pwithout-docker clean install - $UTILITY_GENERATOR_CLI -Pwithout-docker clean install
artifacts: artifacts:
paths: paths:
- $CI_PROJECT_DIR/penalty-calculator/target - $CI_PROJECT_DIR/utility-generator/target
build:utility-generator: build-required-part3:ems:
stage: build stage: build-required-part3
image: $MAVEN_IMAGE image: $MAVEN_IMAGE
script: script:
- $UTILITY_GENERATOR_CLI -Pwithout-docker clean install - $EMS_CLI -Pwithout-docker clean install
artifacts: artifacts:
paths: paths:
- $CI_PROJECT_DIR/utility-generator/target - $CI_PROJECT_DIR/event-management/target
build:cp-solver: build:melodic-cache:
stage: build stage: build
image: $MAVEN_IMAGE image: $MAVEN_IMAGE
script: script:
- $CP_SOLVER_CLI -Pwithout-docker clean install - $MELODIC_CACHE_CLI -Pwithout-docker clean install
artifacts: artifacts:
paths: paths:
- $CI_PROJECT_DIR/cp-solver/target - $CI_PROJECT_DIR/melodic-cache/target
build:zpp-solver: build:dlms-agent:
stage: build stage: build
image: $MAVEN_IMAGE image: $MAVEN_IMAGE
script: script:
- $ZPP_SOLVER_CLI -Pwithout-docker clean install - $DLMS_AGENT_CLI -Pwithout-docker clean install
artifacts: artifacts:
paths: paths:
- $CI_PROJECT_DIR/zpp-solver/target - $CI_PROJECT_DIR/dlmsAgent/target
build:ems: build:cp-solver:
stage: build stage: build
image: $MAVEN_IMAGE image: $MAVEN_IMAGE
script: script:
- $EMS_CLI -Pwithout-docker clean install - $CP_SOLVER_CLI -Pwithout-docker clean install
artifacts: artifacts:
paths: paths:
- $CI_PROJECT_DIR/event-management/target - $CI_PROJECT_DIR/cp-solver/target
build:cp-parser:
stage: build
image: $DOCKER_DIND_IMAGE
services:
- $DOCKER_DIND_SERVICE
needs:
- build:cp-solver
script:
- $DOCKER_CLI $CP_PARSER_CLI -Pwithout-docker clean install
build:ems-util: build:ems-util:
stage: build stage: build
...@@ -205,6 +225,8 @@ build:ems-util: ...@@ -205,6 +225,8 @@ build:ems-util:
build:ems-broker-client: build:ems-broker-client:
stage: build stage: build
image: $MAVEN_IMAGE image: $MAVEN_IMAGE
needs:
- build:ems-util
script: script:
- $EMS_BROKER_CLIENT_CLI -Pwithout-docker clean install - $EMS_BROKER_CLIENT_CLI -Pwithout-docker clean install
artifacts: artifacts:
...@@ -214,6 +236,8 @@ build:ems-broker-client: ...@@ -214,6 +236,8 @@ build:ems-broker-client:
build:ems-broker-cep: build:ems-broker-cep:
stage: build stage: build
image: $MAVEN_IMAGE image: $MAVEN_IMAGE
needs:
- build:ems-broker-client
script: script:
- $EMS_BROKER_CEP_CLI -Pwithout-docker clean install - $EMS_BROKER_CEP_CLI -Pwithout-docker clean install
artifacts: artifacts:
...@@ -223,12 +247,16 @@ build:ems-broker-cep: ...@@ -223,12 +247,16 @@ build:ems-broker-cep:
build:ems-baguette-client: build:ems-baguette-client:
stage: build stage: build
image: $MAVEN_IMAGE image: $MAVEN_IMAGE
needs:
- build:ems-broker-cep
script: script:
- $EMS_BAGUETTE_CLIENT_CLI -Pwithout-docker clean install - $EMS_BAGUETTE_CLIENT_CLI -Pwithout-docker clean install
build:ems-baguette-server: build:ems-baguette-server:
stage: build stage: build
image: $MAVEN_IMAGE image: $MAVEN_IMAGE
needs:
- build:ems-broker-cep
script: script:
- $EMS_BAGUETTE_SERVER_CLI -Pwithout-docker clean install - $EMS_BAGUETTE_SERVER_CLI -Pwithout-docker clean install
artifacts: artifacts:
...@@ -238,6 +266,8 @@ build:ems-baguette-server: ...@@ -238,6 +266,8 @@ build:ems-baguette-server:
build:ems-baguette-client-install: build:ems-baguette-client-install:
stage: build stage: build
image: $MAVEN_IMAGE image: $MAVEN_IMAGE
needs:
- build:ems-baguette-client
script: script:
- $EMS_BAGUETTE_CLIENT_INSTALL_CLI -Pwithout-docker clean install - $EMS_BAGUETTE_CLIENT_INSTALL_CLI -Pwithout-docker clean install
artifacts: artifacts:
...@@ -247,6 +277,8 @@ build:ems-baguette-client-install: ...@@ -247,6 +277,8 @@ build:ems-baguette-client-install:
build:ems-translator: build:ems-translator:
stage: build stage: build
image: $MAVEN_IMAGE image: $MAVEN_IMAGE
needs:
- build:ems-baguette-server
script: script:
- $EMS_TRANSLATOR_CLI -Pwithout-docker clean install - $EMS_TRANSLATOR_CLI -Pwithout-docker clean install
artifacts: artifacts:
...@@ -256,6 +288,8 @@ build:ems-translator: ...@@ -256,6 +288,8 @@ build:ems-translator:
build:ems-server: build:ems-server:
stage: build stage: build
image: $MAVEN_IMAGE image: $MAVEN_IMAGE
needs:
- build:ems-translator
script: script:
- $EMS_SERVER_CLI -Pwithout-docker clean install - $EMS_SERVER_CLI -Pwithout-docker clean install
artifacts: artifacts:
...@@ -272,7 +306,7 @@ deploy:melodic-upperware: ...@@ -272,7 +306,7 @@ deploy:melodic-upperware:
services: services:
- $DOCKER_DIND_SERVICE - $DOCKER_DIND_SERVICE
dependencies: dependencies:
- build:melodic-upperware - build-basic-dependencies:melodic-upperware
script: script:
- $DOCKER_CLI $MELODIC_UPPERWARE_CLI deploy - $DOCKER_CLI $MELODIC_UPPERWARE_CLI deploy
...@@ -286,7 +320,7 @@ deploy:upperware-metamodel: ...@@ -286,7 +320,7 @@ deploy:upperware-metamodel:
services: services:
- $DOCKER_DIND_SERVICE - $DOCKER_DIND_SERVICE
dependencies: dependencies:
- build:upperware-metamodel - build-required-part1:upperware-metamodel
script: script:
- $DOCKER_CLI $UPPERWARE_METAMODEL_CLI deploy - $DOCKER_CLI $UPPERWARE_METAMODEL_CLI deploy
...@@ -300,7 +334,7 @@ deploy:jwt-commons: ...@@ -300,7 +334,7 @@ deploy:jwt-commons:
services: services:
- $DOCKER_DIND_SERVICE - $DOCKER_DIND_SERVICE
dependencies: dependencies:
- build:jwt-commons - build-required-part2:jwt-commons
script: script:
- $DOCKER_CLI $JWT_COMMONS_CLI deploy - $DOCKER_CLI $JWT_COMMONS_CLI deploy
...@@ -314,7 +348,7 @@ deploy:melodic-commons: ...@@ -314,7 +348,7 @@ deploy:melodic-commons:
services: services:
- $DOCKER_DIND_SERVICE - $DOCKER_DIND_SERVICE
dependencies: dependencies:
- build:melodic-commons - build-required-part2:melodic-commons
script: script:
- $DOCKER_CLI $MELODIC_COMMONS_CLI deploy - $DOCKER_CLI $MELODIC_COMMONS_CLI deploy
...@@ -342,7 +376,7 @@ deploy:dlms: ...@@ -342,7 +376,7 @@ deploy:dlms:
services: services:
- $DOCKER_DIND_SERVICE - $DOCKER_DIND_SERVICE
dependencies: dependencies:
- build:dlms - build-required-part3
script: script:
- $DOCKER_CLI $DLMS_CLI deploy - $DOCKER_CLI $DLMS_CLI deploy
...@@ -356,7 +390,7 @@ deploy:dlms-utility: ...@@ -356,7 +390,7 @@ deploy:dlms-utility:
services: services:
- $DOCKER_DIND_SERVICE - $DOCKER_DIND_SERVICE
dependencies: dependencies:
- build:dlms-utility - build-required-part3:dlms-utility
script: script:
- $DOCKER_CLI $DLMS_UTILITY_CLI deploy - $DOCKER_CLI $DLMS_UTILITY_CLI deploy
...@@ -400,7 +434,7 @@ deploy:penalty-calculator: ...@@ -400,7 +434,7 @@ deploy:penalty-calculator:
services: services:
- $DOCKER_DIND_SERVICE - $DOCKER_DIND_SERVICE
dependencies: dependencies:
- build:penalty-calculator - build-required-part3:penalty-calculator
script: script:
- $DOCKER_CLI $PENALTY_CALCULATOR_CLI deploy - $DOCKER_CLI $PENALTY_CALCULATOR_CLI deploy
...@@ -429,7 +463,7 @@ deploy:utility-generator: ...@@ -429,7 +463,7 @@ deploy:utility-generator:
services: services:
- $DOCKER_DIND_SERVICE - $DOCKER_DIND_SERVICE
dependencies: dependencies:
- build:utility-generator - build-required-part3:utility-generator
script: script:
- $DOCKER_CLI $UTILITY_GENERATOR_CLI deploy - $DOCKER_CLI $UTILITY_GENERATOR_CLI deploy
...@@ -443,7 +477,7 @@ deploy:zpp-solver: ...@@ -443,7 +477,7 @@ deploy:zpp-solver:
services: services:
- $DOCKER_DIND_SERVICE - $DOCKER_DIND_SERVICE
dependencies: dependencies:
- build:zpp-solver - build-required-part3:zpp-solver
script: script:
- $DOCKER_CLI $ZPP_SOLVER_CLI deploy - $DOCKER_CLI $ZPP_SOLVER_CLI deploy
...@@ -522,7 +556,7 @@ deploy:ems: ...@@ -522,7 +556,7 @@ deploy:ems:
services: services:
- $DOCKER_DIND_SERVICE - $DOCKER_DIND_SERVICE
dependencies: dependencies:
- build:ems - build-required-part3:ems
script: script:
- $DOCKER_CLI $EMS_CLI deploy - $DOCKER_CLI $EMS_CLI deploy
...@@ -649,7 +683,7 @@ deploy:cp-parser: ...@@ -649,7 +683,7 @@ deploy:cp-parser:
services: services:
- $DOCKER_DIND_SERVICE - $DOCKER_DIND_SERVICE
dependencies: dependencies:
- build:cp-solver - build:cp-parser
script: script:
- $DOCKER_CLI $CP_PARSER_CLI -Ddocker.imagePrefix=melodic/ clean install - $DOCKER_CLI $CP_PARSER_CLI -Ddocker.imagePrefix=melodic/ clean install
...@@ -664,7 +698,7 @@ deploy:gen-solver: ...@@ -664,7 +698,7 @@ deploy:gen-solver:
- $DOCKER_DIND_SERVICE - $DOCKER_DIND_SERVICE
dependencies: dependencies:
- build:cp-solver - build:cp-solver
- deploy:cp-parser - build:cp-parser
script: script:
- $DOCKER_CLI $GEN_SOLVER_CLI -Ddocker.imagePrefix=melodic/ clean install - $DOCKER_CLI $GEN_SOLVER_CLI -Ddocker.imagePrefix=melodic/ clean install
- echo "$K8S_SECRET_DOCKER_PASSWORD" | docker login $CI_REGISTRY -u $K8S_SECRET_DOCKER_USER --password-stdin - echo "$K8S_SECRET_DOCKER_PASSWORD" | docker login $CI_REGISTRY -u $K8S_SECRET_DOCKER_USER --password-stdin
...@@ -712,7 +746,7 @@ deploy:nc-solver: ...@@ -712,7 +746,7 @@ deploy:nc-solver:
- $DOCKER_DIND_SERVICE - $DOCKER_DIND_SERVICE
dependencies: dependencies:
- build:cp-solver - build:cp-solver
- deploy:cp-parser - build:cp-parser
script: script:
- $DOCKER_CLI $NC_SOLVER_CLI -Ddocker.imagePrefix=melodic/ clean install - $DOCKER_CLI $NC_SOLVER_CLI -Ddocker.imagePrefix=melodic/ clean install
- echo "$K8S_SECRET_DOCKER_PASSWORD" | docker login $CI_REGISTRY -u $K8S_SECRET_DOCKER_USER --password-stdin - echo "$K8S_SECRET_DOCKER_PASSWORD" | docker login $CI_REGISTRY -u $K8S_SECRET_DOCKER_USER --password-stdin
...@@ -730,7 +764,7 @@ deploy:pt-solver: ...@@ -730,7 +764,7 @@ deploy:pt-solver:
- $DOCKER_DIND_SERVICE - $DOCKER_DIND_SERVICE
dependencies: dependencies:
- build:cp-solver - build:cp-solver
- deploy:cp-parser - build:cp-parser
script: script:
- $DOCKER_CLI $PT_SOLVER_CLI -Ddocker.imagePrefix=melodic/ clean install - $DOCKER_CLI $PT_SOLVER_CLI -Ddocker.imagePrefix=melodic/ clean install
- echo "$K8S_SECRET_DOCKER_PASSWORD" | docker login $CI_REGISTRY -u $K8S_SECRET_DOCKER_USER --password-stdin - echo "$K8S_SECRET_DOCKER_PASSWORD" | docker login $CI_REGISTRY -u $K8S_SECRET_DOCKER_USER --password-stdin
...@@ -748,7 +782,7 @@ deploy:mcts-solver: ...@@ -748,7 +782,7 @@ deploy:mcts-solver:
- $DOCKER_DIND_SERVICE - $DOCKER_DIND_SERVICE
dependencies: dependencies:
- build:cp-solver - build:cp-solver
- deploy:cp-parser - build:cp-parser
script: script:
- $DOCKER_CLI $MCTS_SOLVER_CLI -Ddocker.imagePrefix=melodic/ clean install - $DOCKER_CLI $MCTS_SOLVER_CLI -Ddocker.imagePrefix=melodic/ clean install
- echo "$K8S_SECRET_DOCKER_PASSWORD" | docker login $CI_REGISTRY -u $K8S_SECRET_DOCKER_USER --password-stdin - echo "$K8S_SECRET_DOCKER_PASSWORD" | docker login $CI_REGISTRY -u $K8S_SECRET_DOCKER_USER --password-stdin
......
Supports Markdown
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