Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(publish): add archives.jenkins.io in the rsync process for update-center in crawler #157

Merged

Conversation

smerle33
Copy link
Contributor

@smerle33 smerle33 commented Dec 4, 2024

as per jenkins-infra/helpdesk#4401
add archives.jenkins.io as a rsync destination to use it as a fallback mirror

@smerle33 smerle33 marked this pull request as draft December 4, 2024 13:55
@smerle33 smerle33 requested a review from dduportal December 4, 2024 13:57
@dduportal dduportal self-assigned this Dec 10, 2024
@dduportal
Copy link
Contributor

dduportal commented Dec 10, 2024

Let's try with a reply (which will curl the shell script of this PR) to test the credential from https://github.com/jenkins-infra/charts-secrets/pull/34#issuecomment-2532027144:

if (infra.isTrusted()) {
        stage('Publish') {
            withCredentials([[$class: 'ZipFileBinding', credentialsId: 'update-center-publish-env', variable: 'UPDATE_CENTER_FILESHARES_ENV_FILES']]) {
+               sh 'curl -sSL https://raw.githubusercontent.com/jenkins-infra/crawler/003c32fee07337141153b207bf43d0f9175398d9/.jenkins-scripts/publish.sh -o ./.jenkins-scripts/publish.sh'
                sh 'bash ./.jenkins-scripts/publish.sh'
            }
        }
    }

@dduportal
Copy link
Contributor

Let's try with a reply (which will curl the shell script of this PR) to test the credential from jenkins-infra/charts-secrets#34 (comment):

if (infra.isTrusted()) {
        stage('Publish') {
            withCredentials([[$class: 'ZipFileBinding', credentialsId: 'update-center-publish-env', variable: 'UPDATE_CENTER_FILESHARES_ENV_FILES']]) {
+               sh 'curl -sSL https://raw.githubusercontent.com/jenkins-infra/crawler/003c32fee07337141153b207bf43d0f9175398d9/.jenkins-scripts/publish.sh -o ./.jenkins-scripts/publish.sh'
                sh 'bash ./.jenkins-scripts/publish.sh'
            }
        }
    }

Initial run failed with the error

rsync: [Receiver] mkdir "/srv/release/update-center/updates" failed: No such file or directory (2)

=> but at least we now know credentials are good 👍

@dduportal
Copy link
Contributor

@dduportal dduportal marked this pull request as ready for review December 10, 2024 16:04
@dduportal
Copy link
Contributor

@dduportal dduportal merged commit a19deb1 into jenkins-infra:main Dec 10, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants