jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • Continuum
  • CONTINUUM-581

Share continuum build number to underlying build project

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: New Feature New Feature
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Duplicate
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: Core system
  • Labels:
    None
  • Complexity:
    Novice

Description

It would be nice if Continuum shared its build number with the underlying build projects (e.g. Ant/Maven{1,2})

What I'm trying to do is generate artifacts with the following naming convention:

myproject-1.0-123.zip

where 1.0 is the version number defined in Maven (e.g. pom.xml), and 123
is the Continuum build number. Artifacts could be .zip, .jar, .war, etc.

I guess one way to do this is to pass the build number via an environment variable

Issue Links

is duplicated by

New Feature - A new feature of the product, which has yet to be developed. CONTINUUM-990 Pass some continuum information to build tools when executing a build

  • Minor - Minor loss of function, or other problem where easy workaround is present.
  • Closed - The issue is considered finished, the resolution is correct. Issues which are not closed can be reopened.

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Geoff Urbach added a comment - 11/Apr/06 2:14 AM

In a similar way we would like to quote the build number (version) on the "About" screen. It seems like a fundamental feature to me that I have becone quite acustomed to with Cruise Control.

cheers,
g

Show
Geoff Urbach added a comment - 11/Apr/06 2:14 AM In a similar way we would like to quote the build number (version) on the "About" screen. It seems like a fundamental feature to me that I have becone quite acustomed to with Cruise Control. cheers, g
Hide
Permalink
David Roussel added a comment - 13/Sep/06 10:51 AM

I suggest a property of continuum.build.number should be set and available to the build.

Then in my pom.xml I can have...

<version>${major.version}-${continuum.build.number}</version>

Show
David Roussel added a comment - 13/Sep/06 10:51 AM I suggest a property of continuum.build.number should be set and available to the build. Then in my pom.xml I can have... <version>${major.version}-${continuum.build.number}</version>
Hide
Permalink
Stuart James Penrose added a comment - 17/Oct/06 12:59 PM

My main use of continuum is with maven2 projects. For my uses it would be nice if continuum created a 'build.properties' file or something similar in every jar/war/ear it creates that has this sort of build-specific information. SCM versioning information would be great here too (sorry, maybe that's beyond the scope of this issue). It's practically a necessity to have this sort of information when tracking builds and relating them to everything else in our environment: build xyz built on xxx-xx-xx from rev xxxx of svn://host/branch.

Show
Stuart James Penrose added a comment - 17/Oct/06 12:59 PM My main use of continuum is with maven2 projects. For my uses it would be nice if continuum created a 'build.properties' file or something similar in every jar/war/ear it creates that has this sort of build-specific information. SCM versioning information would be great here too (sorry, maybe that's beyond the scope of this issue). It's practically a necessity to have this sort of information when tracking builds and relating them to everything else in our environment: build xyz built on xxx-xx-xx from rev xxxx of svn://host/branch.
Hide
Permalink
Brill Pappin added a comment - 09/Nov/06 9:39 AM

We're doing something similar where our convention is artifactid-1.0.0.123.jar where 123 is the build.

Show
Brill Pappin added a comment - 09/Nov/06 9:39 AM We're doing something similar where our convention is artifactid-1.0.0.123.jar where 123 is the build.
Hide
Permalink
Lasconic added a comment - 11/Jan/07 2:39 AM

Anything is done about this bug ?
I would like to put the build number into a properties file of my project to display it later. If nothing is done as I see that is a novice complexity maybe I can do that if someone gives some guide lines. I'm about writing a maven plugin to do this because I really need it. Any other solutions ?

Show
Lasconic added a comment - 11/Jan/07 2:39 AM Anything is done about this bug ? I would like to put the build number into a properties file of my project to display it later. If nothing is done as I see that is a novice complexity maybe I can do that if someone gives some guide lines. I'm about writing a maven plugin to do this because I really need it. Any other solutions ?
Hide
Permalink
Geert Pante added a comment - 31/Jan/08 11:27 AM

I noticed in the debug log, the following command line for a simple maven2 build:

/usr/local/maven2/bin/mvn --batch-mode --non-recursive -Dcontinuum.project.lastBuild.state=10 -Dcontinuum.project.nextBuild.number=1 "-Dcontinuum.project.group.name=Tst Base Pom" -Dcontinuum.project.lastBuild.number=0 clean install'

So you have at least:
continuum.project.lastBuild.number
continuum.project.nextBuild.number
continuum.project.lastBuild.state
continuum.project.group.name

Show
Geert Pante added a comment - 31/Jan/08 11:27 AM I noticed in the debug log, the following command line for a simple maven2 build: /usr/local/maven2/bin/mvn --batch-mode --non-recursive -Dcontinuum.project.lastBuild.state=10 -Dcontinuum.project.nextBuild.number=1 "-Dcontinuum.project.group.name=Tst Base Pom" -Dcontinuum.project.lastBuild.number=0 clean install' So you have at least: continuum.project.lastBuild.number continuum.project.nextBuild.number continuum.project.lastBuild.state continuum.project.group.name

People

  • Assignee:
    Unassigned
    Reporter:
    Alex Boisvert
Vote (14)
Watch (10)

Dates

  • Created:
    02/Feb/06 4:38 PM
    Updated:
    02/Apr/08 5:49 AM
    Resolved:
    02/Apr/08 5:49 AM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.