X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=jjb%2Fapex%2Fapex.yml;h=f920c9b9bd80391c63bb15e846c28f480925f7b6;hb=2141a17cadce1d6d451f501d4038fcacb7b52f8f;hp=38934786b83a44f33038e484e72770f018d6993c;hpb=8035279cb2e82d5d9398b6973f729dbcdfd7c2fc;p=releng.git diff --git a/jjb/apex/apex.yml b/jjb/apex/apex.yml index 38934786b..f920c9b9b 100644 --- a/jjb/apex/apex.yml +++ b/jjb/apex/apex.yml @@ -21,8 +21,6 @@ node: opnfv-jump-1 - project-type: freestyle - logrotate: daysToKeep: 30 numToKeep: 10 @@ -48,10 +46,6 @@ refspec: '$GERRIT_REFSPEC' choosing-strategy: 'gerrit' - wrappers: - - ssh-agent-credentials: - user: '{ssh-credentials}' - triggers: - gerrit: trigger-on: @@ -88,8 +82,6 @@ node: opnfv-jump-1 - project-type: freestyle - logrotate: daysToKeep: 30 numToKeep: 40 @@ -115,10 +107,6 @@ refspec: '' choosing-strategy: 'default' - wrappers: - - ssh-agent-credentials: - user: '{ssh-credentials}' - triggers: - gerrit: trigger-on: @@ -152,8 +140,6 @@ disabled: false - project-type: freestyle - logrotate: daysToKeep: '{build-days-to-keep}' numToKeep: '{build-num-to-keep}' @@ -179,19 +165,21 @@ refspec: '' branch: '{branch}' - wrappers: - - ssh-agent-credentials: - user: '{ssh-credentials}' - triggers: - 'apex-{stream}' builders: - 'apex-build' - - 'apex-upload-artifact' - - 'apex-workspace-cleanup' - 'apex-deploy-virtual' + - 'apex-upload-artifact' - 'apex-workspace-cleanup' + - trigger-builds: + - project: 'functest-apex-{stream}' + block: true + block-thresholds: + build-step-failure-threshold: 'never' + failure-threshold: 'never' + unstable-threshold: 'FAILURE' ######################## # parameter macros @@ -318,24 +306,15 @@ echo "--------------------------------------------------------" echo - # check if we got the file - if [[ -f opnfv.properties ]]; then - # source the file so we get OPNFV vars - source opnfv.properties - RPM_INSTALL_PATH=build_output/$(basename $OPNFV_RPM_URL) - else - # get the latest.properties file in order to get info regarding latest artifact - curl -s -o $WORKSPACE/opnfv.properties http://$GS_URL/latest.properties - [[ -f opnfv.properties ]] || exit 1 - - # source the file so we get OPNFV vars - source opnfv.properties - RPM_INSTALL_PATH=$RPM_URL - fi + # source the file so we get OPNFV vars + source opnfv.properties + RPM_INSTALL_PATH=build_output/$(basename $OPNFV_RPM_URL) # update / install the new rpm - if rpm -q opnfv-apex; then - sudo yum update -y $RPM_INSTALL_PATH; + if rpm -q opnfv-apex > /dev/null; then + if sudo yum update -y $RPM_INSTALL_PATH | grep "does not update installed package"; then + sudo yum downgrade -y $RPM_INSTALL_PATH; + fi else sudo yum install -y $RPM_INSTALL_PATH; fi