Skip to content

Commit 2d914aa

Browse files
Kamala Sowmya KolluruKamala Sowmya Kolluru
authored andcommitted
MCU8QA-8050 : Pipeline maintenance: Updating the Jenkinsfilek8s to support shared library
1 parent ba7c4c5 commit 2d914aa

File tree

2 files changed

+2
-77
lines changed

2 files changed

+2
-77
lines changed

.citd/Jenkinsfilek8s

Lines changed: 2 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -1,59 +1,2 @@
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()

.citd/cloudprovider.yml

Lines changed: 0 additions & 18 deletions
This file was deleted.

0 commit comments

Comments
 (0)