Skip to content
This repository has been archived by the owner on Aug 16, 2024. It is now read-only.

Commit

Permalink
Next try #29
Browse files Browse the repository at this point in the history
Signed-off-by: Ihor Okhrimenko <[email protected]>
  • Loading branch information
Ohrimenko1988 committed Jun 3, 2020
1 parent 6a763ca commit 5a0f264
Showing 1 changed file with 30 additions and 28 deletions.
58 changes: 30 additions & 28 deletions .ci/cico-devfile-pr-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,27 +13,27 @@



function getOpenshiftLogs() {
echo "====== Che server logs ======"
oc logs $(oc get pods --selector=component=che -o jsonpath="{.items[].metadata.name}") || true
echo "====== Keycloak logs ======"
oc logs $(oc get pods --selector=component=keycloak -o jsonpath="{.items[].metadata.name}") || true
echo "====== Che operator logs ======"
oc logs $(oc get pods --selector=app=che-operator -o jsonpath="{.items[].metadata.name}") || true
}

function archiveArtifacts() {
JOB_NAME=$1
DATE=$(date +"%m-%d-%Y-%H-%M")
echo "Archiving artifacts from ${DATE} for ${JOB_NAME}/${BUILD_NUMBER}"
cd /root/payload
ls -la ./artifacts.key
chmod 600 ./artifacts.key
chown $(whoami) ./artifacts.key
mkdir -p ./che/${JOB_NAME}/${BUILD_NUMBER}
cp -R ./report ./che/${JOB_NAME}/${BUILD_NUMBER}/ | true
rsync --password-file=./artifacts.key -Hva --partial --relative ./che/${JOB_NAME}/${BUILD_NUMBER} [email protected]::devtools/
}
# function getOpenshiftLogs() {
# echo "====== Che server logs ======"
# oc logs $(oc get pods --selector=component=che -o jsonpath="{.items[].metadata.name}") || true
# echo "====== Keycloak logs ======"
# oc logs $(oc get pods --selector=component=keycloak -o jsonpath="{.items[].metadata.name}") || true
# echo "====== Che operator logs ======"
# oc logs $(oc get pods --selector=app=che-operator -o jsonpath="{.items[].metadata.name}") || true
# }

# function archiveArtifacts() {
# JOB_NAME=$1
# DATE=$(date +"%m-%d-%Y-%H-%M")
# echo "Archiving artifacts from ${DATE} for ${JOB_NAME}/${BUILD_NUMBER}"
# cd /root/payload
# ls -la ./artifacts.key
# chmod 600 ./artifacts.key
# chown $(whoami) ./artifacts.key
# mkdir -p ./che/${JOB_NAME}/${BUILD_NUMBER}
# cp -R ./report ./che/${JOB_NAME}/${BUILD_NUMBER}/ | true
# rsync --password-file=./artifacts.key -Hva --partial --relative ./che/${JOB_NAME}/${BUILD_NUMBER} [email protected]::devtools/
# }

set -x
set -e
Expand All @@ -58,10 +58,12 @@ ls -al common-qe
export IS_TESTS_FAILED="false"
export FAIL_MESSAGE="Build failed."

. cico_functions.sh
# . cico_functions.sh

# load_jenkins_vars
# install_deps
# setup_environment

load_jenkins_vars
install_deps
setup_environment

# Build & push.
Expand All @@ -73,10 +75,10 @@ buildAndPushRepoDockerImage "$TAG"
# export FAIL_MESSAGE="Build passed. Image is available on $IMAGE_NAME"

# Install test deps
installOC
installKVM
installAndStartMinishift
installJQ
# installOC
# installKVM
# installAndStartMinishift
# installJQ

bash <(curl -sL https://www.eclipse.org/che/chectl/) --channel=next

Expand Down

0 comments on commit 5a0f264

Please sign in to comment.