we are building java based code thru Jenkins and we are trying to deploy the build code thru Jenkins.can anyone provide deployment script which call s thru jenkins
Deployment process varies depends on your application. Its difficult to provide a generic deployment script without knowing your deployment process.
In my opinion there are several plugins in Jenkins which can do deployment for you, if you don't have any deployment process exists yet I suggest you go through all available Jenkins deployment plugins and you can choose a good fit for your process.
Few available plugins are ..
https://wiki.jenkins-ci.org/display/JENKINS/ArtifactDeployer+Plugin
https://wiki.jenkins-ci.org/display/JENKINS/Deploy+Plugin
https://wiki.jenkins-ci.org/display/JENKINS/Deploy+WebSphere+Plugin
https://wiki.jenkins-ci.org/display/JENKINS/Deployit+Plugin
https://wiki.jenkins-ci.org/display/JENKINS/LiveRebel+Plugin