vaibhavjain4 / jenkins-demo-app Goto Github PK
View Code? Open in Web Editor NEWExternal Jenkins (CI) Integration with OpenShift (CD) Setup Guide
External Jenkins (CI) Integration with OpenShift (CD) Setup Guide
Hello, i'm trying to repeat your test deploy creating the pipeline and applying to OCP4, but i got this error:
Started by user admin
Running in Durability level: MAX_SURVIVABILITY
[Pipeline] Start of Pipeline
[Pipeline] node
Running on Jenkins in /var/lib/jenkins/workspace/OpenShift Test Pipeline
[Pipeline] {
[Pipeline] stage
[Pipeline] { (Declarative: Tool Install)
[Pipeline] tool
[Pipeline] envVarsForTool
[Pipeline] }
[Pipeline] // stage
[Pipeline] withEnv
[Pipeline] {
[Pipeline] stage
[Pipeline] { (Create New Project)
[Pipeline] tool
[Pipeline] envVarsForTool
[Pipeline] withEnv
[Pipeline] {
[Pipeline] script
[Pipeline] {
[Pipeline] echo
[Pipeline] _OcContextInit
[Pipeline] _OcAction
[Pipeline] }
[Pipeline] // script
[Pipeline] }
[Pipeline] // withEnv
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Deploy App)
[Pipeline] tool
[Pipeline] envVarsForTool
[Pipeline] withEnv
[Pipeline] {
[Pipeline] script
[Pipeline] {
[Pipeline] _OcContextInit
[Pipeline] _OcContextInit
[Pipeline] echo
Hello from project caleb-test3 in cluster https://api.ocpprod.gp.inet:6443
[Pipeline] _OcAction
[Pipeline] }
[Pipeline] // script
[Pipeline] }
[Pipeline] // withEnv
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
[Pipeline] // withEnv
[Pipeline] }
[Pipeline] // node
[Pipeline] End of Pipeline
ERROR: new-app returned an error;
{err=error: unable to load template file "https://github.com/redhat-developer/s2i-dotnetcore-ex": Get https://github.com/redhat-developer/s2i-dotnetcore-ex: dial tcp 140.82.113.3:443: i/o timeout
error: git ls-remote failed with: execution of git ls-remote https://github.com/redhat-developer/s2i-dotnetcore-ex timed out after 30s; local file access failed with: stat https://github.com/redhat-developer/s2i-dotnetcore-ex: no such file or directory
error: unable to locate any images in image streams, templates loaded in accessible projects, template files, local docker images with name "https://github.com/redhat-developer/s2i-dotnetcore-ex"
Argument 'https://github.com/redhat-developer/s2i-dotnetcore-ex' was classified as an image, image~source, or loaded template reference.
The 'oc new-app' command will match arguments to the following types:
--allow-missing-images can be used to point to an image that does not exist yet.
See 'oc new-app -h' for examples.
, verb=new-app, cmd=oc --server=https://api.ocpprod.gp.inet:6443 --insecure-skip-tls-verify --namespace=caleb-test3 --token=XXXXX new-app https://github.com/redhat-developer/s2i-dotnetcore-ex -o=json , out=, status=1}
Finished: FAILURE
I guess the failure is for the proxy that my cluster is using, because if i try to repeat the command shown in the error above, the app deploy with no issue. (since bastion)
[root@lnxsrpvli0136 ~]# oc --server=https://api.ocpprod.gp.inet:6443 --insecure-skip-tls-verify --namespace=caleb-test3 --token=XXXX new-app https://github.com/openshift/ruby-hello-world
warning: Cannot check if git requires authentication.
--> Found container image 712cc38 (11 days old) from Docker Hub for "centos/ruby-25-centos7"
Ruby 2.5
--------
Ruby 2.5 available as container is a base platform for building and running various Ruby 2.5 applications and frameworks. Ruby is the interpreted scripting language for quick and easy object-oriented programming. It has many features to process text files and to do system management tasks (as in Perl). It is simple, straight-forward, and extensible.
Tags: builder, ruby, ruby25, rh-ruby25
* An image stream tag will be created as "ruby-25-centos7:latest" that will track the source image
* A Docker build using source code from https://github.com/openshift/ruby-hello-world will be created
* The resulting image will be pushed to image stream tag "ruby-hello-world:latest"
* Every time "ruby-25-centos7:latest" changes a new build will be triggered
* WARNING: this source repository may require credentials.
Create a secret with your git credentials and use 'oc set build-secret' to assign it to the build config.
--> Creating resources ...
imagestream.image.openshift.io "ruby-25-centos7" created
imagestream.image.openshift.io "ruby-hello-world" created
buildconfig.build.openshift.io "ruby-hello-world" created
deployment.apps "ruby-hello-world" created
service "ruby-hello-world" created
--> Success
Build scheduled, use 'oc logs -f bc/ruby-hello-world' to track its progress.
Application is not exposed. You can expose services to the outside world by executing one or more of the commands below:
'oc expose svc/ruby-hello-world'
Run 'oc status' to view your app.
I guess the outtime error is for the proxy of my cluster, i guess is trying to download the template image from internet but isn't setted up or something like this.
Thanks in advance
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.