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

Should use https protocol instead of http for repo.jenkins-ci.org/public as well as releases #148

Open
nelsonq opened this issue Oct 19, 2023 · 0 comments

Comments

@nelsonq
Copy link

nelsonq commented Oct 19, 2023

Expected Behavior

make test-pipeline should pass on examples/helper-script

Please describe the expected behavior of the project.

Actual Behavior

make test-pipeline fails on examples/helper-script module on my side.

Please describe what the project is doing instead of the expected behavior

Steps to Reproduce

Please include a numbered list of steps that other people can use to recreate the "Actual Behavior."

  1. First Step
    Just run make test-pipeline under examples/helper-script module
    It fails with following error messages.

Additional Information

[ERROR] Failed to execute goal on project jenkinsfile-test-helper-script: Could not resolve dependencies for project com.example:jenkinsfile-test-helper-script:jar:0.0.0-SNAPSHOT: Failed to collect dependencies at org.jenkins-ci.main:jenkins-core:jar:2.102: Failed to read artifact descriptor for org.jenkins-ci.main:jenkins-core:jar:2.102: The following artifacts could not be resolved: org.jenkins-ci.main:jenkins-core:pom:2.102 (present, but unavailable): Could not transfer artifact org.jenkins-ci.main:jenkins-core:pom:2.102 from/to maven-default-http-blocker (http://0.0.0.0/): Blocked mirror for repositories: [jenkins-releases (http://repo.jenkins-ci.org/releases, default, releases+snapshots), jenkins-public (http://repo.jenkins-ci.org/public, default, releases+snapshots)] -> [Help 1]

Provide any additional information that might be helpful, such as steps you've tried to resolve the issue, or observations you've made about the bug.

Once I apply the captioned change, it works to me.

nelson.qiao@EP-ML-11317 helper-script % git diff
diff --git a/examples/helper-script/pom.xml b/examples/helper-script/pom.xml
index e1d28f2..4d44970 100644
--- a/examples/helper-script/pom.xml
+++ b/examples/helper-script/pom.xml
@@ -15,12 +15,12 @@
                <repository>
                        <id>jenkins-releases</id>
                        <name>Jenkins Releases</name>
-                       <url>http://repo.jenkins-ci.org/releases</url>
+                       <url>https://repo.jenkins-ci.org/releases</url>
                </repository>
                <repository>
                        <id>jenkins-public</id>
                        <name>Jenkins Public</name>
-                       <url>http://repo.jenkins-ci.org/public</url>
+                       <url>https://repo.jenkins-ci.org/public</url>
                </repository>
        </repositories>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant