Description
Describe the bug
When publishing npm artifact into artifactory using Jenkins pipeline rtNpmPublish step it raise an error:java.lang.RuntimeException: java.nio.file.InvalidPathException: Illegal char <>> at index 0: > @xxxx/license-collector-js@1.1.2 prepack c:\build\workspace\workspace\xxx\xxx\license-collector
This was workin before we update Jenkins Artifactory pluging to version 3.13.1
To Reproduce
Create a Jenkins pipeline job, which build and publish build artifact
`pipeline {
agent {
label 'xxxx'
}
stages {
stage('Cleanup') {
steps {
sh 'printenv'
echo "${currentBuild.getBuildCauses()}"
cleanWs()
}
}
stage('Clone') {
steps {
"Normal git checkout"
}
}
stage ('Artifactory configuration') {
steps {
rtNpmResolver (
id: "NPM_RESOLVER",
serverId: "artifactory.xxxx.com",
repo: "xxxxx"
)
rtNpmDeployer (
id: "NPM_DEPLOYER",
serverId: "artifactory.xxxx.com",
repo: "xxxxx"
)
}
}
stage ('Npm install') {
steps {
rtNpmCi (
args: '--verbose',
path: ".",
resolverId: "NPM_RESOLVER"
)
}
}
stage ('Exec npm publish') {
steps {
rtNpmPublish (
path: ".",
deployerId: "NPM_DEPLOYER"
)
}
}
stage ('Publish build info') {
steps {
rtPublishBuildInfo (
serverId: "artifactory.xxxx.com"
)
}
}
}
post {
unsuccessful {
emailext recipientProviders: [developers(), culprits(), brokenBuildSuspects()],
to: "${params.emailNotifyRecipients}",
subject: '${DEFAULT_SUBJECT}',
body: '''\
${DEFAULT_CONTENT}
${BUILD_LOG}
'''
}
fixed {
emailext recipientProviders: [developers(), culprits(), brokenBuildSuspects()],
to: "${params.emailNotifyRecipients}",
subject: '${DEFAULT_SUBJECT}',
body: '${DEFAULT_CONTENT}'
}
}
}`
Expected behavior
The build artifact is find out in Artifactory
Screenshots
xxxx-js-1.1.2.tgz
at sun.nio.fs.WindowsPathParser.normalize(WindowsPathParser.java:182)
at sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:153)
at sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:77)
at sun.nio.fs.WindowsPath.parse(WindowsPath.java:94)
at sun.nio.fs.WindowsFileSystem.getPath(WindowsFileSystem.java:255)
at sun.nio.fs.AbstractPath.resolve(AbstractPath.java:53)
at org.jfrog.build.extractor.npm.extractor.NpmPublish.pack(NpmPublish.java:135)
at org.jfrog.build.extractor.npm.extractor.NpmPublish.execute(NpmPublish.java:91)
[wrapped] java.lang.RuntimeException: java.nio.file.InvalidPathException: Illegal char <>> at index 0: > @xxx/xxxx-js@1.1.2 prepack c:\build\workspace\workspace\test\xxx\xxxx
Versions
- Extractor version:
- Operating system: Latest Windows 64bit,
- Artifactory Version: Enterprise license 7.24.3 rev 72403900
Additional context
Add any other context about the problem here.