Loading generateChangemarks/.gtilab-ci.yml +0 −1 Original line number Original line Diff line number Diff line Loading @@ -79,7 +79,6 @@ Publish spec: pages: pages: stage: web stage: web when: on_success when: on_success needs: ["Publish spec"] rules: rules: - if: ($CLEAN_WEB_PAGES == 'false' || $CLEAN_WEB_PAGES == 'true') && $CI_COMMIT_TAG - if: ($CLEAN_WEB_PAGES == 'false' || $CLEAN_WEB_PAGES == 'true') && $CI_COMMIT_TAG variables: variables: Loading upgrade_pages.sh +2 −2 Original line number Original line Diff line number Diff line Loading @@ -6,14 +6,14 @@ NS_GITLAB_HOST=$(echo $GITLAB_HOST | cut -d'/' -f3) echo "\n------ Getting all projects IDs --------" echo "\n------ Getting all projects IDs --------" # Get a list of projects in the group using GitLab API # Get a list of projects in the group using GitLab API PROJECT_IDS=$(curl --header "PRIVATE-TOKEN: $1" "$GITLAB_HOST/api/v4/groups/$SPECIFICATIONS_GROUP/projects" | grep -oP '"id":(?!$'SPECIFICATIONS_GROUP')\d+' | cut -d':' -f2) PROJECT_IDS=$(curl --header "PRIVATE-TOKEN: $1" "$GITLAB_HOST/api/v4/groups/$SPECIFICATIONS_GROUP/projects" | grep -oP '"id":(?!'$SPECIFICATIONS_GROUP')\d+' | cut -d':' -f2) echo $PROJECT_IDS echo $PROJECT_IDS PROJECT_IDS="41" # Use TS-0019 for debugging PROJECT_IDS="41" # Use TS-0019 for debugging # Trigger pipeline for each project. Triggered pipeline pages job will handle the upgrade of the index.html # Trigger pipeline for each project. Triggered pipeline pages job will handle the upgrade of the index.html for PROJECT_ID in $PROJECT_IDS; do for PROJECT_ID in $PROJECT_IDS; do echo "------ Preparing specification project --------" echo "------ Preparing specification project --------" curl -X POST --fail -F token=$1 https://git.onem2m.org/api/v4/projects/$PROJECT_ID/trigger/pipeline curl -X POST --fail -F token=$1 -F ref=main https://git.onem2m.org/api/v4/projects/$PROJECT_ID/trigger/pipeline done done exit 0 exit 0 No newline at end of file Loading
generateChangemarks/.gtilab-ci.yml +0 −1 Original line number Original line Diff line number Diff line Loading @@ -79,7 +79,6 @@ Publish spec: pages: pages: stage: web stage: web when: on_success when: on_success needs: ["Publish spec"] rules: rules: - if: ($CLEAN_WEB_PAGES == 'false' || $CLEAN_WEB_PAGES == 'true') && $CI_COMMIT_TAG - if: ($CLEAN_WEB_PAGES == 'false' || $CLEAN_WEB_PAGES == 'true') && $CI_COMMIT_TAG variables: variables: Loading
upgrade_pages.sh +2 −2 Original line number Original line Diff line number Diff line Loading @@ -6,14 +6,14 @@ NS_GITLAB_HOST=$(echo $GITLAB_HOST | cut -d'/' -f3) echo "\n------ Getting all projects IDs --------" echo "\n------ Getting all projects IDs --------" # Get a list of projects in the group using GitLab API # Get a list of projects in the group using GitLab API PROJECT_IDS=$(curl --header "PRIVATE-TOKEN: $1" "$GITLAB_HOST/api/v4/groups/$SPECIFICATIONS_GROUP/projects" | grep -oP '"id":(?!$'SPECIFICATIONS_GROUP')\d+' | cut -d':' -f2) PROJECT_IDS=$(curl --header "PRIVATE-TOKEN: $1" "$GITLAB_HOST/api/v4/groups/$SPECIFICATIONS_GROUP/projects" | grep -oP '"id":(?!'$SPECIFICATIONS_GROUP')\d+' | cut -d':' -f2) echo $PROJECT_IDS echo $PROJECT_IDS PROJECT_IDS="41" # Use TS-0019 for debugging PROJECT_IDS="41" # Use TS-0019 for debugging # Trigger pipeline for each project. Triggered pipeline pages job will handle the upgrade of the index.html # Trigger pipeline for each project. Triggered pipeline pages job will handle the upgrade of the index.html for PROJECT_ID in $PROJECT_IDS; do for PROJECT_ID in $PROJECT_IDS; do echo "------ Preparing specification project --------" echo "------ Preparing specification project --------" curl -X POST --fail -F token=$1 https://git.onem2m.org/api/v4/projects/$PROJECT_ID/trigger/pipeline curl -X POST --fail -F token=$1 -F ref=main https://git.onem2m.org/api/v4/projects/$PROJECT_ID/trigger/pipeline done done exit 0 exit 0 No newline at end of file