I am trying to use the Pipeline Remote File Loader Plugin and am facing an 
issue.

My current `jenkinsfile looks as follows:

```
node('docker-slave') {
    stage 'Setup'
    fileLoader.fromGit('build-snippet', 
        '<git-repo>', 'develop', '<credential-id>', '')
}
```

The content of build-snippet:
```
stage 'Publish'
publishHTML(target: [
    allowMissing: false, alwaysLinkToLastBuild: true,
    keepAll: false, reportDir: 'build/apidocs',
    reportFiles: 'index.html', reportName: 'API Documentation'
    ]
)
```

When running it i get an error `/develop@2/libLoader/build/apidocs` does 
not exist.. The `@2/libLoader/` is the problem when i paste in the code 
from the build-snippet into the jenkinsfile it works ok. Then the 
`@2/libLoader/` 
is not added to the path.

Any hints or suggestion what i am doing wrong?

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/d4c6adcf-6cb4-4bcf-9493-9d5e0f3badf6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to