Pack only : pack the chocolatey package, but don't push it.
The .nupkg file is available in the build/release drop folder
Log example :
2017-05-05T09:21:44.9256244Z Starting ChocolateyPackAndPushTask
2017-05-05T09:21:44.9256244Z Location : D:\A01_work\8ca771928\MyChocolateyApplication\drop
2017-05-05T09:21:44.9256244Z Attempting to pack .\MyChocolateyApplication.nuspec
2017-05-05T09:21:45.5975401Z Attempting to build package from 'MyChocolateyApplication.nuspec'.
2017-05-05T09:21:50.8635740Z Successfully created package 'MyChocolateyApplication.2.3.19.7.nupkg'
2017-05-05T09:21:50.9104523Z Attempting to push D:\A01_work\8ca771928\MyChocolateyApplication\drop\MyChocolateyApplication.2.3.19.7.nupkg to source https://nuget.myrepository.com/Chocolatey/
2017-05-05T09:21:50.9104523Z Launch command D:\A01_work\8ca771928\MyChocolateyApplication\drop\MyChocolateyApplication.2.3.19.7.nupkg -s https://nuget.myrepository.com/Chocolatey/ -k **********
2017-05-05T09:21:51.4104911Z Attempting to push MyChocolateyApplication.2.3.19.7.nupkg to https://nuget.myrepository.com/Chocolatey/
2017-05-05T09:21:54.9889260Z MyChocolateyApplication 2.3.19.7 was pushed successfully to https://nuget.myrepository.com/Chocolatey/
2017-05-05T09:21:54.9889260Z Your package may be subject to moderation. A moderator will review the
2017-05-05T09:21:54.9889260Z package prior to acceptance. You should have received an email. If you
2017-05-05T09:21:54.9889260Z don't hear back from moderators within 1-3 business days, please reply
2017-05-05T09:21:54.9889260Z to the email and ask for status or use contact site admins on the
2017-05-05T09:21:54.9889260Z package page to contact moderators.
2017-05-05T09:21:54.9889260Z Please ensure your registered email address is correct and emails from
2017-05-05T09:21:54.9889260Z chocolateywebadmin at googlegroups dot com are not being sent to your
2017-05-05T09:21:54.9889260Z spam/junk folder.
2017-05-05T09:21:55.0201449Z Ending ChocolateyPackAndPushTask
Synchronize automatically version field
You have to change the <version> field each time you create a new version of your chocolatey package.
You can automatically synchronize your assembly version with this field by using another task available in the marketplace "Nuget version synchronizer".
Please find the extension here.