@Jorge Machado: , . . , .
:
:
stage('Dynamic') {
        steps {
            script {
                stage('NewOne') {
                        echo('new one echo')
                }
            }
        }
    }
:
    
        stage('Trigger Building') {
              when {
                environment(name: 'DO_BUILD_PACKAGES', value: 'true')
              }
              steps {
                executeModuleScripts('build') 
              }
            }
    
        void executeModuleScripts(String operation) {
          def allModules = ['module1', 'module2', 'module3', 'module4', 'module11']
          allModules.each { module ->  
          String action = "${operation}:${module}"  
          echo("---- ${action.toUpperCase()} ----")        
          String command = "npm run ${action} -ddd"                   
            
            script {
              stage(module) {
                bat(command)
              }
            }
          }
}