Created
December 9, 2015 17:20
-
-
Save fbricon/43c50ce3b07111378860 to your computer and use it in GitHub Desktop.
nodejs-build-config.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"metadata" : { | |
"name" : "nodejs-example", | |
"namespace" : "fred", | |
"selfLink" : "/oapi/v1/namespaces/fred/buildconfigs/nodejs-example", | |
"uid" : "3a0364f0-9c5f-11e5-b172-5254002560a2", | |
"resourceVersion" : "37755", | |
"creationTimestamp" : "2015-12-06T21:20:51Z", | |
"labels" : {"template" : "nodejs-example"}, | |
"annotations" : {"description" : "Defines how to build the application"} | |
}, | |
"spec" : { | |
"triggers" : [ | |
{ | |
"type" : "ImageChange", | |
"imageChange" : { | |
"lastTriggeredImageID" : "registry.access.redhat.com/openshift3/nodejs-010-rhel7:latest", | |
"image" : null, | |
"from" : {"name" : null}, | |
"tag" : null | |
} | |
}, | |
{"type" : "ConfigChange"}, | |
{ | |
"type" : "GitHub", | |
"github" : {"secret" : "oJgTOMuPpMOLHDo8gYkTMeuJX02SSSDwXatXHiVv"} | |
}, | |
{ | |
"type" : "Generic", | |
"generic" : {"secret" : "Ikb4XJciOmkHu3WVL2F1Cfhx0u4JTaOA6RcQkmrQ"} | |
} | |
], | |
"source" : { | |
"type" : "Git", | |
"git" : { | |
"uri" : "https://github.com/fbricon/nodejs-ex.git", | |
"ref" : null | |
}, | |
"contextDir" : null | |
}, | |
"strategy" : { | |
"type" : "Source", | |
"sourceStrategy" : { | |
"from" : { | |
"kind" : "ImageStreamTag", | |
"namespace" : "openshift", | |
"name" : "nodejs:0.10" | |
}, | |
"scripts" : null, | |
"incremental" : null, | |
"env" : null | |
} | |
}, | |
"output" : {"to" : { | |
"kind" : "ImageStreamTag", | |
"name" : "nodejs-example:latest" | |
}}, | |
"resources" : {} | |
}, | |
"status" : {"lastVersion" : 1}, | |
"apiVersion" : "v1", | |
"kind" : "BuildConfig" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Caused by: com.openshift.internal.restclient.http.HttpClientException: {
"kind": "Status",
"apiVersion": "v1",
"metadata": {},
"status": "Failure",
"message": "BuildConfig "nodejs-example" is invalid: triggers[0].imageChange.from.kind: invalid value '', Details: only an ImageStreamTag type of reference is allowed in an ImageChange trigger.",
"reason": "Invalid",
"details": {
"name": "nodejs-example",
"kind": "BuildConfig",
"causes": [
{
"reason": "FieldValueInvalid",
"message": "invalid value '', Details: only an ImageStreamTag type of reference is allowed in an ImageChange trigger.",
"field": "triggers[0].imageChange.from.kind"
}
]
},
"code": 422
}
Caused by: java.io.IOException: Server returned HTTP response code: 422 for URL: https://10.1.2.2:8443/oapi/v1/namespaces/fred/buildconfigs/nodejs-example
at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1840)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1441)
at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:254)
at com.openshift.internal.restclient.http.UrlConnectionHttpClient.request(UrlConnectionHttpClient.java:186)
... 99 more