Hi,
I am trying to make a pipeline run on a windows agent but the agent does not seem to start correctly…
Here’s my .drone.yml:
kind: pipeline
name: simulator-windows
platform:
os: windows
arch: amd64
steps:
- name: setup
build:
image: simulator_build_windows
context: docker
dockerfile: docker/Dockerfile.windows
- name: build
image: simulator_build_windows
commands:
- ./build_simulator.ps1
Here’s my server log:
2019-01-28T16:13:32.017323353Z {"commit":"313709014ffae8165c010afe7c2a1a38cd4da7a6","event":"push","level":"debug","msg":"webhook parsed","name":"simulator","namespace":"amoran","time":"2019-01-28T16:13:32Z"}
2019-01-28T16:13:32.017685056Z {"commit":"313709014ffae8165c010afe7c2a1a38cd4da7a6","event":"push","level":"debug","msg":"trigger: received","ref":"refs/heads/drone","repo":"amoran/simulator","time":"2019-01-28T16:13:32Z"}
2019-01-28T16:13:34.592587521Z {"fields.time":"2019-01-28T16:13:34Z","latency":2576355086,"level":"debug","method":"POST","msg":"","remote":"172.16.0.60:60000","request":"/hook","request-id":"1GP0dPMqPoEi71pIsK3sIDiQ4lA","time":"2019-01-28T16:13:34Z"}
2019-01-28T16:13:55.189931918Z {"admin":true,"level":"debug","msg":"api: access granted","name":"simulator","namespace":"amoran","read":true,"request-id":"1GP0gIpreuqy2dYO39lpgp8rK60","time":"2019-01-28T16:13:55Z","user.login":"amoran","visibility":"private","write":true}
2019-01-28T16:13:55.190845300Z {"admin":true,"level":"debug","msg":"api: access granted","name":"simulator","namespace":"amoran","read":true,"request-id":"1GP0gKAMeYrDfDk69Ck4yQK8vFU","time":"2019-01-28T16:13:55Z","user.login":"amoran","visibility":"private","write":true}
2019-01-28T16:13:55.190898794Z {"fields.time":"2019-01-28T16:13:55Z","latency":1945097,"level":"debug","method":"GET","msg":"","remote":"172.17.2.129:32874","request":"/api/repos/amoran/simulator","request-id":"1GP0gKAMeYrDfDk69Ck4yQK8vFU","time":"2019-01-28T16:13:55Z"}
2019-01-28T16:13:55.191775882Z {"fields.time":"2019-01-28T16:13:55Z","latency":3334996,"level":"debug","method":"GET","msg":"","remote":"172.17.2.129:32872","request":"/api/repos/amoran/simulator/builds?page=1","request-id":"1GP0gIpreuqy2dYO39lpgp8rK60","time":"2019-01-28T16:13:55Z"}
2019-01-28T16:13:56.867185399Z {"admin":true,"level":"debug","msg":"api: access granted","name":"simulator","namespace":"amoran","read":true,"request-id":"1GP0gLtD6RKqB5PIXLL2SwggES9","time":"2019-01-28T16:13:56Z","user.login":"amoran","visibility":"private","write":true}
2019-01-28T16:13:56.867239452Z {"fields.time":"2019-01-28T16:13:56Z","latency":858563,"level":"debug","method":"GET","msg":"","remote":"172.17.2.129:32872","request":"/api/repos/amoran/simulator","request-id":"1GP0gLtD6RKqB5PIXLL2SwggES9","time":"2019-01-28T16:13:56Z"}
2019-01-28T16:13:56.867334008Z {"admin":true,"level":"debug","msg":"api: access granted","name":"simulator","namespace":"amoran","read":true,"request-id":"1GP0gM6NdBj4ejGkbZ0kW3utDvt","time":"2019-01-28T16:13:56Z","user.login":"amoran","visibility":"private","write":true}
2019-01-28T16:13:56.868421746Z {"fields.time":"2019-01-28T16:13:56Z","latency":1814616,"level":"debug","method":"GET","msg":"","remote":"172.17.2.129:32874","request":"/api/repos/amoran/simulator/builds/4","request-id":"1GP0gM6NdBj4ejGkbZ0kW3utDvt","time":"2019-01-28T16:13:56Z"}
and here’s my agent’s log:
2019-01-28T16:08:12.831488700Z {"level":"info","msg":"starting the build runner","server":"172.17.0.39","threads":2,"time":"2019-01-29T02:08:12+01:00"}
I am trying to build some C++ code using MSBuild/cl.
Have you got any hint, guide or tutorial on how to achieve this?
Thank you so much for your support!