Hi
I am using the Jenkins plugin and wrote a staging strategy as an
Artifactory plugin.
However, I feel like there is something missing in the design, or maybe
there's some part I'm unaware of.
For staging versioning, it is useful to be able to resolve values that
correspond to the staging build.
The way it is designed now, a staging plugin can provide version values
inspecting previous builds but, since the API is called before the actual
staging build, it cannot retrieve any information associated to that build.
Example 1: One version scheme that I would like to have is to be able to
append the Subversion revision in the release version. I'm unable to do
this because a new revision may be committed while I'm at the staging
release page,
Example 2: If I wanted to append the Jenkins build number to the release
version, I could inspect the latest build and add 1 to its number, but this
can be wrong if a new build is triggered while in the staging release page.
I would really like to have solution to this and other problems as well,
and be able to release with a single button click and no human intervention.
Proposition: What do you think about the idea of a plugin being called to
calculate the next development version number as well as the release
version at staging build time?
So, the idea is that the Jenkins plugin calls this plugin through the
Artifactory API to calculate the values that need to be resolved at build
time.
calculateNextDevelopmentVersion(context)
calculateReleaseVersion(context)
...
In those methods, the context can provide Jenkins info, such as the project
being built, build number, revision, etc.
What do you think?
Thanks.
Regards.
------------------------------------------------------------------------------
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