Answers: <p>For me I use <code>jenkins</code> in docker with git plugin.</p>
  
  <p>The Git plugin will give you the ability to check the Git server every specific period of time or you can use git hook from github or bitbucket to trigger the task when ever any change happened to the repo or the branch.</p>
  
  <p>For deployment, most of time I use shell build step to execute some shell command on remote node.</p>
  
Answers: CC BY-SA 3.0
Answers: 2017-08-02T05:24:51.447Z
Answers: 2017-08-02T05:24:51.447Z
Answers: Wissam Roujoulah
Body: <p>I want to setup a Jenkins and git on the same server.</p>
  
  <p>What I am trying to do:</p>
  
  <p>I want Jenkins to be able deploy a folder to another server which runs IIS server (which is running <code>.net</code>).
  I don't have code as I bought the product the client provides me with . It's just a publish folder or the executable files which I directly put on the server .I will be using <code>git</code> for version controlling.</p>
  
  <blockquote>
    <p>I want jenkins to periodically check the git repository and when it finds any changes, it deploys it over to my remote server which is running IIS and rename the old folder on git with date wise.</p>
  </blockquote>
  
  <p>How should I go about implementing this?</p>
  
  <p>Thanks in advance for your suggestions.</p>
  
Comments: CC BY-SA 3.0
Comments: 2017-10-06T06:17:38.957Z
Comments: Instead of pulling for changes why don't you use git hooks (https://git-scm.com/docs/githooks) to do your task on git changes?
Comments: smartmeta
Tags: <jenkins><deployment><git><continuous-deployment>
Title: Setting up Jenkins and git-server on same server
UserDisplayName: Nishant sahu
ThreadText: # Setting up Jenkins and git-server on same server
  
  (Asked by: username_0 on 2017-07-27)
  
  I want to setup a Jenkins and git on the same server.
  
  What I am trying to do:
  
  I want Jenkins to be able deploy a folder to another server which runs IIS server (which is running `.net`).
  I don't have code as I bought the product the client provides me with . It's just a publish folder or the executable files which I directly put on the server .I will be using `git` for version controlling.
  
  > I want jenkins to periodically check the git repository and when it finds any changes, it deploys it over to my remote server which is running IIS and rename the old folder on git with date wise.
  
  How should I go about implementing this?
  
  Thanks in advance for your suggestions.
  
  **Tags:** jenkins, deployment, git, continuous-deployment
  
  > **Comments:**
  > **username_1**: Instead of pulling for changes why don't you use git hooks (https://git-scm.com/docs/githooks) to do your task on git changes?  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_2 on 2017-08-02. Score: 3
  
  For me I use `jenkins` in docker with git plugin.
  
  The Git plugin will give you the ability to check the Git server every specific period of time or you can use git hook from github or bitbucket to trigger the task when ever any change happened to the repo or the branch.
  
  For deployment, most of time I use shell build step to execute some shell command on remote node.
  
  
  ---
  
  