From ed9820a907bc03abc4e6791cf17d815efc525133 Mon Sep 17 00:00:00 2001 From: Cheng Pan Date: Mon, 25 Oct 2021 13:43:32 +0800 Subject: [PATCH] [KYUUBI #1280] Fix branch-1.3 daily publish-snapshots ### _Why are the changes needed?_ `branch-1.3` daily `publish-snapshots` failed. https://github.com/apache/incubator-kyuubi/actions/runs/1376614053 ### _How was this patch tested?_ - [ ] Add some test cases that check the changes thoroughly including negative and positive cases if possible - [ ] Add screenshots for manual tests if appropriate - [ ] [Run test](https://kyuubi.readthedocs.io/en/latest/develop_tools/testing.html#running-tests) locally before make a pull request Closes #1280 from pan3793/nexus. Closes #1280 3cc3e1c8 [Cheng Pan] Fix branch-1.3 daily publish-snapshots Authored-by: Cheng Pan Signed-off-by: ulysses-you --- .github/workflows/publish-snapshot.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish-snapshot.yml b/.github/workflows/publish-snapshot.yml index e1e4ff2dc..78c15e0ca 100644 --- a/.github/workflows/publish-snapshot.yml +++ b/.github/workflows/publish-snapshot.yml @@ -30,7 +30,8 @@ jobs: uses: actions/setup-java@v1 with: java-version: 8 - - name: Publish snapshot + - name: Publish snapshot - master + if: ${{ matrix.branch == 'master' }} env: ASF_USERNAME: ${{ secrets.NEXUS_USER }} ASF_PASSWORD: ${{ secrets.NEXUS_PW }} @@ -39,3 +40,11 @@ jobs: ./build/mvn clean deploy -s ./build/release/asf-settings.xml -DskipTests -Pspark-provided ./build/mvn clean deploy -s ./build/release/asf-settings.xml -DskipTests -Pspark-provided,spark-3.1 -pl dev/kyuubi-extension-spark-3-1 -am ./build/mvn clean deploy -s ./build/release/asf-settings.xml -DskipTests -Pspark-provided,spark-3.2 -pl dev/kyuubi-extension-spark-3-2 -am + - name: Publish snapshot - branch-1.3 + if: ${{ matrix.branch == 'branch-1.3' }} + env: + ASF_USERNAME: ${{ secrets.NEXUS_USER }} + ASF_PASSWORD: ${{ secrets.NEXUS_PW }} + run: | + rm -rf ~/.m2/repository/org/apache/kyuubi + ./build/mvn clean deploy -s ./build/release/asf-settings.xml -DskipTests -Pspark-provided,kyuubi-extension-spark-3-1