You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/workflows/02-build-obs.yml
+14-6Lines changed: 14 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -173,12 +173,20 @@ jobs:
173
173
pkgname="${{ needs.build.outputs.pkgname }}"
174
174
if [ "$COMPONENT" = "main" ]; then
175
175
osc co deepin:CI:TestingIntegration:${TOPIC}/${pkgname} && cd $_
176
-
if [ -z $(osc buildinfo testing ${ARCH} |grep "<error>excluded</error>") ];then osc buildlog testing ${ARCH}; else echo "${ARCH} build excluded"; fi
177
-
if [ "$(osc api -X GET /build/deepin:CI:TestingIntegration:${TOPIC}/testing/${ARCH}/${pkgname}/_status |grep 'succeeded')" = "" -a "$(osc api -X GET /build/deepin:CI:TestingIntegration:${TOPIC}/testing/${ARCH}/${pkgname}/_status |grep 'finished')" = "" ];\
178
-
then echo "${ARCH} build failed" && -1; else echo "${ARCH} build succeeded"; fi
176
+
if [ -z $(osc buildinfo testing ${ARCH} |grep "<error>excluded</error>") ]; then
177
+
osc buildlog testing ${ARCH}
178
+
if [ "$(osc api -X GET /build/deepin:CI:TestingIntegration:${TOPIC}/testing/${ARCH}/${pkgname}/_status |grep 'succeeded')" = "" -a "$(osc api -X GET /build/deepin:CI:TestingIntegration:${TOPIC}/testing/${ARCH}/${pkgname}/_status |grep 'finished')" = "" ];\
179
+
then echo "${ARCH} build failed" && -1; else echo "${ARCH} build succeeded"; fi
180
+
else
181
+
echo "${ARCH} build excluded"
182
+
fi
179
183
else
180
184
osc co deepin:CI:TestingIntegration:${TOPIC}:${COMPONENT}/${pkgname} && cd $_
181
-
if [ -z $(osc buildinfo testing ${ARCH} |grep "<error>excluded</error>") ];then osc buildlog testing ${ARCH}; else echo "${ARCH} build excluded"; fi
182
-
if [ "$(osc api -X GET /build/deepin:CI:TestingIntegration:${TOPIC}:${COMPONENT}/testing/${ARCH}/${pkgname}/_status |grep 'succeeded')" = "" -a "$(osc api -X GET /build/deepin:CI:TestingIntegration:${TOPIC}:${COMPONENT}/testing/${ARCH}/${pkgname}/_status |grep 'finished')" = "" ];\
183
-
then echo "${ARCH} build failed" && -1; else echo "${ARCH} build succeeded"; fi
185
+
if [ -z $(osc buildinfo testing ${ARCH} |grep "<error>excluded</error>") ]; then
186
+
osc buildlog testing ${ARCH}
187
+
if [ "$(osc api -X GET /build/deepin:CI:TestingIntegration:${TOPIC}:${COMPONENT}/testing/${ARCH}/${pkgname}/_status |grep 'succeeded')" = "" -a "$(osc api -X GET /build/deepin:CI:TestingIntegration:${TOPIC}:${COMPONENT}/testing/${ARCH}/${pkgname}/_status |grep 'finished')" = "" ];\
188
+
then echo "${ARCH} build failed" && -1; else echo "${ARCH} build succeeded"; fi
0 commit comments