Agreed with David

Just reuse your usual tools in your jenkins script: for example, if
you use Ant, there is a very simple Ant task to build jar

Look it up at : http://ant.apache.org/manual/Tasks/jar.html

regards

didier

On Feb 26, 9:24 pm, David Weintraub <[email protected]> wrote:
> On Sun, Feb 26, 2012 at 8:09 AM, Ted Jansen <[email protected]> wrote:
> > Hello,
>
> > This may be a noob question.
> > How can i build a jar file from jenkins from the workspace folder of a
> > project?
>
> How do you build jars without Jenkins? For example, are you using Ant
> or Maven for your build process? If you are, all you have to do is
> specify the same target in Jenkins as you do when you manually build
> your jar using Ant or Maven.
>
> Maybe the question is how do you access the jar that was built. In
> that case, all you need to do is ask Jenkins to archive certain build
> products. This is in the post build phase. All you have to do is
> specify that you want to archive your "**/*.jar" files. Then, in each
> build, you'll see a link to the jar.
>
> Maybe you don't know how to get Jenkins to do a build because you're
> using Eclipse or InteliJ to do the build for you?
>
> --
> David Weintraub
> [email protected]

Reply via email to