File tree Expand file tree Collapse file tree 2 files changed +2
-77
lines changed Expand file tree Collapse file tree 2 files changed +2
-77
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: '
[email protected] ',
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/atmega4809-cnano-getting-started-with-freertos-mplab'
19
- BITBUCKET_URL = 'https://bitbucket.microchip.com/scm/ebe/atmega4809-cnano-getting-started-with-freertos-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
- }
1
+ @Library('mpae_shared_pipeline') _
2
+ invokePipeline()
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments