mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-12-15 05:41:51 +08:00
In-place sed replacement
This commit is contained in:
parent
cdb13e3b66
commit
7f993a5251
10
Jenkinsfile
vendored
10
Jenkinsfile
vendored
@ -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'
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user