Commit Graph

126 Commits

Author SHA1 Message Date
Claudiu Guiman 38cc335d46 Update documentation links 2016-11-30 13:15:54 -08:00
Claudiu Guiman e2dc3788a5 update strings according to PR 2016-11-29 13:40:52 -08:00
Claudiu Guiman 8270f38b98 Update the help to include guidence on hitting the storage account limit with custom images 2016-11-29 09:47:48 -08:00
Claudiu Guiman 397a4759db remove 'plugin' from the name 2016-11-29 09:41:30 -08:00
Claudiu Guiman 59edfc0df6 fix broken merge 2016-11-28 13:59:50 -08:00
Claudiu Guiman 830de58bbe Merge branch 'fix-custom-image' of https://github.com/arroyc/azure-slave-plugin into arroyc-fix-custom-image 2016-11-28 13:54:05 -08:00
Arjun Roy Chaudhuri 17b8539365 added uniqueness to container names for storage accounts for custom image uri 2016-11-23 16:14:48 -08:00
Claudiu Guiman da0b82b376 Update init script help text to include a link to a Windows sample 2016-11-23 14:46:08 -08:00
Arjun Roy Chaudhuri 1784f28d07 Merge pull request #70 from mmitche/use-static-thread-pool
Move to a static thread pool
2016-11-23 13:39:31 -08:00
Arjun Roy Chaudhuri fd7cbc3cc8 removed unnecessary changes to reference templates 2016-11-23 10:47:30 -08:00
Claudiu Guiman 1eca498d10 Merge pull request #67 from arroyc/local-build-successfull
Added validation check for resource group name and other fields in Azure VM Agent Cloud
2016-11-23 10:17:53 -08:00
Arjun Roy Chaudhuri 30a02019b8 hotfix custom image issues 2016-11-23 00:39:11 -08:00
Arjun Roy Chaudhuri a125d19235 refactored code as per iteration#1 2016-11-21 16:45:14 -08:00
Matt Mitchell 83633bc3eb Move to a static thread pool 2016-11-21 13:14:15 -08:00
Claudiu Guiman 01e2afef95 Update help strings 2016-11-21 12:07:20 -08:00
Arjun Roy Chaudhuri 05acf50121 Merge branch 'ARM-dev' into local-build-successfull 2016-11-21 11:47:35 -08:00
Arjun Roy Chaudhuri a88cfc803f Merge branch 'ARM-dev' into local-build-successfull 2016-11-21 10:23:34 -08:00
Arjun Roy Chaudhuri b0e0e9ab45 added validation for azure profile configuration 2016-11-18 15:18:04 -08:00
Claudiu Guiman e0fc2df533 Make sure the storage account exists before uploading the init script 2016-11-17 15:52:49 -08:00
Claudiu Guiman dbd7fe5c02 Generate storage account name when left blank 2016-11-17 15:52:49 -08:00
Claudiu Guiman afaf958fea Update credentials help messages 2016-11-17 11:43:11 -08:00
Claudiu Guiman 174370780e Check that the template admin password is valid 2016-11-15 12:00:27 -08:00
Claudiu Guiman 9fcc1c48e2 Move the Azure login info in the credentials store 2016-11-11 15:14:54 -08:00
Matt Mitchell a8e7188547 Credentials in store 2016-11-07 14:24:10 -08:00
Claudiu Guiman 39503db77a Update UserAgent header with JenkinsAgent string 2016-10-28 14:07:46 -07:00
Arjun Roy Chaudhuri c5c7290208 fixed string.join() error 2016-10-27 15:09:08 -07:00
Matt Mitchell 477813245f Using StringUtils.join (String.join not available in JDK 7) 2016-10-27 14:14:26 -07:00
Matt Mitchell e7835cbb82 Merge remote-tracking branch 'upstream/ARM-dev' into arm-model-rename 2016-10-27 10:14:36 -07:00
Matt Mitchell 8722cfedf4 Add a way to specify the deployment timeout (in case of long deployments)
Fix help message in max VMs
2016-10-27 09:49:32 -07:00
Claudiu Guiman ceac4913cd Remove secrets from AzureSlave.toString() 2016-10-21 14:41:05 -07:00
Matt Mitchell dbb10e4beb Make deployment names more unique (to avoid more collisions)
Only create the vnet and subnets in deployment if they are not specifically specified (to avoid overwriting vnet settings)
2016-10-21 07:38:30 -07:00
Matt Mitchell 0017c4669c Temporarily look up VM count by resource group, rather than listAll. Pagination appears broken for listAll 2016-10-19 09:38:27 -07:00
Matt Mitchell 1a574ca93d Clean up VM deployments 2016-10-19 09:38:26 -07:00
Matt Mitchell fa69ef2355 Add deployment cleanup 2016-10-19 09:38:26 -07:00
Matt Mitchell 9039cb1112 Better logging for retry 2016-10-19 09:38:24 -07:00
Matt Mitchell b777388afc Paginated VM vm counting 2016-10-19 09:38:23 -07:00
Matt Mitchell f66ffb4579 Extend timeout 2016-10-19 09:38:22 -07:00
Matt Mitchell 3ae7340ec8 Ensure configuration doesn't expire during provisioning
Make configuration validity a transient property and remove initial verification canProvision will cause the initial verification to happen
2016-10-19 09:38:21 -07:00
Matt Mitchell bbadf7b605 Renaming and cloud SxS
* Rename microsoftopentechnologies -> microsoft namespace
    * slave -> agent refactor (strings, classes, and variable names where possible)
    * Token cache file name should be specific to cloud name
