This really has nothing to do with Jenkins. You need to figure out your
process from the command line, get it working from there and then put it
into Jenkins.

On Thu, Jun 16, 2016, 06:02 Ankur Singh <[email protected]> wrote:

> Exec cmd: scp  -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no 
> /var/lib/jenkins/workspace/LiciousWeb/ 
> [email protected]:/home/ubuntu/test/
>
>
>
> Console output:
> permission denied(public key)
> i have added the ubuntu user public key to dev server ~/.ssh/authorized_key
>
> What can be done now
>
>
> On Thursday, June 16, 2016 at 2:23:13 PM UTC+5:30, Ankur Singh wrote:
>
>> i have setup jenkins on a server and cloned a git repo hosted on
>> bitbucket.
>> i m triying to push the build to dev server by using SSH plugin
>> i have added the dev server into jenkin ssh server plugin and connection
>> is successful through private key.
>> please find the code for exec cmd i have used
>>
>> echo $BUILD_NUMBER
>>
>> sudo mv -r /var/www/html/liciousweb/ /home/jenkins/liciousweb/
>> cd /var/www/html/
>> sudo git clone
>> https://[email protected]/liciousadmin/liciousweb.git
>>
>> my console output
>>
>> SSH: Connecting from host [xxx-xxx-xxx-xxx-xxx]*08:37:46* SSH: Connecting 
>> with configuration [Development Server] ...*08:37:46* SSH: Creating session: 
>> username [jenkins], hostname [xxx.xxx.xxx.xxx], port [xxxx]*08:37:46* SSH: 
>> Connecting session ...*08:37:46* SSH: Connected*08:37:46* SSH: Opening SFTP 
>> channel ...*08:37:46* SSH: SFTP channel open*08:37:46* SSH: Connecting SFTP 
>> channel ...*08:37:47* SSH: Connected*08:37:47* SSH: cd 
>> [/var/www/html/]*08:37:47* SSH: OK*08:37:47* SSH: Opening exec channel 
>> ...*08:37:47* SSH: EXEC: channel open*08:37:47* SSH: EXEC: STDOUT/STDERR 
>> from command [echo 40*08:37:47* sudo mv -r /var/www/html/xxxxxxxx/ 
>> /home/jenkins/xxxxxxxxx/*08:37:47* cd /var/www/html/*08:37:47* sudo git 
>> clone https://[email protected]/ 
>> <https://[email protected]/liciousadmin/liciousweb.git>xxxxxxx] 
>> ...*08:37:47* SSH: EXEC: connected*08:37:47* 40*08:37:47* [sudo] password 
>> for jenkins: SSH: Disconnecting configuration [Development Server] 
>> ...*08:39:47* ERROR: Exception when publishing, exception message [Exec 
>> timed out or was interrupted after 120,000 ms]*08:39:47* Build step 'Send 
>> build artifacts over SSH' changed build result to UNSTABLE*08:39:47* 
>> Finished: UNSTABLE
>>
>>
>> i have tried increasing the time also still i get the same error
>>
>>
>> i cant understand it shows ok status for cd command but unable to clone
>>
>>
>> please help
>>
>> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-dev/33976a68-e02e-4c32-8433-b0f0735476df%40googlegroups.com
> <https://groups.google.com/d/msgid/jenkinsci-dev/33976a68-e02e-4c32-8433-b0f0735476df%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/CAPiUgVcfq3VfYoZc9pyQmMKhyKF3Co1VGhL3wzsOTez8AW%2BbxQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to