File tree Expand file tree Collapse file tree 3 files changed +64
-123
lines changed Expand file tree Collapse file tree 3 files changed +64
-123
lines changed Original file line number Diff line number Diff line change 1+ // Jenkinsfile v2.0.0
2+ pipeline {
3+ agent {
4+ kubernetes {
5+
6+ defaultContainer 'xc8-mplabx'
7+ yamlFile '.citd/cloudprovider.yml'
8+ }
9+ }
10+ parameters {
11+ string( name: 'NOTIFICATION_EMAIL',
12+ defaultValue: 'PICAVR_Examples_GateKeepers@microchip.com',
13+ description: "Email to send build failure and fixed notifications.")
14+ }
15+
16+ environment {
17+ GITHUB_OWNER = 'microchip-pic-avr-examples'
18+ GITHUB_URL ='https://github.com/microchip-pic-avr-examples/attiny1617-quadrature-decoding-mplab'
19+ BITBUCKET_URL = 'https://bitbucket.microchip.com/scm/ebe/attiny1617-quadrature-decoding-mplab.git'
20+ SEMVER_REGEX = '^(0|[1-9]\\d*)+\\.(0|[1-9]\\d*)+\\.(0|[1-9]\\d*)+$'
21+ ARTIFACTORY_SERVER = 'https://artifacts.microchip.com:7999/artifactory'
22+ }
23+ options {
24+ timestamps()
25+ timeout(time: 30, unit: 'MINUTES')
26+ }
27+
28+ stages {
29+ stage('setup') {
30+ steps {
31+ script {
32+ execute("git clone https://bitbucket.microchip.com/scm/citd/mpae-buildpipeline-groovy-scripts.git")
33+ def buildPipeline = load ('mpae-buildpipeline-groovy-scripts/xc8mplabx-buildpipeline.groovy')
34+ buildPipeline.runStages()
35+ }
36+ }
37+ }
38+ }
39+
40+ post {
41+ failure {
42+ script {
43+ sendPipelineFailureEmail()
44+ }
45+ }
46+ }
47+ }
48+ def execute(String cmd) {
49+ if(isUnix()) {
50+ sh cmd
51+ } else {
52+ bat cmd
53+ }
54+ }
55+ def sendPipelineFailureEmail() {
56+ mail to: "${env.EMAILLIST},${params.NOTIFICATION_EMAIL}",
57+ subject: "Failed Pipeline: ${currentBuild.fullDisplayName}",
58+ body: "Pipeline failure. ${env.BUILD_URL}"
59+ }
Original file line number Diff line number Diff line change @@ -5,14 +5,14 @@ metadata:
55spec :
66 containers :
77 - name : xc8-mplabx
8- image : artifacts.microchip.com:7999/microchip/citd/bundles/xc8-mplabx:2.10-5.35
8+ image : artifacts.microchip.com:7999/microchip/citd/bundles/xc8-mplabx:latest
99 imagePullPolicy : Always
1010 command : ['cat']
1111 tty : true
1212 resources :
1313 requests :
14- cpu : 1
15- memory : 4Gi
14+ cpu : 0.25
15+ memory : 500Mi
1616 limits :
17- cpu : 2
18- memory : 8Gi
17+ cpu : 0.5
18+ memory : 750Mi
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments