|
7 | 7 | # Each task named XX expects a file named 'env-XX' in this directory to be sourced by the script to retrieve settings for the task. |
8 | 8 | RUN_STAGES="${RUN_STAGES:-generate-site|sync-plugins|sync-uc}" |
9 | 9 | SYNC_UC_TASKS="${SYNC_UC_TASKS:-rsync-archives.jenkins.io|localrsync-updates.jenkins.io-content|localrsync-updates.jenkins.io-redirections|s3sync-westeurope|s3sync-eastamerica}" |
10 | | -MIRRORBITS_HOST="${MIRRORBITS_HOST:-updates.jenkins.io.trusted.ci.jenkins.io}" |
| 10 | +MIRRORBITS_HOST="${MIRRORBITS_HOST:-updates.jenkins.io.privatelink.azurecr.io}" |
11 | 11 |
|
12 | 12 | # Split strings to arrays for feature flags setup |
13 | 13 | run_stages=() |
|
36 | 36 | ## $download_dir folder processing |
37 | 37 | # push plugins to mirrors.jenkins-ci.org |
38 | 38 | chmod -R a+r "${download_dir}" |
| 39 | + # TODO: remove in favor of the local NFS mount |
39 | 40 | rsync -rlptDvz --chown=mirrorbrain:www-data --size-only "${download_dir}"/plugins/ "${RSYNC_USER}@${UPDATES_SITE}":/srv/releases/jenkins/plugins |
| 41 | + # Also copy on the new local NFS (no compress, no need to chown) - |
| 42 | + # TODO: use the credentials to retrieve the mount point |
| 43 | + rsync --recursive --links --size-only \ |
| 44 | + --times --perms --verbose --devices --specials \ |
| 45 | + --size-only "${download_dir}"/plugins/ /data-storage-jenkins-io/get.jenkins.io/mirrorbits/plugins/ |
40 | 46 |
|
41 | 47 | # Invoke a minimal mirrorsync to mirrorbits which will use the 'recent-releases.json' file as input |
| 48 | + # TODO: remove in favor of the local NFS mount |
42 | 49 | ssh "${RSYNC_USER}@${UPDATES_SITE}" "cat > /tmp/update-center2-rerecent-releases.json" < "${www2_dir}"/experimental/recent-releases.json |
43 | 50 | ssh "${RSYNC_USER}@${UPDATES_SITE}" "/srv/releases/sync-recent-releases.sh /tmp/update-center2-rerecent-releases.json" |
44 | 51 | fi |
|
74 | 81 | # Required variables that should now be set from the .env file |
75 | 82 | : "${RSYNC_HOST?}" "${RSYNC_USER?}" "${RSYNC_GROUP?}" "${RSYNC_REMOTE_DIR?}" "${RSYNC_IDENTITY_NAME?}" |
76 | 83 |
|
77 | | - time rsync --chown="${RSYNC_USER}":"${RSYNC_GROUP}" --recursive --links --perms --times -D \ |
| 84 | + time rsync --chown="${RSYNC_USER}":"${RSYNC_GROUP}" --recursive --links --perms --times --devices --specials \ |
78 | 85 | --rsh="ssh -i ${UPDATE_CENTER_FILESHARES_ENV_FILES}/${RSYNC_IDENTITY_NAME}" `# rsync identity file is stored with .env files` \ |
79 | 86 | --checksum --verbose --compress \ |
80 | 87 | --exclude=/updates `# populated by https://github.com/jenkins-infra/crawler` \ |
|
87 | 94 | # Required variables that should now be set from the .env file |
88 | 95 | : "${RSYNC_REMOTE_DIR?}" |
89 | 96 |
|
90 | | - time rsync --recursive --links --times -D \ |
| 97 | + time rsync --recursive --links --times --devices --specials \ |
91 | 98 | --checksum --verbose \ |
92 | 99 | --exclude=/updates `# populated by https://github.com/jenkins-infra/crawler` \ |
93 | 100 | --delete `# delete old sites` \ |
|
0 commit comments