JenkinsDocker/autoupdate.sh

12 lines
231 B
Bash
Raw Normal View History

2023-11-18 10:43:07 +00:00
#!/bin/bash
if [ -z "$1" ]; then
2024-07-11 14:52:49 +00:00
newVersion="2.452.3"
2023-11-18 10:43:07 +00:00
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