fastlane:在詹金斯管道中找不到命令

时间:2018-10-08 10:33:56

标签: ios jenkins continuous-integration jenkins-pipeline fastlane

我正在使用jenkins管道检出我的代码,并使用HockeyApp工具构建和发布我的应用程序。对于上述所有步骤,我都想使用Fastlane命令,并且应使用Shell脚本以声明性管道语法执行它们。我怎样才能做到这一点。以下是我的声明性管道脚本。

我应该在哪里配置Fastlane路径?应该在jenkins配置中还是在其他地方完成?请帮帮我。 谢谢

  pipeline {
      agent any

       stages {
            stage('First Stage Cocoapods Install') {
                steps {
                echo 'Hi, this is first jenkins pipeline stage.'
             /*checkout([$class: 'GitSCM', branches: [[name: '*/master']], doGenerateSubmoduleConfigurations: false, extensions: [], submoduleCfg: [], userRemoteConfigs: [[credentialsId: 'Bitbucket', url: 'https://********@bitbucket.org/*****/******.git']]])*/

                // Mark the cocoapods 'stage'....
                 sh "fastlane pods"   

                }
            }

            stage('Second Stage Build the App') {
                steps {
                echo 'Hi, this is Second jenkins pipeline stage.'
                sh "fastlane gym"
                }
            }
            stage('Three Stage') {
                steps {
                echo 'Hi, this is Third jenkins pipeline stage.'
                }
            }

            stage('Four Stage') {
                steps {
                echo 'Hi, this is fourth jenkins pipeline stage.'
                }
            }
        }

}

0 个答案:

没有答案
相关问题