NSN
NSN

Reputation: 750

Continuous Integration with Jenkins: Binary Output need to be copied to a shared directory

Our .NET app with 8-10 projects and created a Jenkins job to build it. We also have a batch job called in Jenkins to create the set up files for our app using INNO Setup. The issue we need to address is copy the Setup files to a shared location. Could you please suggest a better way to accomplish it.

Upvotes: 0

Views: 2226

Answers (2)

jwernerny
jwernerny

Reputation: 7048

In general, you will probably want to use a publishing plugin. There are different plugins depending on where (and how) you want to put the file. Here's a quick list to get you started:

A larger list can be found in the Artifact Uploader Plugins list.

Upvotes: 3

grams
grams

Reputation: 659

In a .NET environment you should have a look at Nant (http://nant.sourceforge.net/).

Use a Nant script as a post-build action with a default.build like this :

<?xml version="1.0" encoding="UTF-8" ?>
<project name="MyProject" default="network-copy" basedir=".">
    <target name="network-copy">
        <copy file="target\setup.exe"
            todir="\\server\share$\directory"></copy>
    </target>
</project>

Upvotes: 3

Related Questions