Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
LabraDoor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
EIP
Labrador
LabraDoor
Merge requests
!78
Improve snapshot publish
Code
Review changes
Check out branch
Open in Workspace
Download
Patches
Plain diff
Expand sidebar
Merged
Improve snapshot publish
improve-snapshot-publish
into
development
Overview
0
Commits
1
Pipelines
3
Changes
1
Merged
Improve snapshot publish
Ruben Backx
requested to merge
improve-snapshot-publish
into
development
Mar 2, 2023
Overview
0
Commits
1
Pipelines
3
Changes
1
0
0
Merge request reports
Compare
development
development (base)
and
latest version
latest version
3a9e9769
1 commit,
Mar 2, 2023
1 file
+
2
−
2
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
.gitlab-ci.yml
+
2
−
2
View file @ 3a9e9769
Edit in single-file editor
Open in Web IDE
Show full file
@@ -190,8 +190,8 @@ publish_maven_dev:
-
if
:
$CI_COMMIT_BRANCH == "development"
when
:
on_success
script
:
-
"
VERSION=$(gradle
properties
|
grep
'version:'
|
sed
-e
's/version:
//')"
-
if [[ "$VERSION" != *'SNAPSHOT'* ]]; then echo "Version must contain SNAPSHOT to be deployed as dev"; exit 1; fi
-
sed -i 's/version = "\([0-9]\+.[0-9]\+.[0-9]\+\)"/version = "\1-SNAPSHOT"/' build.gradle.kts
-
gradle build -x test -x licenseMain -x licenseTest -x spotlessJava -x spotlessCheck
-
gradle publish --info -P jobToken=${CI_JOB_TOKEN}
# Include templates for security scans and code quality reports
Loading