Skip to content

Commit a206cea

Browse files
committed
Fix Groovy escaping for sed backslashes in Jenkinsfile
1 parent b4b2ad6 commit a206cea

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Jenkinsfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ pipeline {
6767
steps {
6868
container('ci') {
6969
sh '''
70-
MAVEN_VERSION=$(curl -sf "https://api.github.com/repos/apache/maven/releases/latest" | grep '"tag_name"' | sed 's/.*"maven-\([^"]*\)".*/\1/')
70+
MAVEN_VERSION=$(curl -sf "https://api.github.com/repos/apache/maven/releases/latest" | grep '"tag_name"' | sed 's/.*"maven-\\([^"]*\\)".*/\\1/')
7171
curl -o maven.tar.gz -L "https://dlcdn.apache.org/maven/maven-3/${MAVEN_VERSION}/binaries/apache-maven-${MAVEN_VERSION}-bin.tar.gz"
7272
tar -xzf maven.tar.gz -C ${WORKSPACE}
7373
rm -f maven.tar.gz

0 commit comments

Comments
 (0)