Jenkins does not recognize command sh?

后端 未结 9 1913
心在旅途
心在旅途 2020-12-09 09:27

I\'ve been having a lot of trouble trying to get a Jenkinsfile to work. I\'ve been trying to run this test script:

#!/usr/bin/env groovy
node {
    stage(\'         


        
9条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-09 09:59

    In my case, I did this.

    1. Remove Path variable from Jenkins Environment variables.

    1. Added 'withEnv(['PATH+EXTRA=/opt/flutter/bin'])' in my steps.

提交回复
热议问题