Giter VIP home page Giter VIP logo

advdev_homework_grading's People

Contributors

hashnao avatar wkulhanek avatar

Watchers

 avatar  avatar  avatar

advdev_homework_grading's Issues

Starting pipeline build with `oc start-build`Jenkins from a pipeline build always fails

In the original Jenkinsfile, oc start-build is used <and it triggers a pipeline build for starting Jenkins pipeline builds to build and deploy mlbparks, nationalparks and parksmap applications. Running the Jenkins pipeline build always fails as follows after oc start-build is called. The full log is at [1].

[First Pipeline run for ParksMap Service] + oc start-build --wait=true parksmap-pipeline -n 8d38-jenkins
[First Pipeline run for ParksMap Service] build "parksmap-pipeline-15" started
[First Pipeline run for Nationalparks Service] wrapper script does not seem to be touching the log file in /home/jenkins/workspace/Pipeline@tmp/durable-6e03723b
[First Pipeline run for Nationalparks Service] (JENKINS-48300: if on a laggy filesystem, consider -Dorg.jenkinsci.plugins.durabletask.BourneShellScript.HEARTBEAT_CHECK_INTERVAL=300)
[Pipeline] [First Pipeline run for Nationalparks Service] }
[Pipeline] [First Pipeline run for Nationalparks Service] // stage
[Pipeline] [First Pipeline run for Nationalparks Service] }
[First Pipeline run for MLBParks Service] Sending interrupt signal to process
[First Pipeline run for MLBParks Service] Killing processes
[First Pipeline run for Nationalparks Service] Failed in branch First Pipeline run for Nationalparks Service
[First Pipeline run for MLBParks Service] sh: line 1:   464 Terminated              JENKINS_SERVER_COOKIE=$jsc '/home/jenkins/workspace/Pipeline@tmp/durable-0b412d36/script.sh' > '/home/jenkins/workspace/Pipeline@tmp/durable-0b412d36/jenkins-log.txt' 2>&1

First, we should avoid triggering Jenkins pipeline builds within other Jenkins pipeline builds as discussed at openshift/origin#20990 (comment).
It's necessary to validate the Jenkins pipeline for homework, though. I tried adding

[1]

