rover icon indicating copy to clipboard operation
rover copied to clipboard

Using Azure DevOps rover agent

Open dsfrederic opened this issue 3 years ago • 9 comments

So I've been trying to get the Azure DevOps self hosted build agent up and running but didn't succeed yet.

What I did?

  1. Created an Azure Container instance with the following configurations: image

This seems to run properly (despite the lack of documentation).

image

What I expected?

I expected to use the agents as it was a self hosted agent.

What didn't work as expected? image

For certain tasks I'm always getting this error:

##[error]This step requires a node version that does not exist in the agent filesystem. Path: /home/vscode/agent/externals/node10/bin/node

I cannot even use the - script task

    - script: | 
        sudo apt-get install curl
        curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
        sudo apt-get install nodejs
        node -v 

dsfrederic avatar Aug 03 '22 15:08 dsfrederic

@LaurentLesle I'm adding you this thread as a SME. Can you help me along?

dsfrederic avatar Aug 03 '22 15:08 dsfrederic

Hi @dsfrederic thanks for opening this issue. By default the rover base image does not have the nodejs installed. You need to install a supported version. On top of my head only version 14 and above are supported with our base Ubuntu image

Can you try:

curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash -
sudo apt-get install -y nodejs
node --version

LaurentLesle avatar Aug 03 '22 15:08 LaurentLesle

@LaurentLesle The problem is that even to run this this task I'm getting the error...

dsfrederic avatar Aug 04 '22 06:08 dsfrederic

Ok get it. We had to remove node10 as it was raising some security issues and is not supported anymore. This is not something the CAF Terraform landingzone has dependency on but to cover your use case we will have to add node again. We are tracking this draft PR (https://github.com/microsoft/azure-pipelines-agent/pull/3879 and issue https://github.com/microsoft/azure-pipelines-agent/issues/3834). When released the agent will bring back node16.

LaurentLesle avatar Aug 04 '22 17:08 LaurentLesle

@LaurentLesle any news on this issue?

dsfrederic avatar Sep 12 '22 21:09 dsfrederic

or can you provide me with a workaround?

dsfrederic avatar Sep 12 '22 21:09 dsfrederic

@LaurentLesle I can see the PR is merged and that there have been a few github actions that've ran succesfully. Although I cannot seem to find the newest azdo release in DockerHub. Do you have an ETA for this?

I'm excited to start using this methods, but this is a blocker for me.

dsfrederic avatar Sep 15 '22 07:09 dsfrederic

@LaurentLesle @arnaudlh Can you provide me with a solution please?

dsfrederic avatar Sep 19 '22 13:09 dsfrederic

@LaurentLesle @arnaudlh we used the Starter repo for our CAF Terraform project and looks like since you guys move all the initial steps to rover ignite, we have no Azure DevOps pipeline as part of launchpad and also the ignite just providing the level0-level1-level2 of the CAF, so wondering if there is any update regarding this? How we need to have Level 3 and level 4 up and running? looks more we short on documentation.?

Here is the video I was following up with:

https://youtu.be/KK7ubueGR_k

aminniktash2010 avatar Jan 27 '23 16:01 aminniktash2010