Set custom NodeJS version in Cloud Manager for frontend pipelines | Community
Skip to main content
New Participant
May 19, 2023
Solved

Set custom NodeJS version in Cloud Manager for frontend pipelines

  • May 19, 2023
  • 3 replies
  • 2578 views

Developing Sites with the Front-End Pipeline document mentions that it is possible to set NodeJS version to 12 or 16 using pipeline variable CM_CUSTOM_VAR_NODE_VERSION. However, it does not mention which value should be used. I tried setting this variable to 16 and 16.20.0, but neither worked, pipeline still uses 14.19.1. The command I used to set the variable is similar to this:

aio cloudmanager set-pipeline-variables <pipeline id> -v CM_CUSTOM_VAR_NODE_VERSION -v 16

Which value should I use for the change to take effect?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by nitesh_kumar-1

Hi @gleb_usoltsev ,

 

Could you try this?

aio cloudmanager:set-pipeline-variables <pipeline id> --variable NODE_VERSION 16

 

Hope this helps!

 

Regards,

Nitesh

3 replies

nitesh_kumar-1
nitesh_kumar-1Accepted solution
Employee
May 22, 2023

Hi @gleb_usoltsev ,

 

Could you try this?

aio cloudmanager:set-pipeline-variables <pipeline id> --variable NODE_VERSION 16

 

Hope this helps!

 

Regards,

Nitesh

Shashi_Mulugu
New Participant
May 21, 2023
New Participant
May 19, 2023

@gleb_usoltsev  We need to set the values in key value format

aio cloudmanager set-pipeline-variables <pipeline-id> -v CM_CUSTOM_VAR_NODE_VERSION=<node-version>

Ref: GitHub - adobe/aio-cli-plugin-cloudmanager: Cloud Manager plugin for the Adobe I/O CLI

New Participant
May 19, 2023

I don't think command line syntax is the problem here, because when I run command below, I can see the value that I set:

aio cloudmanager list-pipeline-variables <pipeline-id>

Current output for my pipeline:

Name Type Value
────────────────────────── ────── ───────
CM_CUSTOM_VAR_NODE_VERSION string 16.20.0