2016-10-19 09:38:20 -07:00
Claudiu Guiman c8713852a1 Updated the ARM templates so the storage account name is unique per resource group 2016-10-18 12:42:43 -07:00
Matt Mitchell 9c5f40083d Fix httpconnector version
Fix jelly tag in index.jelly
2016-10-12 13:40:41 -07:00
Matt Mitchell 6b53a4e3a3 Azure RM model updates
* Make the resource group configurable
* Update SDK to 0.9.4
* Fix: Token expiration was incorrectly calculated (API is named a bit oddly).
* Fix: Token expiration is in seconds.
* Change VM/deployment names to ones that are valid
* Fix location + VM sizes
  It appears that that the location and VM size APIs do not currently support the AAD based authentication.  The certificate is required.  Rather than re-introduce the cert for just this limited UI scenario, I have decided to hard-code the list based on the returned info from current Azure.  This is a decent short term solution, since a move to the 1.0.0 API (when released) will require that this code be changed anyway and presumably this problem should be fixed for good at that point.
* Proper handling for custom image URIs
* Asynchronous verification of the subscription info
* Asynchronous verification of the azure templates
* Asynchronous provisioning
* Clean up resources after unsuccessful provisioning
* Lots of logging updates
* Fix: SSH launcher - Get channels before connection for exec channels
  Getting the channels after connection introduces a race where we could potentially fail to read from the input streams if they were obtained from the channel after the connection had completed.
* Add diagnostics to image verification messages
* Asynchronous deletion via UI
* Update version of Jsch
* Temporarily disable image verification for reference images
* Allow for initialization scripts to be run as root
* Cleanup of slaves now works properly
    * Doesn't clean up when node is taken offline by user
    * Post build tasks won't kill other runs or show errors in the job logging
    * Retention strategy now for online nodes, cleanup for offline nodes
* Nodes that are marked to shut down on idle can now be restarted properly (before too many could be started)
* Add option to treat failures of the initialization script as a reason to discard the VM (linux only currently)
* Reenable Windows custom script extension for startup
* Update documentation with new sample startup scripts

Add setAcceptingTasks appropriately

doc fixup
2016-10-06 15:06:03 -07:00
Matt Mitchell 96691242c9 Get channels before connection
Getting the channels after connection introduces a race where we could potentially fail to read from the input streams if they were obtained from the channel after the connection had completed.
2016-09-28 15:32:36 -07:00
Arjun Roy Chaudhuri f33e5793f6 make service principle parameters hidden fields 2016-09-28 13:06:52 -07:00
Matt Mitchell 0b8775f9cd Fix location + VM sizes
It appears that that the location and VM size APIs do not currently support the AAD based authentication.  The certificate is required.  Rather than re-introduce the cert for just this limited UI scenario, I have decided to hard-code the list based on the returned info from current Azure.  This is a decent short term solution, since a move to the 1.0.0 API (when released) will require that this code be changed anyway and presumably this problem should be fixed for good at that point.
2016-09-15 09:57:47 -07:00
Matt Mitchell f2cce2ea88 A couple fixes
Update SDK to 0.9.4
Token expiration was incorrectly calculated (API is named a bit oddly)
2016-09-13 11:06:47 -07:00
fmartelli 7e104410fb fix for build #102 2015-09-04 15:45:48 +02:00
fmartelli 8ad20f7780 Implements access token cache with file persistence 2015-07-31 12:20:53 +02:00
fmartelli 2c6bb7a711 Provides cache for access token + includes changes provided by merged PR #8 2015-07-30 15:03:04 +02:00
fmartelli 187c6a66ac [#12] Implements re-authentication at every request 2015-07-28 16:52:41 +02:00