From 7f993a52517c46adeeddac2ba64490dac1d76f36 Mon Sep 17 00:00:00 2001 From: Rsl1122 Date: Fri, 23 Aug 2019 17:37:24 +0300 Subject: [PATCH] In-place sed replacement --- Jenkinsfile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 024e7cc4f..cbbdefb17 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -7,11 +7,11 @@ pipeline { dir("Plan") { script { sh 'rm -rf builds' - sh 'sed s/%buildNumber%/\$BUILD_NUMBER/g build.gradle > build.gradle' - sh 'sed s/%buildNumber%/\$BUILD_NUMBER/g common/src/main/resources/plugin.yml > common/src/main/resources/plugin.yml' - sh 'sed s/%buildNumber%/\$BUILD_NUMBER/g common/src/main/resources/bungee.yml > common/src/main/resources/bungee.yml' - sh 'sed s/%buildNumber%/\$BUILD_NUMBER/g sponge/src/main/java/com/djrapitops/plan/PlanSponge.java > sponge/src/main/java/com/djrapitops/plan/PlanSponge.java' - sh 'sed s/%buildNumber%/\$BUILD_NUMBER/g velocity/src/main/java/com/djrapitops/plan/PlanVelocity.java > velocity/src/main/java/com/djrapitops/plan/PlanVelocity.java' + sh 'sed -i -e s/%buildNumber%/'$BUILD_NUMBER'/g build.gradle' + sh 'sed -i -e s/%buildNumber%/'$BUILD_NUMBER'/g common/src/main/resources/plugin.yml' + sh 'sed -i -e s/%buildNumber%/'$BUILD_NUMBER'/g common/src/main/resources/bungee.yml' + sh 'sed -i -e s/%buildNumber%/'$BUILD_NUMBER'/g sponge/src/main/java/com/djrapitops/plan/PlanSponge.java' + sh 'sed -i -e s/%buildNumber%/'$BUILD_NUMBER'/g velocity/src/main/java/com/djrapitops/plan/PlanVelocity.java' sh './gradlew clean shadowJar --parallel' } }