Tag docker images for smoke tests with date and time.
MODIFY
smoke-tests/fake-backend/build.gradle
smoke-tests/fake-backend/build.gradle
@@ -30,10 +30,7 @@ dependencies {
}
jib {
- to {
- image = "open-telemetry-docker-dev.bintray.io/java/smoke-fake-backend"
- }
- from {
- image = "gcr.io/distroless/java-debian10:11"
- }
+ from.image = "gcr.io/distroless/java-debian10:11"
+ to.image = "open-telemetry-docker-dev.bintray.io/java/smoke-fake-backend"
+ to.tags = [new Date().format("yyyyMMdd.HHmmSS")]
}

MODIFY
smoke-tests/grpc/build.gradle
smoke-tests/grpc/build.gradle
@@ -40,4 +40,5 @@ def targetJDK = project.hasProperty("targetJDK") ? project.targetJDK : 11
jib {
from.image = "bellsoft/liberica-openjdk-alpine:$targetJDK"
to.image = "open-telemetry-docker-dev.bintray.io/java/smoke-grpc-jdk$targetJDK"
+ to.tags = [new Date().format("yyyyMMdd.HHmmSS")]
}

MODIFY
smoke-tests/grpc/src/main/java/io/opentelemetry/smoketest/grpc/TestService.java
smoke-tests/grpc/src/main/java/io/opentelemetry/smoketest/grpc/TestService.java
package io.opentelemetry.smoketest.grpc;
import io.grpc.stub.StreamObserver;
-import io.opentelemetry.extensions.auto.annotations.WithSpan;
+import io.opentelemetry.extension.auto.annotations.WithSpan;
import io.opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest;
import io.opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse;
import io.opentelemetry.proto.collector.trace.v1.TraceServiceGrpc;

MODIFY
smoke-tests/play/build.gradle
smoke-tests/play/build.gradle
@@ -40,5 +40,6 @@ def targetJDK = project.hasProperty("targetJDK") ? project.targetJDK : 11
jib {
from.image = "bellsoft/liberica-openjdk-alpine:$targetJDK"
to.image = "open-telemetry-docker-dev.bintray.io/java/smoke-play-jdk$targetJDK"
+ to.tags = [new Date().format("yyyyMMdd.HHmmSS")]
container.mainClass = "play.core.server.ProdServerStart"
}
\ No newline at end of file

MODIFY
smoke-tests/springboot/build.gradle
smoke-tests/springboot/build.gradle
@@ -34,4 +34,5 @@ def targetJDK = project.hasProperty("targetJDK") ? project.targetJDK : 11
jib {
from.image = "bellsoft/liberica-openjdk-alpine:$targetJDK"
to.image = "open-telemetry-docker-dev.bintray.io/java/smoke-springboot-jdk$targetJDK"
+ to.tags = [new Date().format("yyyyMMdd.HHmmSS")]
}
\ No newline at end of file

MODIFY
smoke-tests/springboot/src/main/java/io/opentelemetry/smoketest/springboot/controller/WebController.java
smoke-tests/springboot/src/main/java/io/opentelemetry/smoketest/springboot/controller/WebController.java
package io.opentelemetry.smoketest.springboot.controller;
-import io.opentelemetry.extensions.auto.annotations.WithSpan;
+import io.opentelemetry.extension.auto.annotations.WithSpan;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.RequestMapping;

Tag docker images for smoke tests with date and time. (#1553)