-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Majcica, M (Mario)
authored and
Majcica, M (Mario)
committed
Dec 1, 2017
1 parent
b7cd503
commit 15ba40b
Showing
9 changed files
with
55 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Windows Machine File Copy Task (WinRM) | ||
### Overview | ||
The task is used to copy application files and other artifacts that are required to install the application on Windows Machines like PowerShell scripts, PowerShell-DSC modules etc. The task provides the ability to copy files to Windows Machines. The tasks uses WinRM for the data transfer. | ||
|
||
|
||
> This task defers from the original task that ships with VSTS/TFS by the fact that this implementation uses WinRM for the file transfer instead of robocopy on which the original task is based on. | ||
In certain situations, due to the network restrictions, mounting the drive and using the necessary protocols is not possible. Thus, for such scenarios, where WinRM is enabled, this task will solve the issue. | ||
|
||
### Requirements | ||
|
||
The only requirement is PowerShell V5 installed both on the build server and on the machine on which you are trying to copy the files to. | ||
|
||
### The different parameters of the task are explained below: | ||
|
||
* **Source**: The source of the files. As described above using pre-defined system variables like $(Build.Repository.LocalPath) make it easy to specify the location of the build on the Build Automation Agent machine. The variables resolve to the working folder on the agent machine, when the task is run on it. Wild cards like **\*.zip are not supported. | ||
* **Machines**: Specify comma separated list of machine FQDNs/ip addresses along with port(optional). For example dbserver.fabrikam.com, dbserver_int.fabrikam.com:5986,192.168.34:5986. | ||
* **Admin Login**: Domain/Local administrator of the target host. Format: <Domain or hostname>\ < Admin User>. | ||
* **Password**: Password for the admin login. It can accept variable defined in Build/Release definitions as '$(passwordVariable)'. You may mark variable type as 'secret' to secure it. | ||
* **Destination Folder**: The folder in the Windows machines where the files will be copied to. An example of the destination folder is c:\FabrikamFibre\Web. | ||
* **Clean Target**: Checking this option will clean the destination folder prior to copying the files to it. | ||
* **Copy Files in Parallel**: Checking this option will copy files to all the target machines in parallel, which can speed up the copying process. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,21 @@ | ||
# WinRmFileCopy `0.1.0` | ||
Windows Machine File Copy (WinRM) | ||
# Windows Machine File Copy Task (WinRM) | ||
### Overview | ||
The task is used to copy application files and other artifacts that are required to install the application on Windows Machines like PowerShell scripts, PowerShell-DSC modules etc. The task provides the ability to copy files to Windows Machines. The tasks uses WinRM for the data transfer. | ||
|
||
> INSTRUCTIONS | ||
> | ||
> Your shiny new extension is ready! Try `gulp package` to check out :) | ||
> | ||
> Customize your extension as you like... | ||
> * Replace the logo.png, logo_large.svg files with your extension\'s logo. | ||
> * Replace the icon.png, icon.svg files with your task\'s logo. We recommend inkscape to create these files. | ||
> * Update ' + this.destinationPath('README.md')); | ||
> | ||
> Or publish the vsix if you\'re feeling adventurous. | ||
> | ||
> If you have feedback/bugs/praise for us, share it at | ||
> http://github.com/codito/generator-vsts-task/issues | ||
> We welcome patches/pull requests too ;) | ||
|
||
> EDIT ME | ||
> This content will show up in the Visualstudio Marketplace | ||
> homepage for your extension | ||
> This task defers from the original task that ships with VSTS/TFS by the fact that this implementation uses WinRM for the file transfer instead of robocopy on which the original task is based on. | ||
In certain situations, due to the network restrictions, mounting the drive and using the necessary protocols is not possible. Thus, for such scenarios, where WinRM is enabled, this task will solve the issue. | ||
|
||
# Configuration | ||
### Requirements | ||
|
||
> TODO | ||
> Show how to configure the extension | ||
The only requirement is PowerShell V5 installed both on the build server and on the machine on which you are trying to copy the files to. | ||
|
||
# Usage | ||
### The different parameters of the task are explained below: | ||
|
||
> TODO | ||
> And then document the primary flows. Feel free to link to | ||
> your repository or website for detailed steps. | ||
* **Source**: The source of the files. As described above using pre-defined system variables like $(Build.Repository.LocalPath) make it easy to specify the location of the build on the Build Automation Agent machine. The variables resolve to the working folder on the agent machine, when the task is run on it. Wild cards like **\*.zip are not supported. | ||
* **Machines**: Specify comma separated list of machine FQDNs/ip addresses along with port(optional). For example dbserver.fabrikam.com, dbserver_int.fabrikam.com:5986,192.168.34:5986. | ||
* **Admin Login**: Domain/Local administrator of the target host. Format: <Domain or hostname>\ < Admin User>. | ||
* **Password**: Password for the admin login. It can accept variable defined in Build/Release definitions as '$(passwordVariable)'. You may mark variable type as 'secret' to secure it. | ||
* **Destination Folder**: The folder in the Windows machines where the files will be copied to. An example of the destination folder is c:\FabrikamFibre\Web. | ||
* **Clean Target**: Checking this option will clean the destination folder prior to copying the files to it. | ||
* **Copy Files in Parallel**: Checking this option will copy files to all the target machines in parallel, which can speed up the copying process. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters