mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-21 06:45:49 +00:00
Updated IPs
This commit is contained in:
parent
e53609f1fc
commit
9b205517c8
3 changed files with 5 additions and 5 deletions
2
Jenkinsfile
vendored
2
Jenkinsfile
vendored
|
@ -22,7 +22,7 @@ pipeline {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
steps {
|
steps {
|
||||||
sh 'scp -P 2225 -r script.sh admin@192.168.1.19:/home/admin/.'
|
sh 'scp -P 2225 -r script.sh admin@192.168.0.20:/home/admin/.'
|
||||||
sh 'ssh -p 2225 admin@192.168.1.19 < script.sh'
|
sh 'ssh -p 2225 admin@192.168.1.19 < script.sh'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
2
pom.xml
2
pom.xml
|
@ -423,7 +423,7 @@
|
||||||
<snapshotRepository>
|
<snapshotRepository>
|
||||||
<id>snapshots</id>
|
<id>snapshots</id>
|
||||||
<name>localhost.localdomain-snapshots</name>
|
<name>localhost.localdomain-snapshots</name>
|
||||||
<url>http://192.168.1.19:8081/artifactory/libs-snapshot-local</url>
|
<url>http://192.168.0.20:8081/artifactory/libs-snapshot-local</url>
|
||||||
</snapshotRepository>
|
</snapshotRepository>
|
||||||
</distributionManagement>
|
</distributionManagement>
|
||||||
|
|
||||||
|
|
|
@ -1,16 +1,16 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
wget http://192.168.1.19:8081/artifactory/libs-snapshot-local/org/springframework/samples/spring-petclinic/maven-metadata.xml
|
wget http://192.168.0.20:8081/artifactory/libs-snapshot-local/org/springframework/samples/spring-petclinic/maven-metadata.xml
|
||||||
VERSION=$(cat maven-metadata.xml | grep -m 1 -oP '(?<=<version>).*(?=</version>)')
|
VERSION=$(cat maven-metadata.xml | grep -m 1 -oP '(?<=<version>).*(?=</version>)')
|
||||||
rm -f maven-metadata.xml
|
rm -f maven-metadata.xml
|
||||||
wget http://192.168.1.19:8081/artifactory/libs-snapshot-local/org/springframework/samples/spring-petclinic/$VERSION/maven-metadata.xml
|
wget http://192.168.0.20:8081/artifactory/libs-snapshot-local/org/springframework/samples/spring-petclinic/$VERSION/maven-metadata.xml
|
||||||
|
|
||||||
AID=$(cat maven-metadata.xml | grep -m 1 -oP '(?<=<artifactId>).*(?=</artifactId>)')
|
AID=$(cat maven-metadata.xml | grep -m 1 -oP '(?<=<artifactId>).*(?=</artifactId>)')
|
||||||
VALUE=$(cat maven-metadata.xml | grep -m 1 -oP '(?<=<value>).*(?=</value>)')
|
VALUE=$(cat maven-metadata.xml | grep -m 1 -oP '(?<=<value>).*(?=</value>)')
|
||||||
echo $AID-$VALUE.war > version
|
echo $AID-$VALUE.war > version
|
||||||
#echo "curl \"http://192.168.0.56:8081/repository/maven-snapshots/org/springframework/samples/spring-petclinic/$VERSION/" > command
|
#echo "curl \"http://192.168.0.56:8081/repository/maven-snapshots/org/springframework/samples/spring-petclinic/$VERSION/" > command
|
||||||
|
|
||||||
echo "curl \"http://192.168.1.19:8081/artifactory/libs-snapshot-local/org/springframework/samples/spring-petclinic/$VERSION/" > command
|
echo "curl \"http://192.168.0.20:8081/artifactory/libs-snapshot-local/org/springframework/samples/spring-petclinic/$VERSION/" > command
|
||||||
|
|
||||||
paste -d '' command version > firsthalf
|
paste -d '' command version > firsthalf
|
||||||
echo "\" -o /usr/share/tomcat/webapps/petclinic.war" > secondhalf
|
echo "\" -o /usr/share/tomcat/webapps/petclinic.war" > secondhalf
|
||||||
|
|
Loading…
Reference in a new issue