Skip to content
This repository was archived by the owner on Jan 25, 2022. It is now read-only.
This repository was archived by the owner on Jan 25, 2022. It is now read-only.

Double quotes are not escaped in commit message #46

@ST-o-RM

Description

@ST-o-RM

Context

Gitlab-Hook plugin version: 1.4.2
Gitlab version: 8.17.4
Jenkins version: 2.49

Problem description

We have some commit message with "double quotes". It results in ant build erroring out:

[code_analysis] $ ant -file ca_build.xml -DBRANCH_TO_BUILD=feature/revert -DCOMMITS.0.ID=e18c2a1305d54ba996a54b9e4c3e4e89bacb6d00 -Dtotal_commits_count=1 '-DCOMMITS.0.MESSAGE=Revert "feat: show notice when hour cost of wt unknown"

This reverts commit af2a1b4d50bca0473217b78b3816f2517bf9d771.'
Buildfile: /var/lib/jenkins/workspace/develop/build/code_analysis/ca_build.xml

BUILD FAILED
Target "show" does not exist in the project "CodeAnalysis". 

Can we somehow escape double quotes when sending a comit message from the gitlab to jenkins?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions