X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=blobdiff_plain;f=jjb%2Fakraino-templates%2Fakraino-ta-common-macros.yaml;h=58f92cd29719dce23f9d33333a10b5a9818ff57b;hb=23b8fd16e40ebf79e64a0cbc384d31beb86130da;hp=feb1bc2df0680f9c75ec4a03ea10badb79f70b13;hpb=0904fdd5e0e3b113ee90e77c646a7f156d878762;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 feb1bc2..58f92cd 100644 --- a/jjb/akraino-templates/akraino-ta-common-macros.yaml +++ b/jjb/akraino-templates/akraino-ta-common-macros.yaml @@ -132,7 +132,7 @@ # Skip RPM build in case no *.spec file is found within the {project-to-build} if [ -n "$(find {project-to-build} -name '*.spec')" ] then - if apt --version 2>1 >/dev/null; then + if apt --version >/dev/null 2>&1; then # We need a specific version of mock (1.4.14) and devtools # not available in Ubuntu/Debian repos, so fetch them from RHEL mirrors if [ "$(mock --version 2>/dev/null)" != '1.4.14' ]; then @@ -141,17 +141,17 @@ sudo apt update # Explicitly install mock dependencies sudo apt install -y createrepo alien systemd-container python-pip \ - python-decoratortools yum-utils usermode pigz + python-peak.util.decorators yum-utils usermode pigz 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 + sudo dpkg --force-overwrite -i *.deb rm -rf *.rpm *.deb # RHEL tools hardcode the full path for certain distro tools sudo ln -sf /bin/tar /usr/bin/gtar sudo ln -sf /bin/machinectl /bin/df /usr/bin/ # Some mock dependencies are only available via pip - sudo pip install distro pyroute2 + sudo pip install distro pyroute2 lxml urllib3 fi else sudo yum install -y createrepo @@ -189,16 +189,6 @@ files: - file-id: 'ta-settings' variable: 'SETTINGS_FILE' - - file-id: lftoolsini - target: "$HOME/.config/lftools/lftools.ini" - - file-id: sigul-config - variable: SIGUL_CONFIG - - file-id: sigul-password - variable: SIGUL_PASSWORD - - file-id: sigul-pki - variable: SIGUL_PKI - - file-id: signing-pubkey - variable: SIGNING_PUBKEY - inject: properties-content: 'ALT_NEXUS_URL=https://nexus3.akraino.org' - lf-infra-create-netrc: @@ -211,8 +201,6 @@ # Ensure python-tools are installed in case job template does not # call the lf-infra-pre-build macro. - ../../global-jjb/shell/python-tools-install.sh - - shell: !include-raw: ../global-jjb/shell/sigul-configuration.sh - - shell: !include-raw: ../global-jjb/shell/sigul-install.sh - shell: !include-raw: - ../shell/ta-rpm-deploy.sh - shell: !include-raw: @@ -227,24 +215,12 @@ files: - file-id: 'ta-settings' variable: 'SETTINGS_FILE' - - file-id: lftoolsini - target: "$HOME/.config/lftools/lftools.ini" - - file-id: sigul-config - variable: SIGUL_CONFIG - - file-id: sigul-password - variable: SIGUL_PASSWORD - - file-id: sigul-pki - variable: SIGUL_PKI - - file-id: signing-pubkey - variable: SIGNING_PUBKEY - lf-infra-create-netrc: server-id: images-snapshots - shell: !include-raw: # Ensure python-tools are installed in case job template does not # call the lf-infra-pre-build macro. - ../../global-jjb/shell/python-tools-install.sh - - shell: !include-raw: ../global-jjb/shell/sigul-configuration.sh - - shell: !include-raw: ../global-jjb/shell/sigul-install.sh - shell: !include-raw: - ../shell/ta-iso-deploy.sh - shell: !include-raw: @@ -342,7 +318,7 @@ if apt --version 2>1 >/dev/null; then if ! createrepo --version 2>1 >/dev/null; then sudo apt update - sudo apt install -y createrepo libguestfs-tools jq + sudo apt install -y createrepo libguestfs-tools jq libvirt-daemon-system fi else sudo yum -y install createrepo libguestfs-tools-c jq