Loading .gitlab-ci.yml +5 −5 Original line number Diff line number Diff line Loading @@ -334,7 +334,7 @@ job_publish_release: # Add the new key(s) to known_hosts - ssh-keyscan -t rsa packages.sns.gov >> ~/.ssh/known_hosts - ssh xv6@packages.sns.gov "ls -la; pwd" # Verify destination paths exist on packages.sns.gov # Verify destination directories exist on packages.sns.gov - ssh xv6@packages.sns.gov "test -d /var/www/html/distros/rhel/9/sns/RPMS/noarch" - ssh xv6@packages.sns.gov "test -d /var/www/html/distros/rhel/9/sns/SRPMS" - test $(ls -1 ./rpmbuild/RPMS/noarch/ | wc -l) -eq 1 Loading @@ -343,6 +343,7 @@ job_publish_release: - read -r fn_srpm <<< $(ls -1 ./rpmbuild/SRPMS/) - echo ${fn_rpm} - echo ${fn_srpm} # Verify that we're not overwriting existing rpms with the same name - | if ssh xv6@packages.sns.gov "test -f /var/www/html/distros/rhel/9/sns/RPMS/noarch/${fn_rpm}"; then echo . Loading @@ -352,7 +353,6 @@ job_publish_release: echo . exit 1 fi - | if ssh xv6@packages.sns.gov "test -f /var/www/html/distros/rhel/9/sns/SRPMS/${fn_srpm}"; then echo . Loading Loading
.gitlab-ci.yml +5 −5 Original line number Diff line number Diff line Loading @@ -334,7 +334,7 @@ job_publish_release: # Add the new key(s) to known_hosts - ssh-keyscan -t rsa packages.sns.gov >> ~/.ssh/known_hosts - ssh xv6@packages.sns.gov "ls -la; pwd" # Verify destination paths exist on packages.sns.gov # Verify destination directories exist on packages.sns.gov - ssh xv6@packages.sns.gov "test -d /var/www/html/distros/rhel/9/sns/RPMS/noarch" - ssh xv6@packages.sns.gov "test -d /var/www/html/distros/rhel/9/sns/SRPMS" - test $(ls -1 ./rpmbuild/RPMS/noarch/ | wc -l) -eq 1 Loading @@ -343,6 +343,7 @@ job_publish_release: - read -r fn_srpm <<< $(ls -1 ./rpmbuild/SRPMS/) - echo ${fn_rpm} - echo ${fn_srpm} # Verify that we're not overwriting existing rpms with the same name - | if ssh xv6@packages.sns.gov "test -f /var/www/html/distros/rhel/9/sns/RPMS/noarch/${fn_rpm}"; then echo . Loading @@ -352,7 +353,6 @@ job_publish_release: echo . exit 1 fi - | if ssh xv6@packages.sns.gov "test -f /var/www/html/distros/rhel/9/sns/SRPMS/${fn_srpm}"; then echo . Loading