maven - How to deploy env(dev, test, prod) specific Artifacts to Artifactory form Jenkins -


i creating 3 artifacts (war) dev, test , prod environment using profiles following:

clean install -p dev cp target/abc.war output/abc-dev-${build_number}.war  clean install -p test cp target/abc.war output/abc-test-${build_number}.war  clean install -p prod cp target/abc.war output/abc-prod-${build_number}.war 

to execute jenkins using jenkins plugin "invoke top-level maven targets".

once created war's, wants deploy these artifactory!

i google lot didn't find regarding deploy artifacts artifactory.

note: able build , deploy artifact "clean deploy -p dev", in case not able modify artifact name. (companies artifactory doesn't allow deploy without versioning enabled)

any highly appreciated. thank you!

you can use curl upload war files artifactory.

$ curl -v --user username:password --data-binary @/local/path/to/war-file/abc-dev.war -x put "http://org.artifactory.com/artifactory/repo_name/folder_name/abc-dev-${build_number}.war 

"


Comments

Popular posts from this blog

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

python Tkinter Capturing keyboard events save as one single string -

sql server - Why does Linq-to-SQL add unnecessary COUNT()? -