microsoft / VSTS-Docker-Preview

Preview repo for Docker extension
16 stars 8 forks source link

docker-compose task in release can fail with strange error #9

Open buckett opened 7 years ago

buckett commented 7 years ago

If you don't set a Project Name in a docker-compose step as part of a release then when you attempt to run the build (normally it picks up the folder name) I get the following error in the logs

2016-10-17T12:49:03.9186980Z ##[error]Cannot read property 'toLowerCase' of null

setting a project name appears to fix this.

stepro commented 7 years ago

Fixed. Although it's worth pointing out that in a VSTS agent, the name of the folder containing the repository is "s", so if your docker-compose.yml file is in the root, the folder name is kind of useless.

buckett commented 7 years ago

In our case in was in a artifact from a build so it had a more useful name.

stepro commented 7 years ago

Ah yes, that makes sense.