org.hl7.fhir.core/release.bat

39 lines
2.2 KiB
Batchfile
Raw Normal View History

2019-05-20 20:39:51 -04:00
@echo off
2019-06-18 16:40:36 -04:00
2020-01-24 01:20:23 -05:00
set oldver=4.1.52
set newver=4.1.53
2019-06-18 16:40:36 -04:00
echo ..
2019-05-20 20:39:51 -04:00
echo =====================================================================
2019-06-18 16:40:36 -04:00
echo upgrade and release fhir.core from %oldver%-SNAPSHOT to %newver%-SNAPSHOT
2019-05-20 20:39:51 -04:00
echo =====================================================================
echo ..
2019-03-15 14:26:38 -04:00
2019-06-18 16:40:36 -04:00
call mvn versions:set -DnewVersion=%newver%-SNAPSHOT
2019-12-03 13:59:22 -05:00
2019-03-15 14:26:38 -04:00
call git commit -a -m "Release new version"
call git push origin master
2019-12-02 23:26:06 -05:00
call "C:\tools\fnr.exe" -dir "C:\work\org.hl7.fhir\build" -fileMask "*.xml" -find "%oldver%-SNAPSHOT" -replace "%newver%-SNAPSHOT" -count 8
call "C:\tools\fnr.exe" -dir "C:\work\org.hl7.fhir\fhir-ig-publisher" -fileMask "*.xml" -find "%oldver%-SNAPSHOT" -replace "%newver%-SNAPSHOT" -count 2
call "C:\tools\fnr.exe" -dir "C:\work\org.hl7.fhir\latest-ig-publisher" -fileMask "*.html" -find "%oldver%" -replace "%newver%" -count 1
call "C:\tools\fnr.exe" -dir "C:\work\org.hl7.fhir\latest-ig-publisher" -fileMask "*.json" -find "%oldver%" -replace "%newver%" -count 1
2019-09-14 12:51:12 -04:00
call mvn clean deploy -Dmaven.test.redirectTestOutputToFile=false -DdeployAtEnd=true
2019-09-14 12:35:50 -04:00
IF %ERRORLEVEL% NEQ 0 (
GOTO DONE
)
2019-06-18 16:40:36 -04:00
copy org.hl7.fhir.validation.cli\target\org.hl7.fhir.validation.cli-%newver%-SNAPSHOT.jar ..\latest-ig-publisher\org.hl7.fhir.validator.jar
2019-05-21 21:45:02 -04:00
cd ..\latest-ig-publisher
2019-06-18 16:40:36 -04:00
call git commit -a -m "Release new version %newver%-SNAPSHOT"
2019-05-21 21:45:02 -04:00
call git push origin master
cd ..\org.hl7.fhir.core
2019-06-18 16:40:36 -04:00
call python c:\tools\zulip-api\zulip\zulip\send.py --stream committers/notification --subject "java core" -m "New Java Core v%newver%-SNAPSHOT released. New Validator at https://oss.sonatype.org/service/local/artifact/maven/redirect?r=snapshots&g=ca.uhn.hapi.fhir&a=org.hl7.fhir.validation.cli&v=%newver%-SNAPSHOT&e=jar, and also deployed at https://fhir.github.io/latest-ig-publisher/org.hl7.fhir.validator.jar" --config-file zuliprc
2019-12-18 20:57:52 -05:00
call python c:\tools\zulip-api\zulip\zulip\send.py --stream tooling/releases --subject "Validator" -m "New Validator @ https://fhir.github.io/latest-ig-publisher/org.hl7.fhir.validator.jar (v%newver%)" --config-file zuliprc
2019-03-15 14:26:38 -04:00
2019-09-14 12:35:50 -04:00
:DONE
2019-03-15 14:26:38 -04:00
echo ===============================================================
echo all done
echo ===============================================================
pause