whihail / AutoArchive

一个基于Jenkins的iOS/Android自动构建系统,它实现了最大程度的自动化,让你的iOS自动打包,Android自动打包流程变得更加高效。此项目包含了各种实现细节的讲解说明,你能够使用它解决大多数跟客户端构建/分发相关的问题,并将这种能力进行开放,提高研发效率。

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

构建步骤选择 Execute shell

jifengchao opened this issue · comments

你好,请问"构建步骤选择 Execute shell"的示例截图中也是有代码配置的,请问在哪里呢

commented

这里暂时只放了截图,我待会有空写个代码示例放到项目中,希望能帮到你。

我在构建项目时,build失败了,控制台输出“
/Users/dc/jenkins_sh/HrtBuildIpa.sh: line 34: syntax error near unexpected token }' /Users/dc/jenkins_sh/HrtBuildIpa.sh: line 34: }'
Build step 'Execute shell' marked build as failure
Finished: FAILURE

sh文件我是直接下载的,并没有修改,我也尝试去修正,但是还是没有解决

commented

@jifengchao 多谢提醒,请在HrtBuildIpa.sh 34行加上一行 "fi"

# 验证
    if [ -f "./build/${IPAPATH}/${TARGET_NAME}.ipa" ] ; then
    echo "\n\n\033[32m +++++++++++++++++打包成功,用时 ${SECONDS}s ++++++++++++++++++\033[0m\n\n\n"
    else
    echo "\n\n\033[32m +++++++++++++++++打包失败++++++++++++++++++\033[0m\n\n\n"
    fi
commented

@jifengchao 代码中已更新

非常感谢,已经解决了