Skip to content

Commit

Permalink
remove quotes from CDs
Browse files Browse the repository at this point in the history
  • Loading branch information
DoodleBobBuffPants committed Jun 29, 2021
1 parent 3ae20ac commit 9860c55
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
12 changes: 6 additions & 6 deletions gh.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -39,21 +39,21 @@ echo ============== CLONING
git clone -b %FLYWAY_BRANCH% https://github.com/red-gate/flyway-main.git || goto :error

echo ============== BUILDING MAIN
cd "%FLYWAY_RELEASE_DIR%\flyway-main"
cd %FLYWAY_RELEASE_DIR%\flyway-main
call mvn -s "%SETTINGS_FILE%" -Pbuild-assemblies install -DskipTests -DskipITs || goto :error

echo ============== RUNNING OSSIFIER
cd "%FLYWAY_RELEASE_DIR%\flyway-main\master-only\flyway-ossifier"
cd %FLYWAY_RELEASE_DIR%\flyway-main\master-only\flyway-ossifier
@REM OSSifier reads the OSSIFY_TEST_MODE environment variable
call mvn clean compile exec:java -Dexec.mainClass="com.boxfuse.flyway.ossifier.OSSifier" -Dexec.args="%FLYWAY_RELEASE_DIR% %FLYWAY_RELEASE_DIR%/flyway-main" -DskipTests -DskipITs || goto :error

echo ============== BUILDING ENTERPRISE
cd "%FLYWAY_RELEASE_DIR%\flyway-enterprise"
cd %FLYWAY_RELEASE_DIR%\flyway-enterprise
call mvn -s %SETTINGS_FILE% -U dependency:purge-local-repository clean install -DskipTests -DskipITs || goto :error
call mvn -s %SETTINGS_FILE% -Pbuild-assemblies clean install javadoc:jar -T3 -DskipTests -DskipITs || goto :error

echo ============== BUILDING COMMUNITY
cd "%FLYWAY_RELEASE_DIR%\flyway"
cd %FLYWAY_RELEASE_DIR%\flyway
call mvn -s %SETTINGS_FILE% -U dependency:purge-local-repository clean install -DskipTests -DskipITs || goto :error
call mvn -s %SETTINGS_FILE% -Pbuild-assemblies clean install javadoc:jar -T3 -DskipTests -DskipITs || goto :error

Expand Down Expand Up @@ -82,12 +82,12 @@ git add .
git diff --cached --output=%FLYWAY_RELEASE_DIR%\changes.patch || goto :error

echo ============== GH SUCCESS
cd "%FLYWAY_RELEASE_DIR%"
cd %FLYWAY_RELEASE_DIR%
goto :EOF

:error
set ERRORLVL=%errorlevel%
echo ============== GH FAILED WITH ERROR %ERRORLVL%
cd "%FLYWAY_RELEASE_DIR%"
cd %FLYWAY_RELEASE_DIR%
pause
exit /b %ERRORLVL%
20 changes: 10 additions & 10 deletions release.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -33,40 +33,40 @@ echo ============== CLONING
git clone -b %FLYWAY_BRANCH% https://github.com/red-gate/flyway-main.git || goto :error

echo ============== VERSIONING MAIN
cd "%FLYWAY_RELEASE_DIR%\flyway-main"
cd %FLYWAY_RELEASE_DIR%\flyway-main
call mvn versions:set -DnewVersion=%VERSION% || goto :error
if NOT [%FLYWAY_BETA%]==[] (
call mvn versions:set -DnewVersion=%VERSION%-BETA -pl %FLYWAY_BETA% || goto :error
)

echo ============== RUNNING OSSIFIER
cd "%FLYWAY_RELEASE_DIR%\flyway-main\master-only\flyway-ossifier"
cd %FLYWAY_RELEASE_DIR%\flyway-main\master-only\flyway-ossifier
@REM OSSifier reads the OSSIFY_TEST_MODE environment variable
call mvn clean compile exec:java -Dexec.mainClass="com.boxfuse.flyway.ossifier.OSSifier" -Dexec.args="%FLYWAY_RELEASE_DIR% %FLYWAY_RELEASE_DIR%/flyway-main" -DskipTests -DskipITs || goto :error

echo ============== BUILDING ENTERPRISE
cd "%FLYWAY_RELEASE_DIR%\flyway-enterprise"
cd %FLYWAY_RELEASE_DIR%\flyway-enterprise
call mvn -s %SETTINGS_FILE% -U dependency:purge-local-repository clean install -DskipTests -DskipITs || goto :error
call mvn -s %SETTINGS_FILE% -Pbuild-assemblies clean install javadoc:jar -T3 -DskipTests -DskipITs || goto :error

echo ============== BUILDING COMMUNITY
cd "%FLYWAY_RELEASE_DIR%\flyway"
cd %FLYWAY_RELEASE_DIR%\flyway
call mvn -s %SETTINGS_FILE% -U dependency:purge-local-repository clean install -DskipTests -DskipITs || goto :error
call mvn -s %SETTINGS_FILE% -Pbuild-assemblies clean install javadoc:jar -T3 -DskipTests -DskipITs || goto :error

echo ============== BUILDING MAIN
cd "%FLYWAY_RELEASE_DIR%\flyway-main"
cd %FLYWAY_RELEASE_DIR%\flyway-main
call mvn -s "%SETTINGS_FILE%" -Pbuild-assemblies -Prepo-proxy-release deploy scm:tag -DperformRelease=true -DskipTests -DskipITs || goto :error

echo ============== DEPLOYING
SET PACKAGES="flyway-core,flyway-gradle-plugin,flyway-maven-plugin,flyway-commandline,flyway-community-db-support,flyway-gcp-bigquery,flyway-gcp-spanner"

echo ============== DEPLOYING COMMUNITY
cd "%FLYWAY_RELEASE_DIR%\flyway"
cd %FLYWAY_RELEASE_DIR%\flyway
call mvn -s "%SETTINGS_FILE%" -Psonatype-release -Pbuild-assemblies deploy scm:tag -DperformRelease=true -DskipTests -DskipITs -pl %PACKAGES% -am || goto :error

echo ============== DEPLOYING ENTERPRISE TO %RELEASE_REPOSITORY_URL%
cd "%FLYWAY_RELEASE_DIR%\flyway-enterprise"
cd %FLYWAY_RELEASE_DIR%\flyway-enterprise
call mvn -s "%SETTINGS_FILE%" -f pom.xml gpg:sign-and-deploy-file -P%PROFILE% -DrepositoryId=%RELEASE_REPOSITORY_ID% -Durl=%RELEASE_REPOSITORY_URL% -Dfile=pom.xml -DgroupId=%GROUP_ID% -DartifactId=flyway-parent -Dversion=%VERSION% -Dpackaging=pom -DupdateReleaseInfo=true -Dsources=%FAKE_SOURCES% || goto :error
for /F "tokens=1* delims=," %%f in ("%PACKAGES%") do (
if exists %%f/target/%%f-%VERSION%-BETA.jar (
Expand All @@ -80,18 +80,18 @@ call mvn -s "%SETTINGS_FILE%" -f pom.xml gpg:sign-and-deploy-file -P%PROFILE% -D
call mvn -s "%SETTINGS_FILE%" -f pom.xml gpg:sign-and-deploy-file -P%PROFILE% -DrepositoryId=%RELEASE_REPOSITORY_ID% -Durl=%RELEASE_REPOSITORY_URL% -Dfile=flyway-commandline/target/flyway-commandline-%VERSION%-macosx-x64.tar.gz -DgroupId=%GROUP_ID% -DartifactId=flyway-commandline -Dversion=%VERSION% -Dpackaging=tar.gz -DgeneratePom=false -Dclassifier=macosx-x64 -DperformRelease=true -Dsources=%FAKE_SOURCES% || goto :error

echo ============== PUBLISHING GRADLE
cd "%FLYWAY_RELEASE_DIR%\gradle-plugin-publishing"
cd %FLYWAY_RELEASE_DIR%\gradle-plugin-publishing
call gradlew -b release-community.gradle clean publishPlugins -Dversion=%VERSION% -Dgradle.publish.key=%FLYWAY_GRADLE_KEY% -Dgradle.publish.secret=%FLYWAY_GRADLE_SECRET% || goto :error
call gradlew -b release-enterprise.gradle clean publishPlugins -Dversion=%VERSION% -Dgradle.publish.key=%FLYWAY_GRADLE_KEY% -Dgradle.publish.secret=%FLYWAY_GRADLE_SECRET% || goto :error

echo ============== RELEASE SUCCESS
cd "%FLYWAY_RELEASE_DIR%"
cd %FLYWAY_RELEASE_DIR%
goto :EOF

:error
set ERRORLVL=%errorlevel%
echo ============== RELEASE FAILED WITH ERROR %ERRORLVL%
cd "%FLYWAY_RELEASE_DIR%"
cd %FLYWAY_RELEASE_DIR%
pause
exit /b %ERRORLVL%

Expand Down

0 comments on commit 9860c55

Please sign in to comment.