diff --git a/HEAD/ghpages.sh b/HEAD/ghpages.sh
index e1063ce328..408a9a5e32 100644
--- a/HEAD/ghpages.sh
+++ b/HEAD/ghpages.sh
@@ -28,6 +28,7 @@ if [ "$dirty" != "0" ]; then git stash; fi
# Switch to gh-pages branch to sync it with current branch
###################################################################
git checkout gh-pages
+git pull origin gh-pages
for f in docs/target/generated-docs/*; do
file=${f#docs/target/generated-docs/*}
diff --git a/HEAD/spring-cloud-contract-maven-plugin/complex-content.html b/HEAD/spring-cloud-contract-maven-plugin/complex-content.html
index 63808b715e..bb3d55d4fb 100644
--- a/HEAD/spring-cloud-contract-maven-plugin/complex-content.html
+++ b/HEAD/spring-cloud-contract-maven-plugin/complex-content.html
@@ -1,13 +1,13 @@
@@ -5159,7 +5159,8 @@ public class WiremockForDocsMockServerApplicationTests {
public void contextLoads() throws Exception {
// will read stubs classpath
MockRestServiceServer server = WireMockRestServiceServer.with(this.restTemplate)
- .baseUrl("http://example.org").stubs("classpath:/stubs/resource.json");
+ .baseUrl("http://example.org").stubs("classpath:/stubs/resource.json")
+ .build();
// We're asserting if WireMock responded properly
assertThat(this.service.go()).isEqualTo("Hello World");
server.verify();
@@ -5340,7 +5341,7 @@ number of different ways, including as described above using