Building artifacts over ssh jenkins - php

Copy only the modified file to the bitbucket on the development server using assembly build artifacts on top of ssh jenkins - PHP

Hi, I use jenkins and bitbucket when my files changed in the bitbucket, my jenkins assemblies are running, so now I want to send the chaned file from bitbucket to my development server.

I use a PHP application, so I just want to copy the modified file.

I checked this Post via SSH in jenkins. and I'm not sure what to do for sure

I have a few questions with this plugin

  • I do not understand how to set the parameters

enter image description here

These source files mean a lot of files, I think I want SSH to only change files. :(

  1. . /var/www/, , build = $BUILD_NUMBER /var/www/projrct_name: (

, ,

+4
1

dev. bash script, , jenkins user ssh dev-, cd dir, git . , , .. .

http://code.tutsplus.com/tutorials/setting-up-continuous-integration-continuous-deployment-with-jenkins--cms-21511, nodejs,

script, Laravel.

#!/bin/sh
ssh projectuser@app.host <<EOF
  cd /var/www/projectdir/
  git pull origin master
  composer install --no-dev -o
  php artisan cache:clear
  php artisan view:clear
  php artisan config:clear
  php artisan route:clear
  php artisan optimize --force
  npm install --production
exit
EOF
0

All Articles