Started by user nhashimo-redhat.com
Obtained Jenkinsfile from git https://github.com/hashnao/advdev_homework_grading
Running in Durability level: MAX_SURVIVABILITY
[Pipeline] podTemplate
[Pipeline] {
[Pipeline] node
Still waiting to schedule task
homework-4z7hm-v61q9 is offline
Agent homework-4z7hm-v61q9 is provisioned from template Kubernetes Pod Template
Agent specification [Kubernetes Pod Template] (homework): 
* [jnlp] docker-registry.default.svc:5000/8d38-jenkins/jenkins-slave-appdev(resourceRequestCpu: 500m, resourceRequestMemory: 1Gi, resourceLimitCpu: 1, resourceLimitMemory: 2Gi)

Running on homework-4z7hm-v61q9 in /home/jenkins/workspace/Pipeline
[Pipeline] {
[Pipeline] stage
[Pipeline] { (Declarative: Checkout SCM)
[Pipeline] checkout
Cloning the remote Git repository
Cloning repository https://github.com/hashnao/advdev_homework_grading
 > git init /home/jenkins/workspace/Pipeline # timeout=10
Fetching upstream changes from https://github.com/hashnao/advdev_homework_grading
 > git --version # timeout=10
 > git fetch --tags --progress https://github.com/hashnao/advdev_homework_grading +refs/heads/*:refs/remotes/origin/*
 > git config remote.origin.url https://github.com/hashnao/advdev_homework_grading # timeout=10
 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10
 > git config remote.origin.url https://github.com/hashnao/advdev_homework_grading # timeout=10
Fetching upstream changes from https://github.com/hashnao/advdev_homework_grading
 > git fetch --tags --progress https://github.com/hashnao/advdev_homework_grading +refs/heads/*:refs/remotes/origin/*
 > git rev-parse refs/remotes/origin/oc-start^{commit} # timeout=10
 > git rev-parse refs/remotes/origin/origin/oc-start^{commit} # timeout=10
Checking out Revision a11ec9d4c2e5e2c3db3874ac97fe6f39c3797cbf (refs/remotes/origin/oc-start)
 > git config core.sparsecheckout # timeout=10
 > git checkout -f a11ec9d4c2e5e2c3db3874ac97fe6f39c3797cbf
Commit message: "Update Jenkinsfile"
 > git rev-list --no-walk 80f6b02df9f857bfe84a522570410d433afbc7a8 # timeout=10
[Pipeline] }
[Pipeline] // stage
[Pipeline] withEnv
[Pipeline] {
[Pipeline] container
[Pipeline] {
[Pipeline] withEnv
[Pipeline] {
[Pipeline] stage
[Pipeline] { (Get Student Homework Repo)
[Pipeline] echo
*******************************************************
*** Advanced OpenShift Development Homework Grading ***
*** GUID:         8d38
*** USER:         nhashimo-redhat.com
*** Student Repo: https://github.com/hashnao/advdev_homework_template
*** CLUSTER:      apps.na311.openshift.opentlc.com
*** SETUP:        false
*** DELETE:       false
*******************************************************
[Pipeline] echo
Cloning Infrastructure Project
[Pipeline] git
 > git rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
 > git config remote.origin.url https://github.com/hashnao/advdev_homework_template # timeout=10
Fetching upstream changes from https://github.com/hashnao/advdev_homework_template
 > git --version # timeout=10
 > git fetch --tags --progress https://github.com/hashnao/advdev_homework_template +refs/heads/*:refs/remotes/origin/*
 > git rev-parse refs/remotes/origin/master^{commit} # timeout=10
 > git rev-parse refs/remotes/origin/origin/master^{commit} # timeout=10
Checking out Revision b1044cc45144506f064a1eb7b176e44d7bfa7eba (refs/remotes/origin/master)
 > git config core.sparsecheckout # timeout=10
 > git checkout -f b1044cc45144506f064a1eb7b176e44d7bfa7eba
 > git branch -a -v --no-abbrev # timeout=10
 > git checkout -b master b1044cc45144506f064a1eb7b176e44d7bfa7eba
Commit message: "Added --overrwite for existing labels."
 > git rev-list --no-walk b1044cc45144506f064a1eb7b176e44d7bfa7eba # timeout=10
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Create Projects)
Stage "Create Projects" skipped due to when conditional
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Setup Infrastructure)
Stage "Setup Infrastructure" skipped due to when conditional
[Pipeline] parallel
[Pipeline] [Setup Nexus] { (Branch: Setup Nexus)
[Pipeline] [Setup Sonarqube] { (Branch: Setup Sonarqube)
[Pipeline] [Setup Jenkins] { (Branch: Setup Jenkins)
[Pipeline] [Setup Development Project] { (Branch: Setup Development Project)
[Pipeline] [Setup Production Project] { (Branch: Setup Production Project)
[Pipeline] [Setup Nexus] stage
[Pipeline] [Setup Nexus] { (Setup Nexus)
[Pipeline] [Setup Sonarqube] stage
[Pipeline] [Setup Sonarqube] { (Setup Sonarqube)
[Pipeline] [Setup Jenkins] stage
[Pipeline] [Setup Jenkins] { (Setup Jenkins)
[Pipeline] [Setup Development Project] stage
[Pipeline] [Setup Development Project] { (Setup Development Project)
[Pipeline] [Setup Production Project] stage
[Pipeline] [Setup Production Project] { (Setup Production Project)
Stage "Setup Nexus" skipped due to when conditional
Stage "Setup Sonarqube" skipped due to when conditional
Stage "Setup Jenkins" skipped due to when conditional
Stage "Setup Development Project" skipped due to when conditional
Stage "Setup Production Project" skipped due to when conditional
[Pipeline] [Setup Nexus] }
[Pipeline] [Setup Sonarqube] }
[Pipeline] [Setup Jenkins] }
[Pipeline] [Setup Development Project] }
[Pipeline] [Setup Production Project] }
[Pipeline] [Setup Nexus] // stage
[Pipeline] [Setup Sonarqube] // stage
[Pipeline] [Setup Jenkins] // stage
[Pipeline] [Setup Development Project] // stage
[Pipeline] [Setup Production Project] // stage
[Pipeline] [Setup Nexus] }
[Pipeline] [Setup Sonarqube] }
[Pipeline] [Setup Jenkins] }
[Pipeline] [Setup Development Project] }
[Pipeline] [Setup Production Project] }
[Pipeline] // parallel
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Reset Infrastructure)
[Pipeline] sh
[Pipeline] Running shell script
+ ./Infrastructure/bin/reset_prod.sh 8d38
--- Resetting Parks Production Environment in project 8d38-parks-prod to Green Services. ---
Now using project "8d38-parks-prod" on server "https://172.30.0.1:443".
label "type" not found.
service "mlbparks-blue" not labeled
service "mlbparks-green" not labeled
label "type" not found.
service "nationalparks-blue" not labeled
service "nationalparks-green" not labeled
info: routes "parksmap" was not changed
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (First Pipeline Runs (from Green to Blue))
[Pipeline] parallel
[Pipeline] [First Pipeline run for Nationalparks Service] { (Branch: First Pipeline run for Nationalparks Service)
[Pipeline] [First Pipeline run for MLBParks Service] { (Branch: First Pipeline run for MLBParks Service)
[Pipeline] [First Pipeline run for ParksMap Service] { (Branch: First Pipeline run for ParksMap Service)
[Pipeline] [First Pipeline run for Nationalparks Service] stage
[Pipeline] [First Pipeline run for Nationalparks Service] { (First Pipeline run for Nationalparks Service)
[Pipeline] [First Pipeline run for MLBParks Service] stage
[Pipeline] [First Pipeline run for MLBParks Service] { (First Pipeline run for MLBParks Service)
[Pipeline] [First Pipeline run for ParksMap Service] stage
[Pipeline] [First Pipeline run for ParksMap Service] { (First Pipeline run for ParksMap Service)
[Pipeline] [First Pipeline run for Nationalparks Service] echo
[First Pipeline run for Nationalparks Service] Executing Initial Nationalparks Pipeline - BLUE deployment
[Pipeline] [First Pipeline run for Nationalparks Service] sh
[First Pipeline run for Nationalparks Service] [Pipeline] Running shell script
[First Pipeline run for Nationalparks Service] + oc start-build --wait=true nationalparks-pipeline -n 8d38-jenkins
[First Pipeline run for Nationalparks Service] build "nationalparks-pipeline-17" started
[Pipeline] [First Pipeline run for MLBParks Service] echo
[First Pipeline run for MLBParks Service] Executing Initial MLBParks Pipeline - BLUE deployment
[Pipeline] [First Pipeline run for MLBParks Service] sh
[First Pipeline run for MLBParks Service] [Pipeline] Running shell script
[First Pipeline run for MLBParks Service] + oc start-build --wait=true mlbparks-pipeline -n 8d38-jenkins
[First Pipeline run for MLBParks Service] build "mlbparks-pipeline-19" started
[Pipeline] [First Pipeline run for ParksMap Service] echo
[First Pipeline run for ParksMap Service] Executing Initial ParksMap Pipeline - BLUE deployment
[Pipeline] [First Pipeline run for ParksMap Service] sh
[First Pipeline run for ParksMap Service] [Pipeline] Running shell script
[First Pipeline run for ParksMap Service] + oc start-build --wait=true parksmap-pipeline -n 8d38-jenkins
[First Pipeline run for ParksMap Service] build "parksmap-pipeline-15" started
[First Pipeline run for Nationalparks Service] wrapper script does not seem to be touching the log file in /home/jenkins/workspace/Pipeline@tmp/durable-6e03723b
[First Pipeline run for Nationalparks Service] (JENKINS-48300: if on a laggy filesystem, consider -Dorg.jenkinsci.plugins.durabletask.BourneShellScript.HEARTBEAT_CHECK_INTERVAL=300)
[Pipeline] [First Pipeline run for Nationalparks Service] }
[Pipeline] [First Pipeline run for Nationalparks Service] // stage
[Pipeline] [First Pipeline run for Nationalparks Service] }
[First Pipeline run for MLBParks Service] Sending interrupt signal to process
[First Pipeline run for MLBParks Service] Killing processes
[First Pipeline run for Nationalparks Service] Failed in branch First Pipeline run for Nationalparks Service
[First Pipeline run for MLBParks Service] sh: line 1:   464 Terminated              JENKINS_SERVER_COOKIE=$jsc '/home/jenkins/workspace/Pipeline@tmp/durable-0b412d36/script.sh' > '/home/jenkins/workspace/Pipeline@tmp/durable-0b412d36/jenkins-log.txt' 2>&1
[First Pipeline run for MLBParks Service] kill finished with exit code 0
[First Pipeline run for ParksMap Service] sh: line 1:   499 Terminated              JENKINS_SERVER_COOKIE=$jsc '/home/jenkins/workspace/Pipeline@tmp/durable-dc69a903/script.sh' > '/home/jenkins/workspace/Pipeline@tmp/durable-dc69a903/jenkins-log.txt' 2>&1
[First Pipeline run for ParksMap Service] Sending interrupt signal to process
[First Pipeline run for ParksMap Service] Killing processes
[First Pipeline run for ParksMap Service] kill finished with exit code 1
[Pipeline] [First Pipeline run for MLBParks Service] }
[Pipeline] [First Pipeline run for MLBParks Service] // stage
[Pipeline] [First Pipeline run for MLBParks Service] }
[First Pipeline run for MLBParks Service] Failed in branch First Pipeline run for MLBParks Service
[Pipeline] [First Pipeline run for ParksMap Service] }
[Pipeline] [First Pipeline run for ParksMap Service] // stage
[Pipeline] [First Pipeline run for ParksMap Service] }
[First Pipeline run for ParksMap Service] Failed in branch First Pipeline run for ParksMap Service
[Pipeline] // parallel
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Test Parksmap in Dev)
Stage "Test Parksmap in Dev" skipped due to earlier failure(s)
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Test Blue Services in Prod)
Stage "Test Blue Services in Prod" skipped due to earlier failure(s)
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Second Pipeline Runs (from Blue to Green))
Stage "Second Pipeline Runs (from Blue to Green)" skipped due to earlier failure(s)
[Pipeline] parallel
[Pipeline] [Second Pipeline run for Nationalparks Service] { (Branch: Second Pipeline run for Nationalparks Service)
[Pipeline] [Second Pipeline run for National Parks Service] { (Branch: Second Pipeline run for National Parks Service)
[Pipeline] [Second Pipeline run for ParksMap Service] { (Branch: Second Pipeline run for ParksMap Service)
[Pipeline] [Second Pipeline run for Nationalparks Service] stage
[Pipeline] [Second Pipeline run for Nationalparks Service] { (Second Pipeline run for Nationalparks Service)
[Pipeline] [Second Pipeline run for National Parks Service] stage
[Pipeline] [Second Pipeline run for National Parks Service] { (Second Pipeline run for National Parks Service)
[Pipeline] [Second Pipeline run for ParksMap Service] stage
[Pipeline] [Second Pipeline run for ParksMap Service] { (Second Pipeline run for ParksMap Service)
Stage "Second Pipeline run for Nationalparks Service" skipped due to earlier failure(s)
Stage "Second Pipeline run for National Parks Service" skipped due to earlier failure(s)
Stage "Second Pipeline run for ParksMap Service" skipped due to earlier failure(s)
[Pipeline] [Second Pipeline run for Nationalparks Service] }
[Pipeline] [Second Pipeline run for National Parks Service] }
[Pipeline] [Second Pipeline run for ParksMap Service] }
[Pipeline] [Second Pipeline run for Nationalparks Service] // stage
[Pipeline] [Second Pipeline run for National Parks Service] // stage
[Pipeline] [Second Pipeline run for ParksMap Service] // stage
[Pipeline] [Second Pipeline run for Nationalparks Service] }
[Second Pipeline run for Nationalparks Service] Failed in branch Second Pipeline run for Nationalparks Service
[Pipeline] [Second Pipeline run for National Parks Service] }
[Second Pipeline run for National Parks Service] Failed in branch Second Pipeline run for National Parks Service
[Pipeline] [Second Pipeline run for ParksMap Service] }
[Second Pipeline run for ParksMap Service] Failed in branch Second Pipeline run for ParksMap Service
[Pipeline] // parallel
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Test Green Parksmap in Prod)
Stage "Test Green Parksmap in Prod" skipped due to earlier failure(s)
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Cleanup)
Stage "Cleanup" skipped due to earlier failure(s)
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
[Pipeline] // withEnv
[Pipeline] }
[Pipeline] // container
[Pipeline] }
[Pipeline] // withEnv
[Pipeline] }
[Pipeline] // node
[Pipeline] }
[Pipeline] // podTemplate
[Pipeline] End of Pipeline
ERROR: script returned exit code -1
Finished: FAILURE

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.