git - How to get Jenkins to perform deletes on remote server -


i trying started automated build process using jenkins.

so far have managed jenkins build project bitbucket, run tests , upload files production server using publish on ssh plugin.

when delete files git repo, files deleted on remote server. there few ways have thought doing already.

  1. wipe files on production server, upload latest build release.

    • seems bad solution me, cause more downtime like.
  2. create script lives on remote server clean files after new build process. need find out git (somehow?) deleted files on commit were.

  3. instead of having jenkin use publish on ssh plugin, have git installed on production server, after successful build, can jenkins (somehow?) push project git production server.

this seems common task developers, , feel missing here. there standard practice this.


Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - .htaccess mod_rewrite for dynamic url which has domain names -

Website Login Issue developed in magento -