ks-devops
ks-devops copied to clipboard
[Front-end] avoid using API tojson and tojenkinsfile
/area console
For this issue, the front-end needs to abandon two APIs:
-
v1alpha2/tojenkinsfile
-
v1alpha2/tojson
then you could update the Jenkinsfile with JSON or raw format with the following API. Please feel free to read more details about this API from the swagger.
-
/v1alpha3/devops/{devops}/pipelines/{pipeline}/jenkinsfile
you could get the JSON format of the Jenkinsfile from annotation with key pipeline.devops.kubesphere.io/jenkinsfile
/assign


There are still tojson api call,need to remove.
add jenkinsfile.validate to annotation valid values are success and failure
if failure, show like this:
if there is no jenkinsfile.validate, due as success.