-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
Jenkins 2.263.2
Minio Plugin 1.2.0
Observed behaviour
While trying to upload using the MinIO-Plugin, we always get the error:
Problem storing objects in Minio: http://jenkins-master-host-fqdn: Name or service not known
This host name is not being used in any configuration or environment variable. Also, the configured Jenkins URL is https://our-jenkins-master.domain and not http://jenkins-master-host-fqdn
The configured hostname https://our.minio.server is not to be found in the error message.
Expected behaviour
Uploads should be attempted against the configured host, not the physical Jenkins master host name.
Workaround/Mitigation
There is not enough debug output for further investigation.
Configuration and further information
Declarative pipeline code snippet
minio bucket: 'mybucket', credentialsId: 'minio-credentials', excludes: '', host: 'https://our.minio.server', includes: 'foo/bar.baz', targetFolder: 'my/target/folder'
The issue occurs regardless of the underlying executor (i.e. Linux vs. Windows).
Thank you for reporting this bug.
Can you confirm for me whether or not you have a minio server configured in your global configuration? (Manage Jenkins -> Configure system -> Minio plugin)
If not, configuring your minio server here and leaving host and credentialsId empty in your snippet would be a temporary workaround while I look into this issue.
If you do have a value configured there, is it the one you see in the console output of your job? The one you configure in your snippet should have precedence over the globally configured one so that's just some info for me to pinpoint the bug.