Skip to content

Instantly share code, notes, and snippets.

View 3r1co's full-sized avatar

Eric Muellenbach 3r1co

View GitHub Profile
Entering stage Checkout Mercurial
Proceeding
[Pipeline] sh
[fabric8-forge] Running shell script
sh -c echo $$ > '/home/jenkins/workspace/workspace/fabric8-forge/.c452175c/pid'; jsc=durable-4bdf21efab122171f5cad054ce832087; JENKINS_SERVER_COOKIE=$jsc '/home/jenkins/workspace/workspace/fabric8-forge/.c452175c/script.sh' > '/home/jenkins/workspace/workspace/fabric8-forge/.c452175c/jenkins-log.txt' 2>&1; echo $? > '/home/jenkins/workspace/workspace/fabric8-forge/.c452175c/jenkins-result.txt'
exit
[?1034hsh-4.2# sh -c echo $$ > '/home/jenkins/workspace/workspace/fabric8-forge/.c45217
5c/pid'; jsc=durable-4bdf21efab122171f5cad054ce832087; JENKINS_SERVER_COOKIE=$js
c '/home/jenkins/workspace/workspace/fabric8-forge/.c452175c/script.sh' > '/home
/jenkins/workspace/workspace/fabric8-forge/.c452175c/jenkins-log.txt' 2>&1; echo
#!/usr/bin/groovy
node ('kubernetes'){
mercurialCheckout {}
mavenCanaryRelease {}
staticCodeAnalysis {}
}
#!/usr/bin/groovy
node ('kubernetes'){
forgeUtils.isMercurialRepositorySetUp()
stage 'Clean Workspace'
deleteDir()
stage 'Checkout Sources'
checkout scm: [$class: 'MercurialSCM', source: forgeUtils.getMercurialRepositoryUrl() , clean: true, credentialsId: forgeUtils.getCredentialId(), installation: 'Mercurial'], poll: false
/home/jenkins/workspace/workspace/TestPipeline #
sh -c echo $$ > '/home/jenkins/workspace/workspace/TestPipeline@tmp/durable-d597d34c/pid';
jsc=durable-7d70d7d764e394b8964d3c7265eb5bc1;
JENKINS_SERVER_COOKIE=$jsc '/home/jenkins/workspace/workspace/TestPipeline@tmp/durable-d597d34c/script.sh' >
'/home/jenkins/workspace/workspace/TestPipeline@tmp/durable-d597d34c/jenkins-log.txt' 2>&1;
echo $? > '/home/jenkins/workspace/workspace/TestPipeline@tmp/durable-d597d34c/jenkins-result.txt'
/bin/sh: can't create /home/jenkins/workspace/workspace/TestPipeline@tmp/durable-d597d34c/pid: nonexistent directory
/bin/sh: can't create /home/jenkins/workspace/workspace/TestPipeline@tmp/durable-d597d34c/jenkins-log.txt: nonexistent directory
/bin/sh: can't create /home/jenkins/workspace/workspace/TestPipeline@tmp/durable-d597d34c/jenkins-result.txt: nonexistent directory
node('kubernetes') {
withPod(image: 'alpine:3.4') {
sh "ls -ltr"
}
}
##### Pipeline #####
node('kubernetes') {
deleteDir()
sh 'ls -ltr'
withPod(image: 'alpine:3.4') {
sh 'ls -ltr'
io.fabric8.kubernetes.client.KubernetesClientException: Failure executing: POST at: https://kubernetes.default.svc/api/v1/namespaces/forge-dev/pods. Message: Pod "nodebuildpod-b70a7c1c-0256-47d2-b117-2c6f625cd67a" is invalid: spec.volumes[2].name: Duplicate value: "volume-2". Received status: Status(apiVersion=v1, code=422, details=StatusDetails(causes=[StatusCause(field=spec.volumes[2].name, message=Duplicate value: "volume-2", reason=FieldValueDuplicate, additionalProperties={})], group=null, kind=Pod, name=nodebuildpod-b70a7c1c-0256-47d2-b117-2c6f625cd67a, retryAfterSeconds=null, additionalProperties={}), kind=Status, message=Pod "nodebuildpod-b70a7c1c-0256-47d2-b117-2c6f625cd67a" is invalid: spec.volumes[2].name: Duplicate value: "volume-2", metadata=ListMeta(resourceVersion=null, selfLink=null, additionalProperties={}), reason=Invalid, status=Failure, additionalProperties={}).
at io.fabric8.kubernetes.client.dsl.base.OperationSupport.requestFailure(OperationSupport.java:315)
at io.fabric8.kubernetes.cl
eziocloud.changeDevice(account, deviceId)
eziocloud.processServerResponse()
@3r1co
3r1co / step3.java
Last active October 19, 2017 11:51
eziocloud.migrateDevice()