Although this can be achieved in Jenkins or Artifactory, ideally this
should be handled on Gradle's level as it's the actual producer of the
artifacts (in a purist POV Jenkins and Artifactory are respectively
automation and smart storage utilities).
You can also create different configurations for integration and release
build environments.
Another thing to note is that developers shouldn't run their own local
builds, but consume the integration revisions produced by your build server.
See here for more info in regard to the versioning:
http://gradle.1045684.n5.nabble.com/Create-an-artifact-with-a-different-version-number-as-the-main-project-td3374437.html
http://mrhaki.blogspot.co.il/2010/10/gradle-goodness-custom-version-object.html
On Sun, Jun 3, 2012 at 5:18 PM, spock <[email protected]> wrote:
> I'm trying to build a CI workflow in my company, using Gradle, Jenkins and
> Artifactory. I'm new to all of these, so there's a chance I'm asking
> trivial
> questions.
>
> I've setup my repository to use unique snapshots, which require the
> versions
> to have a 14 digit timestamp. For example:
>
> 1.0.0-20120529100003
>
> But I'm having a hard time finding an easy way to generate these timestamps
> into the version. I was expecting that this would be automatically
> supported
> by Jenkins, Gradle or Artifactory, but couldn't find any reference to such
> a
> capability.
>
> Am I supposed to code this in Gradle myself? Are there any best practices
> regarding how to do this? I'm assuming it only makes sense for this
> timestamp to happen for CI builds of snapshot versions, not for developer
> builds with local deploys or for release builds.
>
> --
> View this message in context:
> http://forums.jfrog.org/How-do-I-publish-unique-snapshots-into-Artifactory-with-gradle-and-Jenkins-tp7577988.html
> Sent from the Artifactory - Users mailing list archive at Nabble.com.
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Artifactory-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/artifactory-users
>
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Artifactory-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/artifactory-users