Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
V
VIPSCore
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
VIPS
VIPSCore
Commits
633f72ab
Commit
633f72ab
authored
1 year ago
by
Lene Wasskog
Browse files
Options
Downloads
Patches
Plain Diff
chore: Reintroduce job upload-snapshot
parent
6e17b366
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+13
-0
13 additions, 0 deletions
.gitlab-ci.yml
with
13 additions
and
0 deletions
.gitlab-ci.yml
+
13
−
0
View file @
633f72ab
...
@@ -99,6 +99,19 @@ deploy-to-staging:
...
@@ -99,6 +99,19 @@ deploy-to-staging:
name
:
staging
name
:
staging
url
:
https://vipscore02test.nibio.no
url
:
https://vipscore02test.nibio.no
upload-snapshot
:
stage
:
upload
script
:
-
export VERSION=$(./mvnw $MAVEN_POM_WITH_MODELS $MAVEN_CLI_OPTS $MAVEN_OPTS --batch-mode --no-transfer-progress --non-recursive help:evaluate -Dexpression=project.version | grep -v "\[.*")
-
if ! [[ $VERSION =~ .*SNAPSHOT ]]; then
echo "Version '$VERSION' is not SNAPSHOT"; exit 1;
fi
-
"
./mvnw
$MAVEN_POM_WITH_MODELS
$MAVEN_CLI_OPTS
$MAVEN_OPTS
deploy
-DskipTests"
tags
:
-
vips-java
rules
:
-
if
:
$CI_COMMIT_REF_NAME == $MAIN_BRANCH
deploy-to-production
:
deploy-to-production
:
stage
:
deploy
stage
:
deploy
script
:
script
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment