我正在使用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.'
}
}
}
}