jenkins-infra / pipeline-library

Collection of custom steps and variables for our Jenkins instance(s)
295 stars 136 forks source link

fix(withFileShareServicePrincipal): add a trailing `/` to the target #842

Closed lemeurherve closed 8 months ago

lemeurherve commented 8 months ago

This PR adds a trailing / to the target so it's considered as a folder and not a file.

Noticed after https://github.com/jenkins-infra/jenkins.io/pull/7123, from trusted.ci.jenkins.io logs:

Cannot perform sync due to error: trying to sync between different resource types (either file <-> directory or directory <-> file) which is not allowed.sync must happen between source and destination of the same type, e.g. either file <-> file or directory <-> directory.To make sure target is handled as a directory, add a trailing '/' to the target.

Follow-up of:

Ref:

lemeurherve commented 8 months ago

Self-merging to restore jenkins.io build on trusted.ci.jenkins.io