Skip to content

Commit f404f8c

Browse files
MPAE-16773: updates
1 parent 50548cf commit f404f8c

File tree

3 files changed

+78
-92
lines changed

3 files changed

+78
-92
lines changed

.citd/Jenkinsfilek8s

+60
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-mcc'
20+
BITBUCKET_URL = 'https://bitbucket.microchip.com/scm/ebe/avr16eb32-getting-started-with-tcf-mplab-mcc.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

+18
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-Pulse-Length-Demo/NCO-Pulse-Length-Demo-MCC.X/nbproject/configurations.xml

-92
Original file line numberDiff line numberDiff line change
@@ -147,52 +147,6 @@
147147
<property key="warning-level" value="-3"/>
148148
<property key="what-to-do" value="ignore"/>
149149
</HI-TECH-COMP>
150-
<HI-TECH-LINK>
151-
<property key="additional-options-checksum" value=""/>
152-
<property key="additional-options-code-offset" value=""/>
153-
<property key="additional-options-command-line" value=""/>
154-
<property key="additional-options-errata" value=""/>
155-
<property key="additional-options-extend-address" value="false"/>
156-
<property key="additional-options-trace-type" value=""/>
157-
<property key="additional-options-use-response-files" value="false"/>
158-
<property key="backup-reset-condition-flags" value="false"/>
159-
<property key="calibrate-oscillator" value="false"/>
160-
<property key="calibrate-oscillator-value" value="0x3400"/>
161-
<property key="clear-bss" value="true"/>
162-
<property key="code-model-external" value="wordwrite"/>
163-
<property key="code-model-rom" value=""/>
164-
<property key="create-html-files" value="false"/>
165-
<property key="data-model-ram" value=""/>
166-
<property key="data-model-size-of-double" value="24"/>
167-
<property key="data-model-size-of-double-gcc" value="no-short-double"/>
168-
<property key="data-model-size-of-float" value="24"/>
169-
<property key="data-model-size-of-float-gcc" value="no-short-float"/>
170-
<property key="display-class-usage" value="false"/>
171-
<property key="display-hex-usage" value="false"/>
172-
<property key="display-overall-usage" value="true"/>
173-
<property key="display-psect-usage" value="false"/>
174-
<property key="extra-lib-directories" value=""/>
175-
<property key="fill-flash-options-addr" value=""/>
176-
<property key="fill-flash-options-const" value=""/>
177-
<property key="fill-flash-options-how" value="0"/>
178-
<property key="fill-flash-options-inc-const" value="1"/>
179-
<property key="fill-flash-options-increment" value=""/>
180-
<property key="fill-flash-options-seq" value=""/>
181-
<property key="fill-flash-options-what" value="0"/>
182-
<property key="format-hex-file-for-download" value="false"/>
183-
<property key="initialize-data" value="true"/>
184-
<property key="input-libraries" value="libm"/>
185-
<property key="keep-generated-startup.as" value="false"/>
186-
<property key="link-in-c-library" value="true"/>
187-
<property key="link-in-c-library-gcc" value=""/>
188-
<property key="link-in-peripheral-library" value="false"/>
189-
<property key="managed-stack" value="false"/>
190-
<property key="opt-xc8-linker-file" value="false"/>
191-
<property key="opt-xc8-linker-link_startup" value="false"/>
192-
<property key="opt-xc8-linker-serial" value=""/>
193-
<property key="program-the-device-with-default-config-words" value="true"/>
194-
<property key="remove-unused-sections" value="true"/>
195-
</HI-TECH-LINK>
196150
<Tool>
197151
<property key="AutoSelectMemRanges" value="auto"/>
198152
<property key="communication.activationmode" value="nohv"/>
@@ -387,52 +341,6 @@
387341
<property key="warning-level" value="-3"/>
388342
<property key="what-to-do" value="ignore"/>
389343
</HI-TECH-COMP>
390-
<HI-TECH-LINK>
391-
<property key="additional-options-checksum" value=""/>
392-
<property key="additional-options-code-offset" value=""/>
393-
<property key="additional-options-command-line" value=""/>
394-
<property key="additional-options-errata" value=""/>
395-
<property key="additional-options-extend-address" value="false"/>
396-
<property key="additional-options-trace-type" value=""/>
397-
<property key="additional-options-use-response-files" value="false"/>
398-
<property key="backup-reset-condition-flags" value="false"/>
399-
<property key="calibrate-oscillator" value="false"/>
400-
<property key="calibrate-oscillator-value" value="0x3400"/>
401-
<property key="clear-bss" value="true"/>
402-
<property key="code-model-external" value="wordwrite"/>
403-
<property key="code-model-rom" value=""/>
404-
<property key="create-html-files" value="false"/>
405-
<property key="data-model-ram" value=""/>
406-
<property key="data-model-size-of-double" value="24"/>
407-
<property key="data-model-size-of-double-gcc" value="no-short-double"/>
408-
<property key="data-model-size-of-float" value="24"/>
409-
<property key="data-model-size-of-float-gcc" value="no-short-float"/>
410-
<property key="display-class-usage" value="false"/>
411-
<property key="display-hex-usage" value="false"/>
412-
<property key="display-overall-usage" value="true"/>
413-
<property key="display-psect-usage" value="false"/>
414-
<property key="extra-lib-directories" value=""/>
415-
<property key="fill-flash-options-addr" value=""/>
416-
<property key="fill-flash-options-const" value=""/>
417-
<property key="fill-flash-options-how" value="0"/>
418-
<property key="fill-flash-options-inc-const" value="1"/>
419-
<property key="fill-flash-options-increment" value=""/>
420-
<property key="fill-flash-options-seq" value=""/>
421-
<property key="fill-flash-options-what" value="0"/>
422-
<property key="format-hex-file-for-download" value="false"/>
423-
<property key="initialize-data" value="true"/>
424-
<property key="input-libraries" value="libm"/>
425-
<property key="keep-generated-startup.as" value="false"/>
426-
<property key="link-in-c-library" value="true"/>
427-
<property key="link-in-c-library-gcc" value=""/>
428-
<property key="link-in-peripheral-library" value="false"/>
429-
<property key="managed-stack" value="false"/>
430-
<property key="opt-xc8-linker-file" value="false"/>
431-
<property key="opt-xc8-linker-link_startup" value="false"/>
432-
<property key="opt-xc8-linker-serial" value=""/>
433-
<property key="program-the-device-with-default-config-words" value="true"/>
434-
<property key="remove-unused-sections" value="true"/>
435-
</HI-TECH-LINK>
436344
<XC8-CO>
437345
<property key="coverage-enable" value=""/>
438346
<property key="stack-guidance" value="false"/>

0 commit comments

Comments
 (0)