Skip to content

Commit edbda11

Browse files
Revert "support PR in sign-for-dev-release.yml"
This reverts commit 730db20.
1 parent 1296d66 commit edbda11

File tree

1 file changed

+4
-17
lines changed

1 file changed

+4
-17
lines changed

.azure-pipelines/sign-for-dev-release.yml

Lines changed: 4 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -80,29 +80,16 @@ extends:
8080
inputs:
8181
targetType: inline
8282
script: |-
83-
CUSTOM_BRANCH=$(TOOLKIT_BRANCH)
84-
SOURCE_BRANCH=$(System.PullRequest.SourceBranch 2>/dev/null)
85-
TARGET_BRANCH=$(System.PullRequest.TargetBranch 2>/dev/null)
83+
TARGET_BRANCH=$(TOOLKIT_BRANCH)
8684
8785
ls ~/.m2/repository/com/microsoft/azure/azure-toolkit-*
8886
cd ..
8987
git clone https://github.com/microsoft/azure-maven-plugins.git
9088
cd azure-maven-plugins/azure-toolkit-libs
9189
92-
custom_existed_in_remote=$(git ls-remote --heads origin ${CUSTOM_BRANCH})
93-
source_existed_in_remote=$(git ls-remote --heads origin ${SOURCE_BRANCH})
94-
target_existed_in_remote=$(git ls-remote --heads origin ${TARGET_BRANCH})
95-
if [[ -n ${custom_existed_in_remote} ]]; then
96-
BRANCH=$CUSTOM_BRANCH
97-
elif [[ -n ${source_existed_in_remote} ]]; then
98-
BRANCH=$SOURCE_BRANCH
99-
elif [[ -n ${target_existed_in_remote} ]]; then
100-
BRANCH=$TARGET_BRANCH
101-
fi
102-
103-
echo "build azure-toolkit-libs: $BRANCH"
104-
git fetch origin $BRANCH
105-
git checkout $BRANCH
90+
echo "build azure-toolkit-libs: $TARGET_BRANCH"
91+
git fetch origin $TARGET_BRANCH
92+
git checkout $TARGET_BRANCH
10693
10794
git branch
10895
mvn clean install -T 4 -Dmaven.test.skip=true -Dmdep.analyze.skip=true -Dmaven.source.skip=true -Dmaven.javadoc.skip=true -Dcheckstyle.skip -B|| exit -1

0 commit comments

Comments
 (0)