Skip to content

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

@nelsonq

Description

@nelsonq

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>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions