title: How to deploye .war file in jboss server using shell script
body: <p>I am on RedHat, using Jboss 5.x and Jenkins. My Jenkins is building the project perfect. I am coping the war file to deploy folder of Jboss with shell script.</p>
  
  <p>When I am running the command on my terminal</p>
  
  <pre><code>scp source/example.war destination/deploy 
  </code></pre>
  
  <p>scp command is able to copy the .war file into deploy folder and through url I am able to access it.</p>
  
  <p>But the when I am writing the same command on jenkins it throws an error.</p>
  
  <pre><code>Permission denied
  Build step 'Execute shell' marked build as failure
  </code></pre>
  
  <p>I guess it is because jenkins try to write the file and it does not have permission.</p>
  
  <p>so how do i do that?? </p>