This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
IPTABLES="/usr/sbin/iptables -w 10" | |
${IPTABLES} -t nat -N TPROXYHTTP | |
${IPTABLES} -t nat -A TPROXYHTTP -o lo -j RETURN | |
${IPTABLES} -t nat -A TPROXYHTTP -d 127.0.0.0/8 -j RETURN | |
${IPTABLES} -t nat -A TPROXYHTTP -d 192.168.0.0/16 -j RETURN | |
${IPTABLES} -t nat -A TPROXYHTTP -d 10.0.0.0/8 -j RETURN | |
${IPTABLES} -t nat -A TPROXYHTTP -d 172.16.0.0/12 -j RETURN |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sgdisk --new=2:0:+768M $DEV | |
sgdisk --new=3:0:+2M $DEV | |
sgdisk --new=4:0:+128M $DEV | |
sgdisk --new=6:0:0 $DEV | |
sgdisk --typecode=2:8301 $DEV | |
sgdisk --typecode=3:ef02 $DEV | |
sgdisk --typecode=4:ef00 $DEV | |
sgdisk --typecode=6:8301 $DEV | |
sgdisk --change-name=2:/boot $DEV | |
sgdisk --change-name=3:GRUB $DEV |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
eziocloud.migrateDevice() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
eziocloud.processServerResponse() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
eziocloud.changeDevice(account, deviceId) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
##### Pipeline ##### | |
node('kubernetes') { | |
deleteDir() | |
sh 'ls -ltr' | |
withPod(image: 'alpine:3.4') { | |
sh 'ls -ltr' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
node('kubernetes') { | |
withPod(image: 'alpine:3.4') { | |
sh "ls -ltr" | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
NewerOlder