Skip to content

Commit 113840e

Browse files
MPAE-16786: updates
1 parent 82d0e2c commit 113840e

File tree

3 files changed

+78
-92
lines changed

3 files changed

+78
-92
lines changed

.citd/Jenkinsfilek8s

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
// Jenkinsfile v2.0.0
2+
3+
pipeline {
4+
agent {
5+
kubernetes {
6+
7+
defaultContainer 'xc8-mplabx'
8+
yamlFile '.citd/cloudprovider.yml'
9+
}
10+
}
11+
parameters {
12+
string( name: 'NOTIFICATION_EMAIL',
13+
defaultValue: 'PICAVR_Examples_GateKeepers@microchip.com',
14+
description: "Email to send build failure and fixed notifications.")
15+
}
16+
17+
environment {
18+
GITHUB_OWNER = 'microchip-pic-avr-examples'
19+
GITHUB_URL ='https://github.com/microchip-pic-avr-examples/avr16eb32-getting-started-with-tcf-mplab-bare-metal'
20+
BITBUCKET_URL = 'https://bitbucket.microchip.com/scm/ebe/avr16eb32-getting-started-with-tcf-mplab-bare-metal.git'
21+
SEMVER_REGEX = '^(0|[1-9]\\d*)+\\.(0|[1-9]\\d*)+\\.(0|[1-9]\\d*)+$'
22+
ARTIFACTORY_SERVER = 'https://artifacts.microchip.com:7999/artifactory'
23+
}
24+
options {
25+
timestamps()
26+
timeout(time: 30, unit: 'MINUTES')
27+
}
28+
29+
stages {
30+
stage('setup') {
31+
steps {
32+
script {
33+
execute("git clone https://bitbucket.microchip.com/scm/citd/mpae-buildpipeline-groovy-scripts.git")
34+
def buildPipeline = load ('mpae-buildpipeline-groovy-scripts/xc8mplabx-buildpipeline.groovy')
35+
buildPipeline.runStages()
36+
}
37+
}
38+
}
39+
}
40+
41+
post {
42+
failure {
43+
script {
44+
sendPipelineFailureEmail()
45+
}
46+
}
47+
}
48+
}
49+
def execute(String cmd) {
50+
if(isUnix()) {
51+
sh cmd
52+
} else {
53+
bat cmd
54+
}
55+
}
56+
def sendPipelineFailureEmail() {
57+
mail to: "${env.EMAILLIST},${params.NOTIFICATION_EMAIL}",
58+
subject: "Failed Pipeline: ${currentBuild.fullDisplayName}",
59+
body: "Pipeline failure. ${env.BUILD_URL}"
60+
}

.citd/cloudprovider.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
apiVersion: v1
2+
kind: Pod
3+
metadata:
4+
name: xc8-mplabx
5+
spec:
6+
containers:
7+
- name: xc8-mplabx
8+
image: artifacts.microchip.com:7999/microchip/citd/bundles/xc8-mplabx:latest
9+
imagePullPolicy: Always
10+
command: ['cat']
11+
tty: true
12+
resources:
13+
requests:
14+
cpu: 0.25
15+
memory: 500Mi
16+
limits:
17+
cpu: 0.5
18+
memory: 750Mi

NCO-Fixed-Duty-Cycle-Demo/avr16eb32-tcf-nco-fixed-duty-cycle-bare-metal-demo.X/nbproject/configurations.xml

