It is, I have a sample at work I can share on Monday.  But you just
need a variable for the repo url and then switch the value based on
what ever logic you have to detect that you want to post to the
alternate repo url.

- Peace
Dave


On Fri, Dec 10, 2010 at 9:43 PM, [email protected]
<[email protected]> wrote:
>
> Is it possible to choose the repository to upload an artifact to at runtime?
>
> Right now I have configured my uploadArchives task to upload to our internal
> maven repo.  However, that is not what we want all the time.  Usually I want
> to upload to a location on my file system for testing.  However, our CI
> server should upload to the maven repo.  I've tried several approaches; but
> haven't been able to figure it out.
>
> In essence, I want to have conditional logic such that if I am running a
> "local" build, then the archive (jar) gets copied to my local system;
> otherwise the "remote" build will upload to the maven repo.
>
> uploadArchives {
>  uploadDescriptor = false
>  repositories {
>    mavenRepo urls: "http://mydomain.com/artifactory/its-framework";;
>  }
> }
>
> Thanks,
> Chris....
> --
> View this message in context: 
> http://gradle.1045684.n5.nabble.com/Upload-Artifcat-Choose-Repo-at-Runtime-tp3301268p3301268.html
> Sent from the gradle-user mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>    http://xircles.codehaus.org/manage_email
>
>
>

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to