的第三个参数archiveArtifacts
未命名。即在您的通话中:
archiveArtifacts artifacts: """/bin/publish/**""", excludes: """/bin/publish/Tests/**""", """/bin/publish/coverage/**""", fingerprint: true
您有, """/bin/publish/coverage/**""",
未命名的部分。我猜想您希望它成为exclude参数的一部分,在这种情况下,您应该用逗号分隔第一个排除模式字符串中的两个排除模式,如下所示:
archiveArtifacts artifacts: """/bin/publish/**""", excludes: """/bin/publish/Tests/**, /bin/publish/coverage/**""", fingerprint: true
就像@Fidel指出的那样,您不需要使用三引号引起来的字符串,因此您可以执行以下操作:
archiveArtifacts artifacts: "/bin/publish/**", excludes: "/bin/publish/Tests/**, /bin/publish/coverage/**", fingerprint: true
或使用单引号:
archiveArtifacts artifacts: '/bin/publish/**', excludes: '/bin/publish/Tests/**, /bin/publish/coverage/**', fingerprint: true