Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
continuous-publish-plugin
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
adi-ia
continuous-publish-plugin
Merge requests
!3
fix: artifact-version needs to use Manifest#getMainAttributes
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
fix: artifact-version needs to use Manifest#getMainAttributes
npblair/continuous-publish-plugin:use-mainAttributes
into
master
Overview
28
Commits
1
Pipelines
0
Changes
2
Merged
Nicholas Blair
requested to merge
npblair/continuous-publish-plugin:use-mainAttributes
into
master
8 years ago
Overview
28
Commits
1
Pipelines
0
Changes
2
Expand
getAttributes returns null
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
0427946c
1 commit,
8 years ago
2 files
+
2
−
2
Side-by-side
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
artifact-version.groovy
+
1
−
1
Options
@@ -8,7 +8,7 @@ Manifest manifest = new Manifest(
@@ -8,7 +8,7 @@ Manifest manifest = new Manifest(
new
FileInputStream
(
new
FileInputStream
(
new
File
(
"${build.workspace}/build/tmp/jar/MANIFEST.MF"
)));
new
File
(
"${build.workspace}/build/tmp/jar/MANIFEST.MF"
)));
def
version
=
manifest
.
getAttributes
().
getValue
(
Attributes
.
Name
.
IMPLEMENTATION_VERSION
)
def
version
=
manifest
.
get
Main
Attributes
().
getValue
(
Attributes
.
Name
.
IMPLEMENTATION_VERSION
)
println
"Artifact version is $version"
println
"Artifact version is $version"
build
.
addAction
(
build
.
addAction
(
new
ParametersAction
([
new
ParametersAction
([
Loading