Hi,
solutions one by one
1) (i) Set up jenkins , then open the page in browser , then a) click
"create a job" in the left side panel b) select "free style software
project option " give a name to your job click OK.then Another page opens.
(ii) In the "Source Code Management " section of the next page that
opens give the (perforce) repository from where u need to get the code from.
2) In the "BUILD" section of this page select option to build ,whether it
is with ANT or MAVEN ..... . Then in the "POST BUILD ACTIONS " section ,
check the option "email notification " and give email where u want the
notification to be sent to "( solution for your question six ) .Finish this
configuration page and click "save" . And then go to the main page of this
created job and give "BUILD NOW " ( This can also be periodic automatic
build ,, which can be specified in the config page itself )
3) Install a plugin by name "DEPLOY" (check jenkins ->manage genkins->
manageplugins->available(tab)->select plugin and install) ,,and give the
specification of where u need to deploy
4) Create a job in similar fashion for testing . and get the built
binary(using COPY-ARTIFACT plugin) and test it here .
5) JENKINS_HOME/log/all gives you the log ( note : this is by jenkins
->manage genkins-> systemlog
6) refer point 2 here where i mentioned about this goal .
NOTE : all these can be automated using jenkins-python API or using
Jenkisn-cli jar (for to do in command line)
Thank You.
On Mon, Mar 19, 2012 at 11:21 PM, domi <[email protected]> wrote:
> This is just a normal use case and should not give any problems to
> implement…
> see here:
> https://wiki.jenkins-ci.org/display/JENKINS/Building+a+software+project
> /Domi
>
>
> On 19.03.2012, at 07:10, Salut wrote:
>
> > Hi Team,
> >
> > I have a requirement and i am finding all possible options to sort it
> > out effectively. Being said that, i came across this forum. Please do
> > let me know if my following requirement can be fulfilled using Jenkins
> >
> > 1. Download source code from Perforce repository. (Here it shouldn't
> > just do SYNC, it should move to a desired destination folder)
> > 2. Build the source files using some build tool (ANT,NANT etc.)
> > 3. Package and deploy (.war/rpm)
> > 4. Run unit tests
> > 5. Contact internal API for logging defects in case of test failure
> > 6. Send email report.
> >
> > Kindly note this requirement is not environment specific. These may
> > involve several applications. Few are running on windows background
> > and few in Linux. And also technologies, some are in Java and some
> > in .NET. When i said running unit test cases in the above points, it
> > means it can be either running TestNG or it can be NUNIT.
> >
> > Please let me know the effective approach on this how much Jenkins can
> > help
> > me out.
>
>