[FOLIO-2500] doKubeDeploy in Jenkinsfile returns error Created: 05/Mar/20 Updated: 03/Jun/20 Resolved: 05/Mar/20 |
|
| Status: | Closed |
| Project: | FOLIO |
| Components: | None |
| Affects versions: | None |
| Fix versions: | None |
| Type: | Task | Priority: | P2 |
| Reporter: | John Malconian | Assignee: | John Malconian |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original estimate: | Not Specified | ||
| Sprint: | DevOps: sprint 83 |
| Development Team: | FOLIO DevOps |
| Description |
|
The doKubeDeploy stage of the Maven build pipeline in Jenkins is failing with the error: + pip -q install openshift I've temporarily disabled doKubeDeploy in the buildMvn.groovy Jenkins pipeline script here - until we can resolve this. def doKubeDeploy = config.doKubeDeploy ?: false
// set to false until fixed. --malc
if (doKubeDeploy ==~ /(?i)(Y|YES|T|TRUE)/) { doKubeDeploy = false }
|
| Comments |
| Comment by Ian Hardy [ 05/Mar/20 ] |
|
I think this would be the quick fix: https://github.com/folio-org/jenkins-pipeline-libs/commit/7a328ae5cc38fc22854e8d03061c2b42f7510587 Here's some quick testing: $ docker run -it folioci/jenkins-slave-all bash + [[ '' == ssh-* ]] + [[ 1 -gt 0 ]] + [[ bash == ssh-* ]] + exec bash root@24f1434381a4:/home/jenkins# su jenkins jenkins@24f1434381a4:~$ pip -q install wheel jenkins@24f1434381a4:~$ pip -q install openshift==0.10.2 jenkins@24f1434381a4:~$ echo $? 0 I believe I'm installing openshift in the pipeline here because we couldn't update the base image at the time due to an unrelated problem between stripes testing and the latest version of the Chrome browser. The better way to do this would be to install this package into the base image--but we'd have to update chrome again. |
| Comment by John Malconian [ 05/Mar/20 ] |
|
Tested Ian's changes, tested, and merged. |