You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ifjenkinsImage.Status.Phase==v1alpha2.ImageBuildSuccessful {
// Get the latest build otherwisebuilds:=jenkinsImage.Status.BuildsimageSHA256:=builds[len(builds)-1].ImagejenkinsMasterImage=fmt.Sprintf("%s/%s@%s", jenkinsImage.Spec.To.Registry, jenkinsImage.Spec.To.Name, imageSHA256)
logger.Info(fmt.Sprintf("JenkinsImage found with latest build mapping to: %s", jenkinsMasterImage))
}
Hi,
i tried to create a Jenkins instance with a reference to Jenking Image but I've got the error:
I'm working on this environmenti:
OpenShift: 4.7.0-0.okd-2021-03-28-152009
Jenkins Operator: 0.7.1
This is my JenkinsImage configuration:
And the Jenkins configuration:
This are the log on jenkins-operator:
The error:
is caused by image name: /origin-jenkins-test@
that does not match expected regex
https://github.com/redhat-developer/jenkins-operator/blob/v0.7.1/controllers/jenkins_controller.go
Image name is defined in:
https://github.com/redhat-developer/jenkins-operator/blob/v0.7.1/pkg/configuration/base/validate.go
And imageSHA256 is defined froin "Image" in:
https://github.com/redhat-developer/jenkins-operator/blob/main/controllers/jenkinsimage_controller.go
Image is undefined because in the status of my jenkins image builder pod there is no "Message" field in state -> terminated
Where did i go wrong?
Thanks,
Giorgio
The text was updated successfully, but these errors were encountered: