Loading .gitlab-ci.yml +11 −16 Original line number Diff line number Diff line Loading @@ -5,7 +5,7 @@ stages: build: stage: build image: maven:3.6.2-jdk-8 image: maven:3.8.6-openjdk-11 script: - mvn package artifacts: Loading @@ -14,7 +14,7 @@ build: deploy_package: stage: deploy image: maven:3.6.2-jdk-8 image: maven:3.8.6-openjdk-11 script: - mvn deploy -s ci_settings.xml - echo VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout) > target/build.env Loading @@ -31,17 +31,12 @@ release_job: - master needs: - deploy_package script: - echo "Running the release job for $VERSION from commit $CI_COMMIT_SHA" - curl --location --output release-cli "https://gitlab.com/api/v4/projects/gitlab-org%2Frelease-cli/packages/generic/release-cli/latest/release-cli-linux-amd64" - chmod +x release-cli - ./release-cli create --description "Release $VERSION" --tag-name "$VERSION" --ref "$CI_COMMIT_SHA" --assets-link "{\"url\":\"https://labs.etsi.org/rep/api/v4/projects/28/packages/maven/fr/mines-stetienne/ci/saref/saref-pipeline/$VERSION/saref-pipeline-$VERSION.jar\",\"name\":\"saref-pipeline.jar\",\"filepath\":\"/saref-pipeline.jar\"}" # release: # tag_name: '$VERSION' # description: 'Release $VERSION' # ref: '$CI_COMMIT_SHA' # assets: # links: # - name: 'saref-pipeline.jar' # url: 'https://labs.etsi.org/rep/api/v4/projects/28/packages/maven/fr/mines-stetienne/ci/saref/saref-pipeline/$VERSION/saref-pipeline-$VERSION.jar' # bash: line 149: release-cli: command not found No newline at end of file release: tag_name: '$VERSION' description: 'Release $VERSION' ref: '$CI_COMMIT_SHA' assets: links: - name: 'saref-pipeline.jar' filepath: '/saref-pipeline.jar' url: 'https://labs.etsi.org/rep/api/v4/projects/28/packages/maven/fr/mines-stetienne/ci/saref/saref-pipeline/$VERSION/saref-pipeline-$VERSION.jar' Loading
.gitlab-ci.yml +11 −16 Original line number Diff line number Diff line Loading @@ -5,7 +5,7 @@ stages: build: stage: build image: maven:3.6.2-jdk-8 image: maven:3.8.6-openjdk-11 script: - mvn package artifacts: Loading @@ -14,7 +14,7 @@ build: deploy_package: stage: deploy image: maven:3.6.2-jdk-8 image: maven:3.8.6-openjdk-11 script: - mvn deploy -s ci_settings.xml - echo VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout) > target/build.env Loading @@ -31,17 +31,12 @@ release_job: - master needs: - deploy_package script: - echo "Running the release job for $VERSION from commit $CI_COMMIT_SHA" - curl --location --output release-cli "https://gitlab.com/api/v4/projects/gitlab-org%2Frelease-cli/packages/generic/release-cli/latest/release-cli-linux-amd64" - chmod +x release-cli - ./release-cli create --description "Release $VERSION" --tag-name "$VERSION" --ref "$CI_COMMIT_SHA" --assets-link "{\"url\":\"https://labs.etsi.org/rep/api/v4/projects/28/packages/maven/fr/mines-stetienne/ci/saref/saref-pipeline/$VERSION/saref-pipeline-$VERSION.jar\",\"name\":\"saref-pipeline.jar\",\"filepath\":\"/saref-pipeline.jar\"}" # release: # tag_name: '$VERSION' # description: 'Release $VERSION' # ref: '$CI_COMMIT_SHA' # assets: # links: # - name: 'saref-pipeline.jar' # url: 'https://labs.etsi.org/rep/api/v4/projects/28/packages/maven/fr/mines-stetienne/ci/saref/saref-pipeline/$VERSION/saref-pipeline-$VERSION.jar' # bash: line 149: release-cli: command not found No newline at end of file release: tag_name: '$VERSION' description: 'Release $VERSION' ref: '$CI_COMMIT_SHA' assets: links: - name: 'saref-pipeline.jar' filepath: '/saref-pipeline.jar' url: 'https://labs.etsi.org/rep/api/v4/projects/28/packages/maven/fr/mines-stetienne/ci/saref/saref-pipeline/$VERSION/saref-pipeline-$VERSION.jar'