Mentions légales du service

Skip to content
Snippets Groups Projects

Faster CI pipeline

Closed Vojtisek Didier requested to merge faster-ci into master
+ 33
15
@@ -30,15 +30,11 @@ cache:
# workaround artifact upload size limitation
# one cache per pipeline !! need a cleanup phase to recover disk space
- key: "$CI_PIPELINE_ID"
untracked: true
paths:
- "atsyra2-dev/releng/fr.irisa.atsyra.studio.sdk.product/target/products/atsyra_studio_sdk-linux.gtk.x86_64.zip"
- "atsyra2-dev/releng/fr.irisa.atsyra.studio.sdk.product/target/products/atsyra_studio_sdk-macosx.cocoa.x86_64.zip"
- "atsyra2-dev/releng/fr.irisa.atsyra.studio.sdk.product/target/products/atsyra_studio_sdk-win32.win32.x86_64.zip"
- "atsyra2-dev/releng/fr.irisa.atsyra.studio.sdk.product/target/repository"
- "atsyra2-dev/releng/fr.irisa.atsyra.studio.product/target/products/atsyra_studio-linux.gtk.x86_64.zip"
- "atsyra2-dev/releng/fr.irisa.atsyra.studio.product/target/products/atsyra_studio-macosx.cocoa.x86_64.zip"
- "atsyra2-dev/releng/fr.irisa.atsyra.studio.product/target/products/atsyra_studio-win32.win32.x86_64.zip"
- "atsyra2-dev/releng/fr.irisa.atsyra.studio.product/target/products/atsyra_studio-win32.win32.x86_64.zip"
- "atsyra2-dev/plugins/*/target"
- "atsyra2-dev/tests/*/target"
- "atsyra2-dev/releng/*/target"
stages:
- build
@@ -59,7 +55,7 @@ build:plugins:
- sequential_jobs
script:
- cd atsyra2-dev
- mvn $CI_MAVEN_OPTS $MAVEN_CLI_OPTS clean integration-test fr.jcgay.maven.plugins:buildplan-maven-plugin:list-phase
- mvn $CI_MAVEN_OPTS $MAVEN_CLI_OPTS --projects !releng/fr.irisa.atsyra.studio.product,!releng/fr.irisa.atsyra.studio.sdk.product clean integration-test fr.jcgay.maven.plugins:buildplan-maven-plugin:list-phase
artifacts:
when: always
reports:
@@ -90,12 +86,27 @@ build:plugins:
expire_in: 30 mins
paths:
- atsyra2-dev/releng/$PRODUCT/target/products/*$ENVIRONMENT*.zip
package:
image: registry.gitlab.inria.fr/atsyra/atsyra2/ubuntu-maven-openjdk:latest
stage: package
rules:
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
changes:
- .gitlab-ci.yml
- atsyra2-dev/**/*
tags:
- sequential_jobs
script:
- mvn $CI_MAVEN_OPTS $MAVEN_CLI_OPTS -DskipTests -Dmaven.test.skip=true package fr.jcgay.maven.plugins:buildplan-maven-plugin:list-phase
linux-sdk-studio:
extends: .eclipse-package-template
variables:
ENVIRONMENT: "linux"
PRODUCT: "fr.irisa.atsyra.studio.sdk.product"
#linux-sdk-studio:
# extends: .eclipse-package-template
# variables:
# ENVIRONMENT: "linux"
# PRODUCT: "fr.irisa.atsyra.studio.sdk.product"
#.eclipse-package-template:
@@ -170,6 +181,13 @@ publish:
- ls atsyra2-dev/releng/fr.irisa.atsyra.studio.sdk.product/target/products
- ls atsyra2-dev/releng/fr.irisa.atsyra.studio.sdk.product/target/repository
- ls atsyra2-dev/releng/fr.irisa.atsyra.studio.product/target/products
- |
if ls atsyra2-dev/releng/$PRODUCT/target/products/*$ENVIRONMENT*.zip 1> /dev/null 2>&1; then
echo "artifact files do exist (from cache)"
else
echo "files do not exist"
exit 1
fi
#- ls atsyra2-dev/releng/fr.irisa.atsyra.studio.product/target/repository
- scp -r atsyra2-dev/releng/fr.irisa.atsyra.studio.sdk.product/target/products/*.zip web-atsyra2@atsyra2.irisa.fr:/home/web/apache/sites/atsyra2.irisa.fr/htdocs/studio/packages/nightly
- ssh web-atsyra2@atsyra2.irisa.fr 'rm -rf /home/web/apache/sites/atsyra2.irisa.fr/htdocs/studio/updates/nightly/*'
@@ -187,7 +205,7 @@ cleanup_job:
tags:
- sequential_jobs
script:
- echo "Cleaning up pipeline specific caches"
- echo "Cleaning up pipeline specific caches $CI_PIPELINE_ID"
- find /cache -type d -name "$CI_PIPELINE_ID" -exec rm -rf {} +
- find /cache -name cache.zip -exec ls -lh {} \;
Loading