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

Set custom NodeJS version in Cloud Manager for frontend pipelines

  • May 19, 2023
  • 3 replies
  • 2581 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

Community Advisor
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

Level 2
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
Shashi_Mulugu
Community Advisor
Community Advisor
May 21, 2023
nitesh_kumar-1
Adobe Employee
nitesh_kumar-1Adobe EmployeeAccepted solution
Adobe 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