Loading .gitlab-ci.yml +17 −30 Original line number Diff line number Diff line image: maven:3.6.2-jdk-8 variables: PORTAL_KEY: <my_private_key> Loading @@ -10,41 +8,30 @@ stages: build: stage: build image: maven:3.6.2-jdk-8 only: - develop-ci script: - mvn package artifacts: paths: - target/saref-pipeline.jar upload: stage: upload image: curlimages/curl:latest only: - develop-ci # deploy_website: # stage: deploy # script: # - eval $(ssh-agent -s) # - ssh-add <(echo "$PORTAL_KEY") # - mkdir -p ~/.ssh # - '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config' # - scp -P 29419 -pr target/saref-pipeline.jar saref-dev@saref.etsi.org:~/downloads/saref-pipeline.jar # only: # - master deploy_package: stage: deploy script: - 'mvn deploy -s ci_settings.xml' - | curl --header "JOB-TOKEN: ${CI_JOB_TOKEN}" --upload-file target/saref-pipeline.jar "${PACKAGE_REGISTRY_URL}/saref-pipeline.jar" release: stage: release image: registry.gitlab.com/gitlab-org/release-cli:latest only: - develop-ci # release_job: # stage: release # image: registry.gitlab.com/gitlab-org/release-cli:latest # script: # - echo "Running the release job for $CI_COMMIT_TAG" # - mvn package # release: # tag_name: $CI_COMMIT_TAG # description: '$CI_COMMIT_TAG_MESSAGE' # ref: '$CI_COMMIT_SHA' # rules: # - if: $CI_COMMIT_TAG script: - | release-cli create --name "Release $CI_COMMIT_SHA" --ref $CI_COMMIT_SHA \ --assets-link "{\"name\":\"saref-pipeline.jar\",\"url\":\"${PACKAGE_REGISTRY_URL}/saref-pipeline.jar\"}" LICENSE +1 −1 Original line number Diff line number Diff line Copyright 2020 ETSI Copyright 2024 ETSI Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: Loading ci_settings.xmldeleted 100644 → 0 +0 −16 Original line number Diff line number Diff line <settings xmlns="http://maven.apache.org/SETTINGS/1.1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.1.0 http://maven.apache.org/xsd/settings-1.1.0.xsd"> <servers> <server> <id>gitlab-maven</id> <configuration> <httpHeaders> <property> <name>Job-Token</name> <value>${CI_JOB_TOKEN}</value> </property> </httpHeaders> </configuration> </server> </servers> </settings> Loading
.gitlab-ci.yml +17 −30 Original line number Diff line number Diff line image: maven:3.6.2-jdk-8 variables: PORTAL_KEY: <my_private_key> Loading @@ -10,41 +8,30 @@ stages: build: stage: build image: maven:3.6.2-jdk-8 only: - develop-ci script: - mvn package artifacts: paths: - target/saref-pipeline.jar upload: stage: upload image: curlimages/curl:latest only: - develop-ci # deploy_website: # stage: deploy # script: # - eval $(ssh-agent -s) # - ssh-add <(echo "$PORTAL_KEY") # - mkdir -p ~/.ssh # - '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config' # - scp -P 29419 -pr target/saref-pipeline.jar saref-dev@saref.etsi.org:~/downloads/saref-pipeline.jar # only: # - master deploy_package: stage: deploy script: - 'mvn deploy -s ci_settings.xml' - | curl --header "JOB-TOKEN: ${CI_JOB_TOKEN}" --upload-file target/saref-pipeline.jar "${PACKAGE_REGISTRY_URL}/saref-pipeline.jar" release: stage: release image: registry.gitlab.com/gitlab-org/release-cli:latest only: - develop-ci # release_job: # stage: release # image: registry.gitlab.com/gitlab-org/release-cli:latest # script: # - echo "Running the release job for $CI_COMMIT_TAG" # - mvn package # release: # tag_name: $CI_COMMIT_TAG # description: '$CI_COMMIT_TAG_MESSAGE' # ref: '$CI_COMMIT_SHA' # rules: # - if: $CI_COMMIT_TAG script: - | release-cli create --name "Release $CI_COMMIT_SHA" --ref $CI_COMMIT_SHA \ --assets-link "{\"name\":\"saref-pipeline.jar\",\"url\":\"${PACKAGE_REGISTRY_URL}/saref-pipeline.jar\"}"
LICENSE +1 −1 Original line number Diff line number Diff line Copyright 2020 ETSI Copyright 2024 ETSI Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: Loading
ci_settings.xmldeleted 100644 → 0 +0 −16 Original line number Diff line number Diff line <settings xmlns="http://maven.apache.org/SETTINGS/1.1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.1.0 http://maven.apache.org/xsd/settings-1.1.0.xsd"> <servers> <server> <id>gitlab-maven</id> <configuration> <httpHeaders> <property> <name>Job-Token</name> <value>${CI_JOB_TOKEN}</value> </property> </httpHeaders> </configuration> </server> </servers> </settings>