@@ -424,7 +424,7 @@ BUILD_ID="$( oc get builds --namespace test -o jsonpath='{.items[0].metadata.nam
424
424
# Ensure that the build pod doesn't allow exec
425
425
os::cmd::expect_failure_and_text " oc rsh ${BUILD_ID} -build" ' forbidden'
426
426
os::cmd::try_until_text " oc get builds --namespace test -o jsonpath='{.items[0].status.phase}'" " Complete" " $(( 10 * TIME_MIN )) "
427
- os::cmd::expect_success " oc build- logs --namespace test ' ${BUILD_ID} ' > '${LOG_DIR} /test-build.log'"
427
+ os::cmd::expect_success " oc logs build/ ${BUILD_ID} --namespace test > '${LOG_DIR} /test-build.log'"
428
428
wait_for_app " test"
429
429
430
430
# logs can't be tested without a node, so has to be in e2e
@@ -481,7 +481,7 @@ os::cmd::expect_success_and_text "oc rsh ${frontend_pod} ls /tmp/sample-app" 'ap
481
481
# curl -k -X POST $API_SCHEME://$API_HOST:$API_PORT/oapi/v1/namespaces/docker/buildconfigs/ruby-sample-build/webhooks/secret101/generic && sleep 3
482
482
# BUILD_ID="$( oc get builds --namespace docker -o jsonpath='{.items[0].metadata.name}' )"
483
483
# os::cmd::try_until_text "oc get builds --namespace docker -o jsonpath='{.items[0].status.phase}'" "Complete" "$(( 10*TIME_MIN ))"
484
- # os::cmd::expect_success "oc build- logs --namespace docker '${BUILD_ID}' > '${LOG_DIR}/docker-build.log'"
484
+ # os::cmd::expect_success "oc logs build/${BUILD_ID} --namespace docker > '${LOG_DIR}/docker-build.log'"
485
485
# wait_for_app "docker"
486
486
487
487
# os::log::info "Applying Custom application config"
@@ -490,7 +490,7 @@ os::cmd::expect_success_and_text "oc rsh ${frontend_pod} ls /tmp/sample-app" 'ap
490
490
# curl -k -X POST $API_SCHEME://$API_HOST:$API_PORT/oapi/v1/namespaces/custom/buildconfigs/ruby-sample-build/webhooks/secret101/generic && sleep 3
491
491
# BUILD_ID="$( oc get builds --namespace custom -o jsonpath='{.items[0].metadata.name}' )"
492
492
# os::cmd::try_until_text "oc get builds --namespace custom -o jsonpath='{.items[0].status.phase}'" "Complete" "$(( 10*TIME_MIN ))"
493
- # os::cmd::expect_success "oc build- logs --namespace custom '${BUILD_ID}' > '${LOG_DIR}/custom-build.log'"
493
+ # os::cmd::expect_success "oc logs build/${BUILD_ID} --namespace custom > '${LOG_DIR}/custom-build.log'"
494
494
# wait_for_app "custom"
495
495
496
496
os::log::info " Back to 'default' project with 'admin' user..."
0 commit comments