Hello,

I am experiencing some unexpected behaviour when trying to integrate a local
stage repository to the main artifactory repository.

We have quite a large project and want to provide a new snapshot of a
component only, when all artifacts of the component have passed all tests.
After a lot of reading on the internet the suggested solution is to use a
staging repository. To realize that, our integration server calls:
/mvn clean deploy -PCommitStage -fae -B -U
-DaltDeploymentRepository=stage::default::file://staging-repo/
for a specific component.
After that we upload the staging-repo to Artifactory with:
/wagon:copy -Dwagon.source=file://staging-repo
-Dwagon.target=https://..server../artifactory/libs-snapshots-local
-Dwagon.targetId=repo-id-artifactory/

The upload works fine and I thought the problem was solved. After some hours
we noticed, that updates are not provided consistently to the other team
members. When we look at the metadata of the "x.x.x-SNAPSHOT" folder in
Artifactory we see that it does not point to the last uploaded snapshot.
Instead it seems to point to the artifacts with the highest build numbers.

Unfortunatly the build numbers in the staging repository are always 1,
because it contains only one build. If we do not delete the staging
repository and the build number gets high values the problem disappears, but
this is not really an option.

Any attempts to set a higher build number manually in advance were not
successful so far. I don't understand why there seems to be no link between
the build number in the generated unique file names and the buildNumber
variable, which can be defined in a POM. 

Now my questions:
- Is this behaviour (prefer higher build numbers over newer timestamps) when
generating the internal metadata.xml of a x.x.x-SNAPSHOT folder by
Artifactory design or is it a bug?
- Do you have any suggestions, what I can do to make the staging idea work?




--
View this message in context: 
http://forums.jfrog.org/Staging-copy-does-not-work-as-expected-tp7578406.html
Sent from the Artifactory - Users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
Artifactory-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/artifactory-users

Reply via email to