Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

构建步骤选择 Execute shell #1

Open
jifengchao opened this issue Jun 4, 2018 · 6 comments
Open

构建步骤选择 Execute shell #1

jifengchao opened this issue Jun 4, 2018 · 6 comments

Comments

@jifengchao
Copy link

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

@whihail
Copy link
Owner

whihail commented Jun 4, 2018

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

@whihail
Copy link
Owner

whihail commented Jun 4, 2018

@jifengchao
Copy link
Author

我在构建项目时,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文件我是直接下载的,并没有修改,我也尝试去修正,但是还是没有解决

@whihail
Copy link
Owner

whihail commented Jun 5, 2018

@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

@whihail
Copy link
Owner

whihail commented Jun 5, 2018

@jifengchao 代码中已更新

@jifengchao
Copy link
Author

非常感谢,已经解决了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants