mirror of
https://github.com/InsanusMokrassar/JenkinsDocker.git
synced 2024-11-08 12:43:47 +00:00
12 lines
231 B
Bash
Executable File
12 lines
231 B
Bash
Executable File
#!/bin/bash
|
|
|
|
if [ -z "$1" ]; then
|
|
newVersion="2.426.3"
|
|
else
|
|
newVersion="$1"
|
|
fi
|
|
|
|
sed -i -E "s/[0-9\.]+\/jenkins.war/${newVersion}\/jenkins.war/g" Dockerfile
|
|
sed -i -E "s/version=\"[0-9\.]+\"/version=\"${newVersion}\"/g" deploy
|
|
|