Search code examples
jenkinsartifact

Jenkins - how to add additional folder with subfolders, e.g. Images


I have a web project that Jenkins is building perfectly and pushing to Octopus Deploy.

I now have an additional folder, with subfolders, e.g. Images, which I need to include.

This is not directly part of the .net build and we used to copy it manually afterward.

Do I need a specific plugin which I can use to select the folder to include? Which plugin?

Where in the build process does this plugin run?

The build and deploy to octopus is done in one step - where do I fit in this additional folder to be included in the push to the octopus?

enter image description here


Solution

  • This is not directly part of the .net build and we used to copy it manually afterward.

    If your Jenkins server can access that addition folder in a shared path, add a pre-build step which, as an "Executable Windows batch command" step, would copy that folder into the Jenkins workspace.

    https://abc2tech.files.wordpress.com/2015/12/6.png

    No plugin needed here.

    Once that is done, you would still need to modify Octopus accordingly, to take into account that new copied folder.
    See: