第2行的here-document,以文件结尾分隔(需要`EOF _ $$')

时间:2019-02-27 16:10:14

标签: bash shell groovy jenkins-pipeline jenkins-groovy

下面是执行Shell脚本的Jenkins groovy代码:

height

以下是错误:

    BUILD_FULL = sh (
                script: '''
                        cat > manifest.yml << EOF_$$
                        ---
                        applications:
                        - name: xyz-api
                          instances: 1
                          memory: 1G
                        EOF_$$
                        ''',
                returnStatus: true
                ) == 0

line 9: warning: here-document at line 2 delimited by end-of-file (wanted `EOF_$$') 显示为:

manifest.yml

代替

                        ---
                        applications:
                        - name: xyz-api
                          instances: 1
                          memory: 1G
                        EOF_31892

如何跟踪文件结尾?使用Jenkins groovy

0 个答案:

没有答案