In-place sed replacement

This commit is contained in:
Rsl1122 2019-08-23 17:37:24 +03:00
parent cdb13e3b66
commit 7f993a5251

10
Jenkinsfile vendored
View File

@ -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'
}
}