如何为jenkins管道阶段中的每个步骤添加名称

问题描述 投票:0回答:1
stage('type checking') {
     steps {
          script {
              docker.image('node:8').inside() {
                   sh '''
                   npm run lint
                   npm run type-check
                        '''
               }
           }
      }
 }

我想把npm run lintnpm run type-check分成2个步骤,给每个人一个有意义的名字。如何为每一步命名?

jenkins jenkins-pipeline
1个回答
0
投票

不确定这可以帮助:

               sh 'npm run lint &'
               sh 'npm run type-check &'
© www.soinside.com 2019 - 2024. All rights reserved.