X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=blobdiff_plain;f=jjb%2Fakraino-templates%2Fakraino-ta-common-macros.yaml;h=a655fdd88bbbc7c15a45dbd9b4923f28a3409e85;hb=eef1e0c557358ea84241797f24a8ef729dad1fba;hp=2edf8debe9ec23ff426ec8e9e2d2ac04b231b30e;hpb=735d1cdb694403fd1c2b60a673d0aba8e7ef5545;p=ci-management.git diff --git a/jjb/akraino-templates/akraino-ta-common-macros.yaml b/jjb/akraino-templates/akraino-ta-common-macros.yaml index 2edf8de..a655fdd 100644 --- a/jjb/akraino-templates/akraino-ta-common-macros.yaml +++ b/jjb/akraino-templates/akraino-ta-common-macros.yaml @@ -73,6 +73,32 @@ choosing-strategy: '{choosing-strategy}' basedir: '{basedir}' +- scm: + name: ta-lf-infra-gerrit-scm-merge + scm: + - ta-lf-infra-gerrit-scm: + jenkins-ssh-credential: '{jenkins-ssh-credential}' + git-url: '{git-url}' + refspec: '{refspec}' + branch: '{branch}' + submodule-recursive: '{submodule-recursive}' + submodule-timeout: '{submodule-timeout}' + basedir: '{basedir}' + choosing-strategy: default + +- scm: + name: ta-lf-infra-gerrit-scm-verify + scm: + - ta-lf-infra-gerrit-scm: + jenkins-ssh-credential: '{jenkins-ssh-credential}' + git-url: '{git-url}' + refspec: '{refspec}' + branch: '{branch}' + submodule-recursive: '{submodule-recursive}' + submodule-timeout: '{submodule-timeout}' + basedir: '{basedir}' + choosing-strategy: gerrit + ########### # BUILDER # ########### @@ -81,7 +107,7 @@ builders: - shell: |2- echo "---> Node UUID:" - curl -s http://169.254.169.254/openstack/latest/meta_data.json | python -c 'import sys, json; data = json.load(sys.stdin); print(data["uuid"])' + curl -s http://169.254.169.254/openstack/latest/meta_data.json | python -c 'import sys, json; data = json.load(sys.stdin); print(data["uuid"])' || true - builder: name: ta-builder-tox @@ -114,7 +140,7 @@ python-decoratortools yum-utils usermode pigz # We need a specific version of mock (1.4.14) and devtools # not available in Ubuntu/Debian repos, so fetch them from RHEL mirrors - wget http://mirror.centos.org/centos/7.6.1810/os/x86_64/Packages/rpmdevtools-8.3-5.el7.noarch.rpm \ + wget http://vault.centos.org/centos/7.6.1810/os/x86_64/Packages/rpmdevtools-8.3-5.el7.noarch.rpm \ https://kojipkgs.fedoraproject.org/packages/mock/1.4.14/2.el7/noarch/mock-1.4.14-2.el7.noarch.rpm sudo alien -d *.rpm sudo dpkg -i *.deb @@ -164,6 +190,10 @@ properties-content: 'ALT_NEXUS_URL=https://nexus3.akraino.org' - lf-infra-create-netrc: server-id: rpm.snapshots + - inject: + properties-content: | + ALT_NEXUS_URL= + SERVER_ID= - shell: !include-raw: # Ensure python-tools are installed in case job template does not # call the lf-infra-pre-build macro. @@ -171,8 +201,6 @@ - ../shell/ta-rpm-deploy.sh - shell: !include-raw: - ../../global-jjb/shell/logs-clear-credentials.sh - - inject: - properties-content: 'ALT_NEXUS_URL=' - builder: name: ta-lf-infra-ship-isos @@ -314,6 +342,11 @@ - branch-compare-type: 'ANT' branch-pattern: '**/{branch}' readable-message: true + skip-vote: + successful: '{gerrit-skip-vote}' + failed: '{gerrit-skip-vote}' + unstable: '{gerrit-skip-vote}' + notbuilt: '{gerrit-skip-vote}' - trigger: name: ta-trigger-job-merge