Comments (13)
@eformat can you show the output of "oc get is helloworld-mvn -o json"?
from jenkins-plugin.
heya ben, heres the output with latest build of the plugin, sorry this is ugly ...
oc get is helloworld-mvn -o json
{
"kind": "ImageStream",
"apiVersion": "v1",
"metadata": {
"name": "helloworld-mvn",
"namespace": "springboot-sti",
"selfLink": "/oapi/v1/namespaces/springboot-sti/imagestreams/helloworld-mvn",
"uid": "b8c34648-eef7-11e5-b1d5-4201c0a80002",
"resourceVersion": "158269",
"creationTimestamp": "2016-03-20T23:59:02Z",
"labels": {
"application": "springboot-helloworld-maven",
"createdBy": "template-springboot-helloworld-maven"
},
"annotations": {
"openshift.io/image.dockerRepositoryCheck": "2016-03-20T23:59:02Z"
}
},
"spec": {
"tags": [
{
"name": "latest"
},
{
"name": "promote",
"from": {
"kind": "ImageStreamTag",
"name": "helloworld-mvn:latest"
}
}
]
},
"status": {
"dockerImageRepository": "172.30.195.211:5000/springboot-sti/helloworld-mvn",
"tags": [
{
"tag": "latest",
"items": [
{
"created": "2016-03-21T19:23:23Z",
"dockerImageReference": "172.30.195.211:5000/springboot-sti/helloworld-mvn@sha256:001cce1f7a1ea3b3be36f4cb56d66e7e60b783c6002d2207646d36a95f8ddc3f",
"image": "sha256:001cce1f7a1ea3b3be36f4cb56d66e7e60b783c6002d2207646d36a95f8ddc3f"
},
{
"created": "2016-03-21T07:03:02Z",
"dockerImageReference": "172.30.195.211:5000/springboot-sti/helloworld-mvn@sha256:e5c70c57f693e826669b5d54ff7489db71d58e712785e59af495f857cee4a0e1",
"image": "sha256:e5c70c57f693e826669b5d54ff7489db71d58e712785e59af495f857cee4a0e1"
},
{
"created": "2016-03-21T06:58:48Z",
"dockerImageReference": "172.30.195.211:5000/springboot-sti/helloworld-mvn@sha256:a01e0a1230c22236fa6d0d03e56356d4ddbef66653b693cee687b80d78673a0c",
"image": "sha256:a01e0a1230c22236fa6d0d03e56356d4ddbef66653b693cee687b80d78673a0c"
},
{
"created": "2016-03-21T03:46:22Z",
"dockerImageReference": "172.30.195.211:5000/springboot-sti/helloworld-mvn@sha256:c43ccbf52cd8210bc239a8b2b2cf4d436662ec3f784adc22c7aeaadbff363cb8",
"image": "sha256:c43ccbf52cd8210bc239a8b2b2cf4d436662ec3f784adc22c7aeaadbff363cb8"
},
{
"created": "2016-03-21T03:41:33Z",
"dockerImageReference": "172.30.195.211:5000/springboot-sti/helloworld-mvn@sha256:092e5f6284ea9715f093a55bbd7a6842986746fbd194638a37a56617decb0ba2",
"image": "sha256:092e5f6284ea9715f093a55bbd7a6842986746fbd194638a37a56617decb0ba2"
},
{
"created": "2016-03-21T03:38:07Z",
"dockerImageReference": "172.30.195.211:5000/springboot-sti/helloworld-mvn@sha256:1ad7087b9a02531cfa81bdc946223d08d8702563184bdb8ebbe18a1aa21bb37a",
"image": "sha256:1ad7087b9a02531cfa81bdc946223d08d8702563184bdb8ebbe18a1aa21bb37a"
},
{
"created": "2016-03-21T03:09:10Z",
"dockerImageReference": "172.30.195.211:5000/springboot-sti/helloworld-mvn@sha256:4f090faa53baba21037551262beb65f4c1d84b0df04f090e87d3e1e2ced2be60",
"image": "sha256:4f090faa53baba21037551262beb65f4c1d84b0df04f090e87d3e1e2ced2be60"
},
{
"created": "2016-03-21T02:57:09Z",
"dockerImageReference": "172.30.195.211:5000/springboot-sti/helloworld-mvn@sha256:79cefcf02ed34ea26b325289a11c205b780cc2b86570625fbb5a2968d563201a",
"image": "sha256:79cefcf02ed34ea26b325289a11c205b780cc2b86570625fbb5a2968d563201a"
},
{
"created": "2016-03-21T02:33:54Z",
"dockerImageReference": "172.30.195.211:5000/springboot-sti/helloworld-mvn@sha256:2fcbcb44785dd19e6c22c901ab600579f611c396cedf0ec4f117792ab180d887",
"image": "sha256:2fcbcb44785dd19e6c22c901ab600579f611c396cedf0ec4f117792ab180d887"
},
{
"created": "2016-03-21T01:53:12Z",
"dockerImageReference": "172.30.195.211:5000/springboot-sti/helloworld-mvn@sha256:ac8627227f9300b8b1a1bde4e5fdde453065d8d3c27001b4eaf9675c6ec5b970",
"image": "sha256:ac8627227f9300b8b1a1bde4e5fdde453065d8d3c27001b4eaf9675c6ec5b970"
},
{
"created": "2016-03-21T01:41:01Z",
"dockerImageReference": "172.30.195.211:5000/springboot-sti/helloworld-mvn@sha256:c878637f3b15a3fc99de91887e490299c49d3b3949dbfdd222bb635825884ed8",
"image": "sha256:c878637f3b15a3fc99de91887e490299c49d3b3949dbfdd222bb635825884ed8"
},
{
"created": "2016-03-21T01:28:38Z",
"dockerImageReference": "172.30.195.211:5000/springboot-sti/helloworld-mvn@sha256:c194afc9d35c70a1a813d5af4104c45eb39cd49d331bb2adac32807823be0129",
"image": "sha256:c194afc9d35c70a1a813d5af4104c45eb39cd49d331bb2adac32807823be0129"
},
{
"created": "2016-03-21T01:16:43Z",
"dockerImageReference": "172.30.195.211:5000/springboot-sti/helloworld-mvn@sha256:62628af958fb31bf26e4d4b14d4c2d50d48922f2ffe8e8616e08202d24191a4a",
"image": "sha256:62628af958fb31bf26e4d4b14d4c2d50d48922f2ffe8e8616e08202d24191a4a"
},
{
"created": "2016-03-21T01:08:43Z",
"dockerImageReference": "172.30.195.211:5000/springboot-sti/helloworld-mvn@sha256:f4f47bffedf9847d1a22a50d9c0906c5a7d32a586928eb1075d926a85bfe04f4",
"image": "sha256:f4f47bffedf9847d1a22a50d9c0906c5a7d32a586928eb1075d926a85bfe04f4"
},
{
"created": "2016-03-21T01:02:02Z",
"dockerImageReference": "172.30.195.211:5000/springboot-sti/helloworld-mvn@sha256:dd130a694dbcc83eca666f198e561bd259a938467555a5d469be85e4301d4674",
"image": "sha256:dd130a694dbcc83eca666f198e561bd259a938467555a5d469be85e4301d4674"
},
{
"created": "2016-03-21T00:47:03Z",
"dockerImageReference": "172.30.195.211:5000/springboot-sti/helloworld-mvn@sha256:009c9c2bd0817783060f15943db5f36f09d281f6b7b94768f776f4295b88b0c3",
"image": "sha256:009c9c2bd0817783060f15943db5f36f09d281f6b7b94768f776f4295b88b0c3"
},
{
"created": "2016-03-21T00:38:12Z",
"dockerImageReference": "172.30.195.211:5000/springboot-sti/helloworld-mvn@sha256:8179fadb75080457d0e0ac94592b5dea4929e5b5cdca58de3c6a5184861e733b",
"image": "sha256:8179fadb75080457d0e0ac94592b5dea4929e5b5cdca58de3c6a5184861e733b"
},
{
"created": "2016-03-21T00:19:17Z",
"dockerImageReference": "172.30.195.211:5000/springboot-sti/helloworld-mvn@sha256:3bc20fd393e67b883f1f2781ee947fbd37c64fa71e51bb9c1abda0a801245b4f",
"image": "sha256:3bc20fd393e67b883f1f2781ee947fbd37c64fa71e51bb9c1abda0a801245b4f"
},
{
"created": "2016-03-21T00:02:21Z",
"dockerImageReference": "172.30.195.211:5000/springboot-sti/helloworld-mvn@sha256:d78aa82410dfcfa466344829b424d62c4c4df4857de5dfbc5cb5f953f74326c2",
"image": "sha256:d78aa82410dfcfa466344829b424d62c4c4df4857de5dfbc5cb5f953f74326c2"
}
]
},
{
"tag": "promote",
"items": [
{
"created": "2016-03-21T19:23:23Z",
"dockerImageReference": "172.30.195.211:5000/springboot-sti/helloworld-mvn@sha256:001cce1f7a1ea3b3be36f4cb56d66e7e60b783c6002d2207646d36a95f8ddc3f",
"image": "sha256:001cce1f7a1ea3b3be36f4cb56d66e7e60b783c6002d2207646d36a95f8ddc3f"
},
{
"created": "2016-03-21T07:16:07Z",
"dockerImageReference": "172.30.195.211:5000/springboot-sti/helloworld-mvn@sha256:e5c70c57f693e826669b5d54ff7489db71d58e712785e59af495f857cee4a0e1",
"image": "sha256:e5c70c57f693e826669b5d54ff7489db71d58e712785e59af495f857cee4a0e1"
},
{
"created": "2016-03-21T07:00:13Z",
"dockerImageReference": "172.30.195.211:5000/springboot-sti/helloworld-mvn@sha256:a01e0a1230c22236fa6d0d03e56356d4ddbef66653b693cee687b80d78673a0c",
"image": "sha256:a01e0a1230c22236fa6d0d03e56356d4ddbef66653b693cee687b80d78673a0c"
},
{
"created": "2016-03-21T03:46:22Z",
"dockerImageReference": "172.30.195.211:5000/springboot-sti/helloworld-mvn@sha256:c43ccbf52cd8210bc239a8b2b2cf4d436662ec3f784adc22c7aeaadbff363cb8",
"image": "sha256:c43ccbf52cd8210bc239a8b2b2cf4d436662ec3f784adc22c7aeaadbff363cb8"
},
{
"created": "2016-03-21T03:41:33Z",
"dockerImageReference": "172.30.195.211:5000/springboot-sti/helloworld-mvn@sha256:092e5f6284ea9715f093a55bbd7a6842986746fbd194638a37a56617decb0ba2",
"image": "sha256:092e5f6284ea9715f093a55bbd7a6842986746fbd194638a37a56617decb0ba2"
},
{
"created": "2016-03-21T03:38:07Z",
"dockerImageReference": "172.30.195.211:5000/springboot-sti/helloworld-mvn@sha256:1ad7087b9a02531cfa81bdc946223d08d8702563184bdb8ebbe18a1aa21bb37a",
"image": "sha256:1ad7087b9a02531cfa81bdc946223d08d8702563184bdb8ebbe18a1aa21bb37a"
},
{
"created": "2016-03-21T03:09:10Z",
"dockerImageReference": "172.30.195.211:5000/springboot-sti/helloworld-mvn@sha256:4f090faa53baba21037551262beb65f4c1d84b0df04f090e87d3e1e2ced2be60",
"image": "sha256:4f090faa53baba21037551262beb65f4c1d84b0df04f090e87d3e1e2ced2be60"
},
{
"created": "2016-03-21T02:57:09Z",
"dockerImageReference": "172.30.195.211:5000/springboot-sti/helloworld-mvn@sha256:79cefcf02ed34ea26b325289a11c205b780cc2b86570625fbb5a2968d563201a",
"image": "sha256:79cefcf02ed34ea26b325289a11c205b780cc2b86570625fbb5a2968d563201a"
},
{
"created": "2016-03-21T02:33:54Z",
"dockerImageReference": "172.30.195.211:5000/springboot-sti/helloworld-mvn@sha256:2fcbcb44785dd19e6c22c901ab600579f611c396cedf0ec4f117792ab180d887",
"image": "sha256:2fcbcb44785dd19e6c22c901ab600579f611c396cedf0ec4f117792ab180d887"
},
{
"created": "2016-03-21T01:57:17Z",
"dockerImageReference": "172.30.195.211:5000/springboot-sti/helloworld-mvn@sha256:ac8627227f9300b8b1a1bde4e5fdde453065d8d3c27001b4eaf9675c6ec5b970",
"image": "sha256:ac8627227f9300b8b1a1bde4e5fdde453065d8d3c27001b4eaf9675c6ec5b970"
},
{
"created": "2016-03-21T01:28:38Z",
"dockerImageReference": "172.30.195.211:5000/springboot-sti/helloworld-mvn@sha256:c194afc9d35c70a1a813d5af4104c45eb39cd49d331bb2adac32807823be0129",
"image": "sha256:c194afc9d35c70a1a813d5af4104c45eb39cd49d331bb2adac32807823be0129"
},
{
"created": "2016-03-21T01:16:43Z",
"dockerImageReference": "172.30.195.211:5000/springboot-sti/helloworld-mvn@sha256:62628af958fb31bf26e4d4b14d4c2d50d48922f2ffe8e8616e08202d24191a4a",
"image": "sha256:62628af958fb31bf26e4d4b14d4c2d50d48922f2ffe8e8616e08202d24191a4a"
},
{
"created": "2016-03-21T01:08:43Z",
"dockerImageReference": "172.30.195.211:5000/springboot-sti/helloworld-mvn@sha256:f4f47bffedf9847d1a22a50d9c0906c5a7d32a586928eb1075d926a85bfe04f4",
"image": "sha256:f4f47bffedf9847d1a22a50d9c0906c5a7d32a586928eb1075d926a85bfe04f4"
},
{
"created": "2016-03-21T01:02:02Z",
"dockerImageReference": "172.30.195.211:5000/springboot-sti/helloworld-mvn@sha256:dd130a694dbcc83eca666f198e561bd259a938467555a5d469be85e4301d4674",
"image": "sha256:dd130a694dbcc83eca666f198e561bd259a938467555a5d469be85e4301d4674"
},
{
"created": "2016-03-21T00:47:03Z",
"dockerImageReference": "172.30.195.211:5000/springboot-sti/helloworld-mvn@sha256:009c9c2bd0817783060f15943db5f36f09d281f6b7b94768f776f4295b88b0c3",
"image": "sha256:009c9c2bd0817783060f15943db5f36f09d281f6b7b94768f776f4295b88b0c3"
},
{
"created": "2016-03-21T00:38:12Z",
"dockerImageReference": "172.30.195.211:5000/springboot-sti/helloworld-mvn@sha256:8179fadb75080457d0e0ac94592b5dea4929e5b5cdca58de3c6a5184861e733b",
"image": "sha256:8179fadb75080457d0e0ac94592b5dea4929e5b5cdca58de3c6a5184861e733b"
},
{
"created": "2016-03-21T00:19:17Z",
"dockerImageReference": "172.30.195.211:5000/springboot-sti/helloworld-mvn@sha256:3bc20fd393e67b883f1f2781ee947fbd37c64fa71e51bb9c1abda0a801245b4f",
"image": "sha256:3bc20fd393e67b883f1f2781ee947fbd37c64fa71e51bb9c1abda0a801245b4f"
}
]
}
]
}
}
now, if i uncomment this line, rebuild + redeploy the plugin into jenkins and rebuild + retag my image:
https://github.com/openshift/jenkins-plugin/blob/master/src/main/java/com/openshift/jenkins/plugins/pipeline/OpenShiftImageTagger.java#L201
// destIS.addTag(getProdTag(overrides), "ImageStreamImage", srcImageID);
i get the following - note that the Image Spec piece now points to the PullSpec rather than the :latest tag
oc get is helloworld-mvn -o json
{
"kind": "ImageStream",
"apiVersion": "v1",
"metadata": {
"name": "helloworld-mvn",
"namespace": "springboot-sti",
"selfLink": "/oapi/v1/namespaces/springboot-sti/imagestreams/helloworld-mvn",
"uid": "b8c34648-eef7-11e5-b1d5-4201c0a80002",
"resourceVersion": "158884",
"creationTimestamp": "2016-03-20T23:59:02Z",
"labels": {
"application": "springboot-helloworld-maven",
"createdBy": "template-springboot-helloworld-maven"
},
"annotations": {
"openshift.io/image.dockerRepositoryCheck": "2016-03-20T23:59:02Z"
}
},
"spec": {
"tags": [
{
"name": "latest"
},
{
"name": "promote",
"from": {
"kind": "ImageStreamImage",
"namespace": "springboot-sti",
"name": "helloworld-mvn@a8978c67c9b22f4f0fa7b32a0486aac91e21485d2df618be621ac56c07d711e1"
}
}
]
},
"status": {
"dockerImageRepository": "172.30.195.211:5000/springboot-sti/helloworld-mvn",
"tags": [
{
"tag": "latest",
"items": [
{
"created": "2016-03-21T19:38:55Z",
"dockerImageReference": "172.30.195.211:5000/springboot-sti/helloworld-mvn@sha256:a8978c67c9b22f4f0fa7b32a0486aac91e21485d2df618be621ac56c07d711e1",
"image": "sha256:a8978c67c9b22f4f0fa7b32a0486aac91e21485d2df618be621ac56c07d711e1"
},
{
"created": "2016-03-21T19:23:23Z",
"dockerImageReference": "172.30.195.211:5000/springboot-sti/helloworld-mvn@sha256:001cce1f7a1ea3b3be36f4cb56d66e7e60b783c6002d2207646d36a95f8ddc3f",
"image": "sha256:001cce1f7a1ea3b3be36f4cb56d66e7e60b783c6002d2207646d36a95f8ddc3f"
},
{
"created": "2016-03-21T07:03:02Z",
"dockerImageReference": "172.30.195.211:5000/springboot-sti/helloworld-mvn@sha256:e5c70c57f693e826669b5d54ff7489db71d58e712785e59af495f857cee4a0e1",
"image": "sha256:e5c70c57f693e826669b5d54ff7489db71d58e712785e59af495f857cee4a0e1"
},
{
"created": "2016-03-21T06:58:48Z",
"dockerImageReference": "172.30.195.211:5000/springboot-sti/helloworld-mvn@sha256:a01e0a1230c22236fa6d0d03e56356d4ddbef66653b693cee687b80d78673a0c",
"image": "sha256:a01e0a1230c22236fa6d0d03e56356d4ddbef66653b693cee687b80d78673a0c"
},
{
"created": "2016-03-21T03:46:22Z",
"dockerImageReference": "172.30.195.211:5000/springboot-sti/helloworld-mvn@sha256:c43ccbf52cd8210bc239a8b2b2cf4d436662ec3f784adc22c7aeaadbff363cb8",
"image": "sha256:c43ccbf52cd8210bc239a8b2b2cf4d436662ec3f784adc22c7aeaadbff363cb8"
},
{
"created": "2016-03-21T03:41:33Z",
"dockerImageReference": "172.30.195.211:5000/springboot-sti/helloworld-mvn@sha256:092e5f6284ea9715f093a55bbd7a6842986746fbd194638a37a56617decb0ba2",
"image": "sha256:092e5f6284ea9715f093a55bbd7a6842986746fbd194638a37a56617decb0ba2"
},
{
"created": "2016-03-21T03:38:07Z",
"dockerImageReference": "172.30.195.211:5000/springboot-sti/helloworld-mvn@sha256:1ad7087b9a02531cfa81bdc946223d08d8702563184bdb8ebbe18a1aa21bb37a",
"image": "sha256:1ad7087b9a02531cfa81bdc946223d08d8702563184bdb8ebbe18a1aa21bb37a"
},
{
"created": "2016-03-21T03:09:10Z",
"dockerImageReference": "172.30.195.211:5000/springboot-sti/helloworld-mvn@sha256:4f090faa53baba21037551262beb65f4c1d84b0df04f090e87d3e1e2ced2be60",
"image": "sha256:4f090faa53baba21037551262beb65f4c1d84b0df04f090e87d3e1e2ced2be60"
},
{
"created": "2016-03-21T02:57:09Z",
"dockerImageReference": "172.30.195.211:5000/springboot-sti/helloworld-mvn@sha256:79cefcf02ed34ea26b325289a11c205b780cc2b86570625fbb5a2968d563201a",
"image": "sha256:79cefcf02ed34ea26b325289a11c205b780cc2b86570625fbb5a2968d563201a"
},
{
"created": "2016-03-21T02:33:54Z",
"dockerImageReference": "172.30.195.211:5000/springboot-sti/helloworld-mvn@sha256:2fcbcb44785dd19e6c22c901ab600579f611c396cedf0ec4f117792ab180d887",
"image": "sha256:2fcbcb44785dd19e6c22c901ab600579f611c396cedf0ec4f117792ab180d887"
},
{
"created": "2016-03-21T01:53:12Z",
"dockerImageReference": "172.30.195.211:5000/springboot-sti/helloworld-mvn@sha256:ac8627227f9300b8b1a1bde4e5fdde453065d8d3c27001b4eaf9675c6ec5b970",
"image": "sha256:ac8627227f9300b8b1a1bde4e5fdde453065d8d3c27001b4eaf9675c6ec5b970"
},
{
"created": "2016-03-21T01:41:01Z",
"dockerImageReference": "172.30.195.211:5000/springboot-sti/helloworld-mvn@sha256:c878637f3b15a3fc99de91887e490299c49d3b3949dbfdd222bb635825884ed8",
"image": "sha256:c878637f3b15a3fc99de91887e490299c49d3b3949dbfdd222bb635825884ed8"
},
{
"created": "2016-03-21T01:28:38Z",
"dockerImageReference": "172.30.195.211:5000/springboot-sti/helloworld-mvn@sha256:c194afc9d35c70a1a813d5af4104c45eb39cd49d331bb2adac32807823be0129",
"image": "sha256:c194afc9d35c70a1a813d5af4104c45eb39cd49d331bb2adac32807823be0129"
},
{
"created": "2016-03-21T01:16:43Z",
"dockerImageReference": "172.30.195.211:5000/springboot-sti/helloworld-mvn@sha256:62628af958fb31bf26e4d4b14d4c2d50d48922f2ffe8e8616e08202d24191a4a",
"image": "sha256:62628af958fb31bf26e4d4b14d4c2d50d48922f2ffe8e8616e08202d24191a4a"
},
{
"created": "2016-03-21T01:08:43Z",
"dockerImageReference": "172.30.195.211:5000/springboot-sti/helloworld-mvn@sha256:f4f47bffedf9847d1a22a50d9c0906c5a7d32a586928eb1075d926a85bfe04f4",
"image": "sha256:f4f47bffedf9847d1a22a50d9c0906c5a7d32a586928eb1075d926a85bfe04f4"
},
{
"created": "2016-03-21T01:02:02Z",
"dockerImageReference": "172.30.195.211:5000/springboot-sti/helloworld-mvn@sha256:dd130a694dbcc83eca666f198e561bd259a938467555a5d469be85e4301d4674",
"image": "sha256:dd130a694dbcc83eca666f198e561bd259a938467555a5d469be85e4301d4674"
},
{
"created": "2016-03-21T00:47:03Z",
"dockerImageReference": "172.30.195.211:5000/springboot-sti/helloworld-mvn@sha256:009c9c2bd0817783060f15943db5f36f09d281f6b7b94768f776f4295b88b0c3",
"image": "sha256:009c9c2bd0817783060f15943db5f36f09d281f6b7b94768f776f4295b88b0c3"
},
{
"created": "2016-03-21T00:38:12Z",
"dockerImageReference": "172.30.195.211:5000/springboot-sti/helloworld-mvn@sha256:8179fadb75080457d0e0ac94592b5dea4929e5b5cdca58de3c6a5184861e733b",
"image": "sha256:8179fadb75080457d0e0ac94592b5dea4929e5b5cdca58de3c6a5184861e733b"
},
{
"created": "2016-03-21T00:19:17Z",
"dockerImageReference": "172.30.195.211:5000/springboot-sti/helloworld-mvn@sha256:3bc20fd393e67b883f1f2781ee947fbd37c64fa71e51bb9c1abda0a801245b4f",
"image": "sha256:3bc20fd393e67b883f1f2781ee947fbd37c64fa71e51bb9c1abda0a801245b4f"
},
{
"created": "2016-03-21T00:02:21Z",
"dockerImageReference": "172.30.195.211:5000/springboot-sti/helloworld-mvn@sha256:d78aa82410dfcfa466344829b424d62c4c4df4857de5dfbc5cb5f953f74326c2",
"image": "sha256:d78aa82410dfcfa466344829b424d62c4c4df4857de5dfbc5cb5f953f74326c2"
}
]
},
{
"tag": "promote",
"items": [
{
"created": "2016-03-21T19:38:55Z",
"dockerImageReference": "172.30.195.211:5000/springboot-sti/helloworld-mvn@sha256:a8978c67c9b22f4f0fa7b32a0486aac91e21485d2df618be621ac56c07d711e1",
"image": "sha256:a8978c67c9b22f4f0fa7b32a0486aac91e21485d2df618be621ac56c07d711e1"
},
{
"created": "2016-03-21T19:23:23Z",
"dockerImageReference": "172.30.195.211:5000/springboot-sti/helloworld-mvn@sha256:001cce1f7a1ea3b3be36f4cb56d66e7e60b783c6002d2207646d36a95f8ddc3f",
"image": "sha256:001cce1f7a1ea3b3be36f4cb56d66e7e60b783c6002d2207646d36a95f8ddc3f"
},
{
"created": "2016-03-21T07:16:07Z",
"dockerImageReference": "172.30.195.211:5000/springboot-sti/helloworld-mvn@sha256:e5c70c57f693e826669b5d54ff7489db71d58e712785e59af495f857cee4a0e1",
"image": "sha256:e5c70c57f693e826669b5d54ff7489db71d58e712785e59af495f857cee4a0e1"
},
{
"created": "2016-03-21T07:00:13Z",
"dockerImageReference": "172.30.195.211:5000/springboot-sti/helloworld-mvn@sha256:a01e0a1230c22236fa6d0d03e56356d4ddbef66653b693cee687b80d78673a0c",
"image": "sha256:a01e0a1230c22236fa6d0d03e56356d4ddbef66653b693cee687b80d78673a0c"
},
{
"created": "2016-03-21T03:46:22Z",
"dockerImageReference": "172.30.195.211:5000/springboot-sti/helloworld-mvn@sha256:c43ccbf52cd8210bc239a8b2b2cf4d436662ec3f784adc22c7aeaadbff363cb8",
"image": "sha256:c43ccbf52cd8210bc239a8b2b2cf4d436662ec3f784adc22c7aeaadbff363cb8"
},
{
"created": "2016-03-21T03:41:33Z",
"dockerImageReference": "172.30.195.211:5000/springboot-sti/helloworld-mvn@sha256:092e5f6284ea9715f093a55bbd7a6842986746fbd194638a37a56617decb0ba2",
"image": "sha256:092e5f6284ea9715f093a55bbd7a6842986746fbd194638a37a56617decb0ba2"
},
{
"created": "2016-03-21T03:38:07Z",
"dockerImageReference": "172.30.195.211:5000/springboot-sti/helloworld-mvn@sha256:1ad7087b9a02531cfa81bdc946223d08d8702563184bdb8ebbe18a1aa21bb37a",
"image": "sha256:1ad7087b9a02531cfa81bdc946223d08d8702563184bdb8ebbe18a1aa21bb37a"
},
{
"created": "2016-03-21T03:09:10Z",
"dockerImageReference": "172.30.195.211:5000/springboot-sti/helloworld-mvn@sha256:4f090faa53baba21037551262beb65f4c1d84b0df04f090e87d3e1e2ced2be60",
"image": "sha256:4f090faa53baba21037551262beb65f4c1d84b0df04f090e87d3e1e2ced2be60"
},
{
"created": "2016-03-21T02:57:09Z",
"dockerImageReference": "172.30.195.211:5000/springboot-sti/helloworld-mvn@sha256:79cefcf02ed34ea26b325289a11c205b780cc2b86570625fbb5a2968d563201a",
"image": "sha256:79cefcf02ed34ea26b325289a11c205b780cc2b86570625fbb5a2968d563201a"
},
{
"created": "2016-03-21T02:33:54Z",
"dockerImageReference": "172.30.195.211:5000/springboot-sti/helloworld-mvn@sha256:2fcbcb44785dd19e6c22c901ab600579f611c396cedf0ec4f117792ab180d887",
"image": "sha256:2fcbcb44785dd19e6c22c901ab600579f611c396cedf0ec4f117792ab180d887"
},
{
"created": "2016-03-21T01:57:17Z",
"dockerImageReference": "172.30.195.211:5000/springboot-sti/helloworld-mvn@sha256:ac8627227f9300b8b1a1bde4e5fdde453065d8d3c27001b4eaf9675c6ec5b970",
"image": "sha256:ac8627227f9300b8b1a1bde4e5fdde453065d8d3c27001b4eaf9675c6ec5b970"
},
{
"created": "2016-03-21T01:28:38Z",
"dockerImageReference": "172.30.195.211:5000/springboot-sti/helloworld-mvn@sha256:c194afc9d35c70a1a813d5af4104c45eb39cd49d331bb2adac32807823be0129",
"image": "sha256:c194afc9d35c70a1a813d5af4104c45eb39cd49d331bb2adac32807823be0129"
},
{
"created": "2016-03-21T01:16:43Z",
"dockerImageReference": "172.30.195.211:5000/springboot-sti/helloworld-mvn@sha256:62628af958fb31bf26e4d4b14d4c2d50d48922f2ffe8e8616e08202d24191a4a",
"image": "sha256:62628af958fb31bf26e4d4b14d4c2d50d48922f2ffe8e8616e08202d24191a4a"
},
{
"created": "2016-03-21T01:08:43Z",
"dockerImageReference": "172.30.195.211:5000/springboot-sti/helloworld-mvn@sha256:f4f47bffedf9847d1a22a50d9c0906c5a7d32a586928eb1075d926a85bfe04f4",
"image": "sha256:f4f47bffedf9847d1a22a50d9c0906c5a7d32a586928eb1075d926a85bfe04f4"
},
{
"created": "2016-03-21T01:02:02Z",
"dockerImageReference": "172.30.195.211:5000/springboot-sti/helloworld-mvn@sha256:dd130a694dbcc83eca666f198e561bd259a938467555a5d469be85e4301d4674",
"image": "sha256:dd130a694dbcc83eca666f198e561bd259a938467555a5d469be85e4301d4674"
},
{
"created": "2016-03-21T00:47:03Z",
"dockerImageReference": "172.30.195.211:5000/springboot-sti/helloworld-mvn@sha256:009c9c2bd0817783060f15943db5f36f09d281f6b7b94768f776f4295b88b0c3",
"image": "sha256:009c9c2bd0817783060f15943db5f36f09d281f6b7b94768f776f4295b88b0c3"
},
{
"created": "2016-03-21T00:38:12Z",
"dockerImageReference": "172.30.195.211:5000/springboot-sti/helloworld-mvn@sha256:8179fadb75080457d0e0ac94592b5dea4929e5b5cdca58de3c6a5184861e733b",
"image": "sha256:8179fadb75080457d0e0ac94592b5dea4929e5b5cdca58de3c6a5184861e733b"
},
{
"created": "2016-03-21T00:19:17Z",
"dockerImageReference": "172.30.195.211:5000/springboot-sti/helloworld-mvn@sha256:3bc20fd393e67b883f1f2781ee947fbd37c64fa71e51bb9c1abda0a801245b4f",
"image": "sha256:3bc20fd393e67b883f1f2781ee947fbd37c64fa71e51bb9c1abda0a801245b4f"
}
]
}
]
}
}
from jenkins-plugin.
So, let's see if I parsed this out correctly. You are saying the new form has:
{
"name": "promote",
"from": {
"kind": "ImageStreamTag",
"name": "helloworld-mvn:latest"
}
And the old form had:
{
"name": "promote",
"from": {
"kind": "ImageStreamImage",
"namespace": "springboot-sti",
"name": "helloworld-mvn@a8978c67c9b22f4f0fa7b32a0486aac91e21485d2df618be621ac56c07d711e1"
}
}
I'll circle back and see if I see the same thing for that precise detail. Though since both forms specify ImageStreamImage, I'm certainly curious as to what might be going on.
from jenkins-plugin.
Hmm ...I am not seeing that difference in behavior. I'm seeing ImageStreamImage
references in both the spec and status sections after the tag operation with the latest code unaltered.
@eformat - is there any chance you or someone else has been running oc tag
operations outside the scope of Jenkins? @bparees - any other possible explanations you can think of?
Here is what I'm seeing after tagging "latest" to "prod" with the frontend
example we provide with our jenkins templates:
{
"kind": "ImageStream",
"apiVersion": "v1",
"metadata": {
"name": "origin-nodejs-sample",
"namespace": "test",
"selfLink": "/oapi/v1/namespaces/test/imagestreams/origin-nodejs-sample",
"uid": "16b9f090-efa2-11e5-87e9-68f7287398a7",
"resourceVersion": "525",
"generation": 2,
"creationTimestamp": "2016-03-21T20:18:34Z",
"labels": {
"app": "frontend",
"template": "application-template-stibuild"
},
"annotations": {
"openshift.io/generated-by": "OpenShiftNewApp"
}
},
"spec": {
"tags": [
{
"name": "prod",
"annotations": null,
"from": {
"kind": "ImageStreamImage",
"namespace": "test",
"name": "origin-nodejs-sample@d9af8a5d34ee3aceac8d6b56109111d71caa7610958e71bd3b9ff03b6f0e8336"
},
"generation": 2,
"importPolicy": {}
}
]
},
"status": {
"dockerImageRepository": "172.30.249.216:5000/test/origin-nodejs-sample",
"tags": [
{
"tag": "latest",
"items": [
{
"created": "2016-03-21T20:21:04Z",
"dockerImageReference": "172.30.249.216:5000/test/origin-nodejs-sample@sha256:d9af8a5d34ee3aceac8d6b56109111d71caa7610958e71bd3b9ff03b6f0e8336",
"image": "sha256:d9af8a5d34ee3aceac8d6b56109111d71caa7610958e71bd3b9ff03b6f0e8336",
"generation": 1
}
]
},
{
"tag": "prod",
"items": [
{
"created": "2016-03-21T20:23:55Z",
"dockerImageReference": "172.30.249.216:5000/test/origin-nodejs-sample@sha256:d9af8a5d34ee3aceac8d6b56109111d71caa7610958e71bd3b9ff03b6f0e8336",
"image": "sha256:d9af8a5d34ee3aceac8d6b56109111d71caa7610958e71bd3b9ff03b6f0e8336",
"generation": 2
}
]
}
]
}
}
from jenkins-plugin.
i agree that looks right ...
no, its only jenkins plugin doing the tagging
the setup is a remote jenkins (not running on OSE) - 1.625
On 22 March 2016 at 09:39, Gabe Montero [email protected] wrote:
Hmm ...I am not seeing that difference in behavior. I'm seeing
ImageStreamImage references in both the spec and status sections after
the tag operation with the latest code unaltered.@eformat https://github.com/eformat - is there any chance you or
someone else has been running oc tag operations outside the scope of
Jenkins? @bparees https://github.com/bparees - any other possible
explanations you can think of?Here is what I'm seeing after tagging "latest" to "prod" with the frontend
example we provide with our jenkins templates:{
"kind": "ImageStream",
"apiVersion": "v1",
"metadata": {
"name": "origin-nodejs-sample",
"namespace": "test",
"selfLink": "/oapi/v1/namespaces/test/imagestreams/origin-nodejs-sample",
"uid": "16b9f090-efa2-11e5-87e9-68f7287398a7",
"resourceVersion": "525",
"generation": 2,
"creationTimestamp": "2016-03-21T20:18:34Z",
"labels": {
"app": "frontend",
"template": "application-template-stibuild"
},
"annotations": {
"openshift.io/generated-by": "OpenShiftNewApp"
}
},
"spec": {
"tags": [
{
"name": "prod",
"annotations": null,
"from": {
"kind": "ImageStreamImage",
"namespace": "test",
"name":
"origin-nodejs-sample@d9af8a5d34ee3aceac8d6b56109111d71caa7610958e71bd3b9ff03b6f0e8336
"
},
"generation": 2,
"importPolicy": {}
}
]
},
"status": {
"dockerImageRepository": "172.30.249.216:5000/test/origin-nodejs-sample",
"tags": [
{
"tag": "latest",
"items": [
{
"created": "2016-03-21T20:21:04Z",
"dockerImageReference": "
172.30.249.216:5000/test/origin-nodejs-sample@sha256:d9af8a5d34ee3aceac8d6b56109111d71caa7610958e71bd3b9ff03b6f0e8336
",
"image":
"sha256:d9af8a5d34ee3aceac8d6b56109111d71caa7610958e71bd3b9ff03b6f0e8336",
"generation": 1
}
]
},
{
"tag": "prod",
"items": [
{
"created": "2016-03-21T20:23:55Z",
"dockerImageReference": "
172.30.249.216:5000/test/origin-nodejs-sample@sha256:d9af8a5d34ee3aceac8d6b56109111d71caa7610958e71bd3b9ff03b6f0e8336
",
"image":
"sha256:d9af8a5d34ee3aceac8d6b56109111d71caa7610958e71bd3b9ff03b6f0e8336",
"generation": 2
}
]
}
]
}
}—
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
#28 (comment)
from jenkins-plugin.
grr .. hit enter too soon
jenkins - 1.625.3 running outside ose
ose-master:~$ oc version
oc v3.1.1.6-21-gcd70c35
kubernetes v1.1.0-origin-1107-g4c8e6f4
built jenkins-plugin from here:
https://github.com/openshift/jenkins-plugin/
from jenkins-plugin.
Hey @eformat - I'll give the remote scenario a try, but I don't see yet why that would matter.
In the meantime, if you have the time, please try a couple of things:
- Re-run the error scenario with verbose logging (perhaps we are hitting a permission issue or something)
- try clearing out the "promote" tag (in other words, just have the "latest" tag present) and see if the behavior is any different (I'll be trying the same if I don't reproduce as is with the remote scenario).
from jenkins-plugin.
I still see the new tag as an ImageStreamImage ref when using a remote jenkins and manually specifying the API server URL and token for the project hosting the image stream.
Pending the data I asked @eformat for, I'll try to repro by first creating manually/outside of jenkins a ImageStreamTag of the same name, then running the plugin's tag command.
from jenkins-plugin.
hi, yes, i had verbose logging on - no obvious error
tried from scratch (new project) - same behaviour for me unfortunately
note that the promote tag is first created by the jenkins plugin (nor using cli)
i do note that using the "--alias=true' and "--alias=false" on the "oc tag" cli gives me the same behaviour - could this be related somehow ?
Cheers
Mike
from jenkins-plugin.
Ok, I was also creating the new tag (i.e. promote in your case) first with
the plugin. Thanks for confirming it occurs for you from a new project.
Rules that out.
Even if you did not get an error, if you could post the verbose output, the
response JSON could still be informative.
Haven't toggled behavior with the --alias
option before, but if you are
reproducing the condition via oc tag
with that, I can certainly
go down that path.
Between examining that then and the verbose log / JSON, hopefully I can
zero in on what's up.
thanks
On Tue, Mar 22, 2016 at 3:30 PM, mike hepburn [email protected]
wrote:
hi, yes, i had verbose logging on - no obvious error
tried from scratch (new project) - same behaviour for me unfortunatelynote that the promote tag is first created by the jenkins plugin (nor
using cli)i do note that using the "--alias=true' and "--alias=false" on the "oc
tag" cli gives me the same behaviour - could this be related somehow ?Cheers
Mike—
You are receiving this because you were assigned.
Reply to this email directly or view it on GitHub
#28 (comment)
from jenkins-plugin.
So I analyzed oc tag
when --alias=true
is set, and sure enough, the request body on the put specifies a ImageStreamTag
type explicitly.
So we are back to the fact that as these lines show, the code is explicitly sending a ImageStreamImage.
So I'm back to the verbose output from the run that produces the ImageStreamTag. Even if you did not see a specific error, could you please provide the output. Looking at the full JSON body and source image ID could give me some clues.
thanks,
gabe
from jenkins-plugin.
Hi gabe/ben, sorry got real busy with paying customers ;)
right - i have done some more rigorous testing now - this seems to be only
a problem with 1.0.9 build (latest Available in jenkins)
a local 1.0.10-SNAPSHOT build based on the latest code is OK
dunno how i mixed that up originally - sorry for wasting time ...
Cheers
Mike
On 24 March 2016 at 09:36, Gabe Montero [email protected] wrote:
So I analyzed oc tag when --alias=true is set, and sure enough, the
request body on the put specifies a ImageStreamTag type explicitly.So we are back to the fact that as these lines
https://github.com/openshift/jenkins-plugin/blob/master/src/main/java/com/openshift/jenkins/plugins/pipeline/OpenShiftImageTagger.java#L207-L213
show, the code is explicitly sending a ImageStreamImage.So I'm back to the verbose output from the run that produces the
ImageStreamTag. Even if you did not see a specific error, could you please
provide the output. Looking at the full JSON body and source image ID could
give me some clues.thanks,
gabe—
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
#28 (comment)
from jenkins-plugin.
cool, thanks for the update. closing this.
from jenkins-plugin.
Related Issues (20)
- Patch / Update resources HOT 9
- jenkins template using spec.clusterIP instead of spec.portalIP HOT 2
- Build output sometimes not shown in jenkins console output HOT 2
- Deployments don't work HOT 3
- Environment Variables don't respect Parameterised Builds HOT 6
- Timeout of builds HOT 3
- Unable to do openshiftTag() in pipeline HOT 1
- FR: Support of variables inside Openshift Exec HOT 9
- BUG: "Test connection" always returns "Connections successful" HOT 11
- BUG: OpenshiftExec ignores timeout HOT 12
- Confusing print statement if openshiftVerifyDeployment fails HOT 1
- okhttp binary changes break plugin when others installed HOT 11
- Externalize the CERT_FILE = "/run/secrets/kubernetes.io/serviceaccount/ca.crt"; HOT 7
- Issue with Jenkin's Verify Build OpenShift plug-in functionality HOT 9
- Declarative pipeline support? HOT 4
- openshift-client-plugin really still a "tech preview" ? HOT 3
- Jenkins throws an error when using the openhiftBuild with the buildConfig parameter HOT 3
- Resulting GDSL is Broken HOT 2
- openshiftBuild should support binary build type. HOT 10
- Add deprecation warning and link to new plugin as first thing in repo
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jenkins-plugin.