[]
(https://ci.appveyor.com/project/Gopi/appveyorapi)
Initiates the deployment in Appveyor CI tool
- json
- HTTParty
- Chef 12.5+
Installs the AppVeyor agent
Set the following attributes:
node['environment_access_key']
node['deployment_group']
For more examples see the test/fixtures directory
appveyor_agent '3.12.0' do
environment_access_key '1234abcd890432kj'
deployment_group 'test'
end
version
- Specify the Appveyor deployment agent version to be installed like3.12.0
or say it aslatest
environment_access_key
- Environment Access Key is a secure string used to pair Deployment agent. Specify the Appveyor environment access key.deployment_group
- Deployment group allows matching only specific group of Deployment Agents. Specify the Appveyor deployment group name.
The appveyorapi_deploy
LWRP can be used to start the deployment for the specified environment in Appveyor CI using its API.
appveyorapi_deploy 'project-production' do
api_token '1234abcd890432kj'
account 'serviceaccount'
project 'project'
buildversion '1.0.1'
end
name
- Environment name in Appveyor(Case sensitive). It could be any Environment like Agent, FTP, Azure, etc.,account
- Account which has privilege to start the deployment in Appveyor.api_token
- API token for the service account in Appveyor.project
- Name of the build project in the Appveyor to be deployed in the specified environment(Case sensitive).buildversion
- (optional) Build version of the project to be deployed in the specified environment. If it is not specified, cookbook will deploy the last successfully deployed build version. If you specify it aslatest
then it builds latest build for that project.