diff --git a/.citd/Jenkinsfilek8s b/.citd/Jenkinsfilek8s new file mode 100644 index 0000000..1121f69 --- /dev/null +++ b/.citd/Jenkinsfilek8s @@ -0,0 +1,60 @@ +// Jenkinsfile v2.0.0 + +pipeline { + agent { + kubernetes { + + defaultContainer 'xc8-mplabx' + yamlFile '.citd/cloudprovider.yml' + } + } + parameters { + string( name: 'NOTIFICATION_EMAIL', + defaultValue: 'PICAVR_Examples_GateKeepers@microchip.com', + description: "Email to send build failure and fixed notifications.") + } + + environment { + GITHUB_OWNER = 'microchip-pic-avr-examples' + GITHUB_URL ='https://github.com/microchip-pic-avr-examples/avr16eb32-getting-started-with-tcf-mplab-bare-metal' + BITBUCKET_URL = 'https://bitbucket.microchip.com/scm/ebe/avr16eb32-getting-started-with-tcf-mplab-bare-metal.git' + SEMVER_REGEX = '^(0|[1-9]\\d*)+\\.(0|[1-9]\\d*)+\\.(0|[1-9]\\d*)+$' + ARTIFACTORY_SERVER = 'https://artifacts.microchip.com:7999/artifactory' + } + options { + timestamps() + timeout(time: 30, unit: 'MINUTES') + } + + stages { + stage('setup') { + steps { + script { + execute("git clone https://bitbucket.microchip.com/scm/citd/mpae-buildpipeline-groovy-scripts.git") + def buildPipeline = load ('mpae-buildpipeline-groovy-scripts/xc8mplabx-buildpipeline.groovy') + buildPipeline.runStages() + } + } + } + } + + post { + failure { + script { + sendPipelineFailureEmail() + } + } + } +} +def execute(String cmd) { + if(isUnix()) { + sh cmd + } else { + bat cmd + } +} +def sendPipelineFailureEmail() { + mail to: "${env.EMAILLIST},${params.NOTIFICATION_EMAIL}", + subject: "Failed Pipeline: ${currentBuild.fullDisplayName}", + body: "Pipeline failure. ${env.BUILD_URL}" +} \ No newline at end of file diff --git a/.citd/cloudprovider.yml b/.citd/cloudprovider.yml new file mode 100644 index 0000000..09bb4ca --- /dev/null +++ b/.citd/cloudprovider.yml @@ -0,0 +1,18 @@ +apiVersion: v1 +kind: Pod +metadata: + name: xc8-mplabx +spec: + containers: + - name: xc8-mplabx + image: artifacts.microchip.com:7999/microchip/citd/bundles/xc8-mplabx:latest + imagePullPolicy: Always + command: ['cat'] + tty: true + resources: + requests: + cpu: 0.25 + memory: 500Mi + limits: + cpu: 0.5 + memory: 750Mi \ No newline at end of file diff --git a/NCO-Fixed-Duty-Cycle-Demo/avr16eb32-tcf-nco-fixed-duty-cycle-bare-metal-demo.X/nbproject/configurations.xml b/NCO-Fixed-Duty-Cycle-Demo/avr16eb32-tcf-nco-fixed-duty-cycle-bare-metal-demo.X/nbproject/configurations.xml index f3175e2..f648f2b 100644 --- a/NCO-Fixed-Duty-Cycle-Demo/avr16eb32-tcf-nco-fixed-duty-cycle-bare-metal-demo.X/nbproject/configurations.xml +++ b/NCO-Fixed-Duty-Cycle-Demo/avr16eb32-tcf-nco-fixed-duty-cycle-bare-metal-demo.X/nbproject/configurations.xml @@ -100,52 +100,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -425,52 +379,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -