File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -123,9 +123,10 @@ bitbucket_pullrequest_progress_comment() {
123
123
# $2: hash of merge commit
124
124
# $3: hash of source commit
125
125
# $4: hash of target commit
126
- build_url=" $ATC_EXTERNAL_URL /teams/$( rawurlencode $BUILD_TEAM_NAME ) /pipelines/$( rawurlencode $BUILD_PIPELINE_NAME ) /jobs/$( rawurlencode $BUILD_JOB_NAME ) /builds/$( rawurlencode $BUILD_NAME ) "
126
+ build_url_job=" $ATC_EXTERNAL_URL /teams/$( rawurlencode $BUILD_TEAM_NAME ) /pipelines/$( rawurlencode $BUILD_PIPELINE_NAME ) /jobs/$( rawurlencode $BUILD_JOB_NAME ) "
127
+ build_url=" ${build_url_job} /builds/$( rawurlencode $BUILD_NAME ) "
127
128
build_status_pre=" [*Build"
128
- build_status_post=" * ** ${BUILD_PIPELINE_NAME} - ${BUILD_JOB_NAME} ** for $2 "
129
+ build_status_post=" * at **[ ${BUILD_PIPELINE_NAME} > ${BUILD_JOB_NAME} ]( $build_url_job ) ** for $2 "
129
130
if [ " $2 " == " $3 " ]; then
130
131
build_status_post+=" into $4 ]"
131
132
else
Original file line number Diff line number Diff line change @@ -162,12 +162,16 @@ if [ -n "$comments" ]; then
162
162
fi
163
163
164
164
# edit timestamp to force new build when rebuild_phrase is included in comments
165
- if [ " $skip_verify " = = " true" ]; then
165
+ if [ " $skip_verify " ! = " true" ]; then
166
166
if echo " $text " | grep -Ec " $rebuild_phrase " > /dev/null; then
167
167
prq_verify_date=$(( ($(echo "$comment " | jq - r '.createdDate') + 500 ) / 1000 ))
168
168
skip_verify=true
169
169
fi
170
170
fi
171
+
172
+ if [ " $skip_verify " == " true" -a " $commented " == " true" ]; then
173
+ break
174
+ fi
171
175
done <<< " $comments"
172
176
fi
173
177
You can’t perform that action at this time.
0 commit comments