Lines changed: 0 additions & 92 deletions
Original file line numberDiff line numberDiff line change
@@ -100,52 +100,6 @@
100100
<property key="warning-level" value="-3"/>
101101
<property key="what-to-do" value="ignore"/>
102102
</HI-TECH-COMP>
103-
<HI-TECH-LINK>
104-
<property key="additional-options-checksum" value=""/>
105-
<property key="additional-options-code-offset" value=""/>
106-
<property key="additional-options-command-line" value=""/>
107-
<property key="additional-options-errata" value=""/>
108-
<property key="additional-options-extend-address" value="false"/>
109-
<property key="additional-options-trace-type" value=""/>
110-
<property key="additional-options-use-response-files" value="false"/>
111-
<property key="backup-reset-condition-flags" value="false"/>
112-
<property key="calibrate-oscillator" value="false"/>
113-
<property key="calibrate-oscillator-value" value="0x3400"/>
114-
<property key="clear-bss" value="true"/>
115-
<property key="code-model-external" value="wordwrite"/>
116-
<property key="code-model-rom" value=""/>
117-
<property key="create-html-files" value="false"/>
118-
<property key="data-model-ram" value=""/>
119-
<property key="data-model-size-of-double" value="24"/>
120-
<property key="data-model-size-of-double-gcc" value="no-short-double"/>
121-
<property key="data-model-size-of-float" value="24"/>
122-
<property key="data-model-size-of-float-gcc" value="no-short-float"/>
123-
<property key="display-class-usage" value="false"/>
124-
<property key="display-hex-usage" value="false"/>
125-
<property key="display-overall-usage" value="true"/>
126-
<property key="display-psect-usage" value="false"/>
127-
<property key="extra-lib-directories" value=""/>
128-
<property key="fill-flash-options-addr" value=""/>
129-
<property key="fill-flash-options-const" value=""/>
130-
<property key="fill-flash-options-how" value="0"/>
131-
<property key="fill-flash-options-inc-const" value="1"/>
132-
<property key="fill-flash-options-increment" value=""/>
133-
<property key="fill-flash-options-seq" value=""/>
134-
<property key="fill-flash-options-what" value="0"/>
135-
<property key="format-hex-file-for-download" value="false"/>
136-
<property key="initialize-data" value="true"/>
137-
<property key="input-libraries" value="libm"/>
138-
<property key="keep-generated-startup.as" value="false"/>
139-
<property key="link-in-c-library" value="true"/>
140-
<property key="link-in-c-library-gcc" value=""/>
141-
<property key="link-in-peripheral-library" value="false"/>
142-
<property key="managed-stack" value="false"/>
143-
<property key="opt-xc8-linker-file" value="false"/>
144-
<property key="opt-xc8-linker-link_startup" value="false"/>
145-
<property key="opt-xc8-linker-serial" value=""/>
146-
<property key="program-the-device-with-default-config-words" value="true"/>
147-
<property key="remove-unused-sections" value="true"/>
148-
</HI-TECH-LINK>
149103
<Tool>
150104
<property key="AutoSelectMemRanges" value="auto"/>
151105
<property key="SecureSegment.SegmentProgramming" value="FullChipProgramming"/>
@@ -425,52 +379,6 @@
425379
<property key="warning-level" value="-3"/>
426380
<property key="what-to-do" value="ignore"/>
427381
</HI-TECH-COMP>
428-
<HI-TECH-LINK>
429-
<property key="additional-options-checksum" value=""/>
430-
<property key="additional-options-code-offset" value=""/>
431-
<property key="additional-options-command-line" value=""/>
432-
<property key="additional-options-errata" value=""/>
433-
<property key="additional-options-extend-address" value="false"/>
434-
<property key="additional-options-trace-type" value=""/>
435-
<property key="additional-options-use-response-files" value="false"/>
436-
<property key="backup-reset-condition-flags" value="false"/>
437-
<property key="calibrate-oscillator" value="false"/>
438-
<property key="calibrate-oscillator-value" value="0x3400"/>
439-
<property key="clear-bss" value="true"/>
440-
<property key="code-model-external" value="wordwrite"/>
441-
<property key="code-model-rom" value=""/>
442-
<property key="create-html-files" value="false"/>
443-
<property key="data-model-ram" value=""/>
444-
<property key="data-model-size-of-double" value="24"/>
445-
<property key="data-model-size-of-double-gcc" value="no-short-double"/>
446-
<property key="data-model-size-of-float" value="24"/>
447-
<property key="data-model-size-of-float-gcc" value="no-short-float"/>
448-
<property key="display-class-usage" value="false"/>
449-
<property key="display-hex-usage" value="false"/>
450-
<property key="display-overall-usage" value="true"/>
451-
<property key="display-psect-usage" value="false"/>
452-
<property key="extra-lib-directories" value=""/>
453-
<property key="fill-flash-options-addr" value=""/>
454-
<property key="fill-flash-options-const" value=""/>
455-
<property key="fill-flash-options-how" value="0"/>
456-
<property key="fill-flash-options-inc-const" value="1"/>
457-
<property key="fill-flash-options-increment" value=""/>
458-
<property key="fill-flash-options-seq" value=""/>
459-
<property key="fill-flash-options-what" value="0"/>
460-
<property key="format-hex-file-for-download" value="false"/>
461-
<property key="initialize-data" value="true"/>
462-
<property key="input-libraries" value="libm"/>
463-
<property key="keep-generated-startup.as" value="false"/>
464-
<property key="link-in-c-library" value="true"/>
465-
<property key="link-in-c-library-gcc" value=""/>
466-
<property key="link-in-peripheral-library" value="false"/>
467-
<property key="managed-stack" value="false"/>
468-
<property key="opt-xc8-linker-file" value="false"/>
469-
<property key="opt-xc8-linker-link_startup" value="false"/>
470-
<property key="opt-xc8-linker-serial" value=""/>
471-
<property key="program-the-device-with-default-config-words" value="true"/>
472-
<property key="remove-unused-sections" value="true"/>
473-
</HI-TECH-LINK>
474382
<XC8-CO>
475383
<property key="coverage-enable" value=""/>
476384
<property key="stack-guidance" value="false"/>

0 commit comments

Comments
 (0)