diff --git a/.github/workflows/backend.yml b/.github/workflows/backend.yml index 1ff9aff4af521bb0681ea78e4d38c26a1c550a06..9abb4b38e155ec502bba36a380a2b79dd7cb613a 100644 --- a/.github/workflows/backend.yml +++ b/.github/workflows/backend.yml @@ -93,7 +93,7 @@ jobs: name: Upload Binary Package with: name: binary-package-${{ matrix.java }} - path: ./dolphinscheduler-dist/target/apache-dolphinscheduler-dev-SNAPSHOT-bin.tar.gz + path: ./dolphinscheduler-dist/target/apache-dolphinscheduler-*-SNAPSHOT-bin.tar.gz retention-days: 1 cluster-test: name: ${{ matrix.case.name }} diff --git a/.github/workflows/cluster-test/mysql/Dockerfile b/.github/workflows/cluster-test/mysql/Dockerfile index e117b86dc621e57a5ee67dc087366f21e17e56d9..f632bc3649a82f53a909241678c204674c618f16 100644 --- a/.github/workflows/cluster-test/mysql/Dockerfile +++ b/.github/workflows/cluster-test/mysql/Dockerfile @@ -20,11 +20,11 @@ FROM openjdk:8-jre-slim-buster RUN apt update ; \ apt install -y curl wget default-mysql-client sudo openssh-server netcat-traditional ; -#COPY ./dolphinscheduler-dist/target/apache-dolphinscheduler-dev-SNAPSHOT-bin.tar.gz /root/apache-dolphinscheduler-dev-SNAPSHOT-bin.tar.gz -COPY ./apache-dolphinscheduler-dev-SNAPSHOT-bin.tar.gz /root/apache-dolphinscheduler-dev-SNAPSHOT-bin.tar.gz -RUN tar -zxvf /root/apache-dolphinscheduler-dev-SNAPSHOT-bin.tar.gz -C ~ +#COPY ./dolphinscheduler-dist/target/apache-dolphinscheduler-*-SNAPSHOT-bin.tar.gz /root +COPY ./apache-dolphinscheduler-*-SNAPSHOT-bin.tar.gz /root +RUN tar -zxvf /root/apache-dolphinscheduler-*-SNAPSHOT-bin.tar.gz -C ~ -ENV DOLPHINSCHEDULER_HOME /root/apache-dolphinscheduler-dev-SNAPSHOT-bin +ENV DOLPHINSCHEDULER_HOME /root/apache-dolphinscheduler-*-SNAPSHOT-bin #Setting install.sh COPY .github/workflows/cluster-test/mysql/install_env.sh $DOLPHINSCHEDULER_HOME/bin/env/install_env.sh diff --git a/.github/workflows/cluster-test/mysql/deploy.sh b/.github/workflows/cluster-test/mysql/deploy.sh index 75b23d08a2002b184259a666ec3444e658b2d4c6..5ea6c35ddfafb16c9d03ac283b627aecf9ab8c23 100644 --- a/.github/workflows/cluster-test/mysql/deploy.sh +++ b/.github/workflows/cluster-test/mysql/deploy.sh @@ -19,7 +19,7 @@ set -euox pipefail USER=root -DOLPHINSCHEDULER_HOME=/root/apache-dolphinscheduler-dev-SNAPSHOT-bin +DOLPHINSCHEDULER_HOME=/root/apache-dolphinscheduler-*-SNAPSHOT-bin #Create database mysql -hmysql -P3306 -uroot -p123456 -e "CREATE DATABASE IF NOT EXISTS dolphinscheduler DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci;" diff --git a/.github/workflows/cluster-test/mysql/install_env.sh b/.github/workflows/cluster-test/mysql/install_env.sh index b7c9797e2057a02c04754c05e049e4437e31d327..e43813479bb14e7f29839e52a79e6e1dd8153036 100644 --- a/.github/workflows/cluster-test/mysql/install_env.sh +++ b/.github/workflows/cluster-test/mysql/install_env.sh @@ -50,7 +50,7 @@ apiServers=${apiServers:-"localhost"} # The directory to install DolphinScheduler for all machine we config above. It will automatically be created by `install.sh` script if not exists. # Do not set this configuration same as the current path (pwd) -installPath=${installPath:-"/root/apache-dolphinscheduler-dev-SNAPSHOT-bin"} +installPath=${installPath:-"/root/apache-dolphinscheduler-*-SNAPSHOT-bin"} # The user to deploy DolphinScheduler for all machine we config above. For now user must create by yourself before running `install.sh` # script. The user needs to have sudo privileges and permissions to operate hdfs. If hdfs is enabled than the root directory needs diff --git a/.github/workflows/cluster-test/mysql/running_test.sh b/.github/workflows/cluster-test/mysql/running_test.sh index 9746addfe92b4d3cde2f9258e310a05aef372aff..eeaa06c2d6670b591565fd42280dfc45a52efde6 100644 --- a/.github/workflows/cluster-test/mysql/running_test.sh +++ b/.github/workflows/cluster-test/mysql/running_test.sh @@ -45,7 +45,7 @@ do fi if [[ $i -eq $TIMEOUT ]];then - docker exec -u root ds bash -c "cat /root/apache-dolphinscheduler-dev-SNAPSHOT-bin/master-server/logs/dolphinscheduler-master.log" + docker exec -u root ds bash -c "cat /root/apache-dolphinscheduler-*-SNAPSHOT-bin/master-server/logs/dolphinscheduler-master.log" echo "cluster start health check failed" exit $START_HEALTHCHECK_EXITCODE fi @@ -54,7 +54,7 @@ do done #Stop Cluster -docker exec -u root ds bash -c "/root/apache-dolphinscheduler-dev-SNAPSHOT-bin/bin/stop-all.sh" +docker exec -u root ds bash -c "/root/apache-dolphinscheduler-*-SNAPSHOT-bin/bin/stop-all.sh" #Cluster stop health check sleep 5 diff --git a/.github/workflows/cluster-test/postgresql/Dockerfile b/.github/workflows/cluster-test/postgresql/Dockerfile index 2cb7e0f6144b06c4038ba02161923b93c0007132..0275c5c3807cf1da5994537abf017a808c3861f6 100644 --- a/.github/workflows/cluster-test/postgresql/Dockerfile +++ b/.github/workflows/cluster-test/postgresql/Dockerfile @@ -20,11 +20,11 @@ FROM openjdk:8-jre-slim-buster RUN apt update ; \ apt install -y curl wget sudo openssh-server netcat-traditional ; -#COPY ./dolphinscheduler-dist/target/apache-dolphinscheduler-dev-SNAPSHOT-bin.tar.gz /root/apache-dolphinscheduler-dev-SNAPSHOT-bin.tar.gz -COPY ./apache-dolphinscheduler-dev-SNAPSHOT-bin.tar.gz /root/apache-dolphinscheduler-dev-SNAPSHOT-bin.tar.gz -RUN tar -zxvf /root/apache-dolphinscheduler-dev-SNAPSHOT-bin.tar.gz -C ~ +#COPY ./dolphinscheduler-dist/target/apache-dolphinscheduler-*-SNAPSHOT-bin.tar.gz /root +COPY ./apache-dolphinscheduler-*-SNAPSHOT-bin.tar.gz /root +RUN tar -zxvf /root/apache-dolphinscheduler-*-SNAPSHOT-bin.tar.gz -C ~ -ENV DOLPHINSCHEDULER_HOME /root/apache-dolphinscheduler-dev-SNAPSHOT-bin +ENV DOLPHINSCHEDULER_HOME /root/apache-dolphinscheduler-*-SNAPSHOT-bin #Setting install.sh COPY .github/workflows/cluster-test/postgresql/install_env.sh $DOLPHINSCHEDULER_HOME/bin/env/install_env.sh diff --git a/.github/workflows/cluster-test/postgresql/deploy.sh b/.github/workflows/cluster-test/postgresql/deploy.sh index abac95020dc377b5ec54aa4e79c7f9d46a93e068..c8e10c54251e08e0bdce0189ca284a829e22eda2 100644 --- a/.github/workflows/cluster-test/postgresql/deploy.sh +++ b/.github/workflows/cluster-test/postgresql/deploy.sh @@ -19,7 +19,7 @@ set -euox pipefail USER=root -DOLPHINSCHEDULER_HOME=/root/apache-dolphinscheduler-dev-SNAPSHOT-bin +DOLPHINSCHEDULER_HOME=/root/apache-dolphinscheduler-*-SNAPSHOT-bin #Sudo sed -i '$a'$USER' ALL=(ALL) NOPASSWD: NOPASSWD: ALL' /etc/sudoers diff --git a/.github/workflows/cluster-test/postgresql/install_env.sh b/.github/workflows/cluster-test/postgresql/install_env.sh index b7c9797e2057a02c04754c05e049e4437e31d327..e43813479bb14e7f29839e52a79e6e1dd8153036 100644 --- a/.github/workflows/cluster-test/postgresql/install_env.sh +++ b/.github/workflows/cluster-test/postgresql/install_env.sh @@ -50,7 +50,7 @@ apiServers=${apiServers:-"localhost"} # The directory to install DolphinScheduler for all machine we config above. It will automatically be created by `install.sh` script if not exists. # Do not set this configuration same as the current path (pwd) -installPath=${installPath:-"/root/apache-dolphinscheduler-dev-SNAPSHOT-bin"} +installPath=${installPath:-"/root/apache-dolphinscheduler-*-SNAPSHOT-bin"} # The user to deploy DolphinScheduler for all machine we config above. For now user must create by yourself before running `install.sh` # script. The user needs to have sudo privileges and permissions to operate hdfs. If hdfs is enabled than the root directory needs diff --git a/.github/workflows/cluster-test/postgresql/running_test.sh b/.github/workflows/cluster-test/postgresql/running_test.sh index 9746addfe92b4d3cde2f9258e310a05aef372aff..eeaa06c2d6670b591565fd42280dfc45a52efde6 100644 --- a/.github/workflows/cluster-test/postgresql/running_test.sh +++ b/.github/workflows/cluster-test/postgresql/running_test.sh @@ -45,7 +45,7 @@ do fi if [[ $i -eq $TIMEOUT ]];then - docker exec -u root ds bash -c "cat /root/apache-dolphinscheduler-dev-SNAPSHOT-bin/master-server/logs/dolphinscheduler-master.log" + docker exec -u root ds bash -c "cat /root/apache-dolphinscheduler-*-SNAPSHOT-bin/master-server/logs/dolphinscheduler-master.log" echo "cluster start health check failed" exit $START_HEALTHCHECK_EXITCODE fi @@ -54,7 +54,7 @@ do done #Stop Cluster -docker exec -u root ds bash -c "/root/apache-dolphinscheduler-dev-SNAPSHOT-bin/bin/stop-all.sh" +docker exec -u root ds bash -c "/root/apache-dolphinscheduler-*-SNAPSHOT-bin/bin/stop-all.sh" #Cluster stop health check sleep 5