jenkins执行外壳失败,并出现错误:找不到通道'ios版本

时间:2019-04-04 10:06:23

标签: jenkins fastlane

我的shell代码:

export LANG=en_US.UTF-8
export LANGUAGE=en_US.UTF-8
export LC_ALL=en_US.UTF-8
ls -al
cd NIMDemo/
ls -al
bundle install

bundle exec fastlane release

当我单击jenkins上的“立即构建”按钮时,构建失败并显示错误:

bundle exec fastlane $'release\E'
[16:05:31]: [32m------------------------------[0m
[16:05:31]: [32m--- Step: default_platform ---[0m
[16:05:31]: [32m------------------------------[0m
+------------------+-----+
|      [33mLane Context[0m      |
+------------------+-----+
| DEFAULT_PLATFORM | ios |
+------------------+-----+
[16:05:31]: [31mCould not find lane 'ios release'. Available lanes: ios release, ios tests[0m

+------+------------------+-------------+
|           [32mfastlane summary[0m            |
+------+------------------+-------------+
| Step | Action           | Time (in s) |
+------+------------------+-------------+
| 1    | default_platform | 0           |
+------+------------------+-------------+

[16:05:31]: [31mfastlane finished with errors[0m
[31m
[!] Could not find lane 'ios release'. Available lanes: ios release, ios tests[0m
Build step 'Execute shell' marked build as failure
Finished: FAILURE

我的Fastfile代码:

default_platform(:ios)

platform :ios do

desc "upload appstore lane"
  lane :release do

  end

  lane :tests do
    run_tests(scheme: "MyAppTests")
  end
end
当我在部署的mac jenkins的终端上键入

代码bundle exec fastlane release时,运行正常。

ran result

我该怎么做才能解决。感谢您的帮助。

0 个答案:

没有答案