diff --git a/jenkins/innovium/buildimage-invm-202006-rpc/Jenkinsfile b/jenkins/innovium/buildimage-invm-202006-rpc/Jenkinsfile new file mode 100644 index 000000000000..8c3db115efca --- /dev/null +++ b/jenkins/innovium/buildimage-invm-202006-rpc/Jenkinsfile @@ -0,0 +1,59 @@ +pipeline { + agent { node { label 'jenkins-workers-slow' } } + + options { + buildDiscarder(logRotator(artifactDaysToKeepStr: '', artifactNumToKeepStr: '', daysToKeepStr: '', numToKeepStr: '30')) + + } + + triggers { + pollSCM('@midnight') + } + + stages { + stage('Prepare') { + steps { + step([$class: 'WsCleanup']) + checkout([$class: 'GitSCM', + branches: [[name: 'refs/heads/202006']], + extensions: [[$class: 'SubmoduleOption', + disableSubmodules: false, + parentCredentials: false, + recursiveSubmodules: true, + reference: '', + trackingSubmodules: false], + [$class: 'LocalBranch', + localBranch: "**"]], + userRemoteConfigs: [[url: 'http://github.com/Azure/sonic-buildimage']]]) + } + } + + stage('Build') { + steps { + sh '''#!/bin/bash -xe + +git submodule foreach --recursive '[ -f .git ] && echo "gitdir: $(realpath --relative-to=. $(cut -d" " -f2 .git))" > .git' + +make configure PLATFORM=innovium +make SONIC_CONFIG_BUILD_JOBS=1 ENABLE_SYNCD_RPC=y target/sonic-innovium.bin +''' + } + } + + } + post { + + success { + archiveArtifacts(artifacts: 'target/**') + } + fixed { + slackSend(color:'#00FF00', message: "Build job back to normal: ${env.JOB_NAME} ${env.BUILD_NUMBER} (<${env.BUILD_URL}|Open>)") + } + regression { + slackSend(color:'#FF0000', message: "Build job Regression: ${env.JOB_NAME} ${env.BUILD_NUMBER} (<${env.BUILD_URL}|Open>)") + } + cleanup { + cleanWs(disableDeferredWipeout: false, deleteDirs: true, notFailBuild: true) + } + } +} diff --git a/jenkins/innovium/buildimage-invm-202006/Jenkinsfile b/jenkins/innovium/buildimage-invm-202006/Jenkinsfile new file mode 100644 index 000000000000..de7372dbb0ce --- /dev/null +++ b/jenkins/innovium/buildimage-invm-202006/Jenkinsfile @@ -0,0 +1,64 @@ +pipeline { + agent { node { label 'jenkins-workers-slow' } } + + options { + buildDiscarder(logRotator(artifactDaysToKeepStr: '', artifactNumToKeepStr: '', daysToKeepStr: '', numToKeepStr: '30')) + } + + environment { + SONIC_TEAM_WEBHOOK = credentials('public-jenkins-builder') + } + + triggers { + pollSCM('@midnight') + } + + stages { + stage('Prepare') { + steps { + step([$class: 'WsCleanup']) + checkout([$class: 'GitSCM', + branches: [[name: 'refs/heads/202006']], + extensions: [[$class: 'SubmoduleOption', + disableSubmodules: false, + parentCredentials: false, + recursiveSubmodules: true, + reference: '', + trackingSubmodules: false], + [$class: 'LocalBranch', + localBranch: "**"]], + userRemoteConfigs: [[url: 'http://github.com/Azure/sonic-buildimage']]]) + } + } + + stage('Build') { + steps { + sh '''#!/bin/bash -xe + +git submodule foreach --recursive '[ -f .git ] && echo "gitdir: $(realpath --relative-to=. $(cut -d" " -f2 .git))" > .git' + +make configure PLATFORM=innovium +make SONIC_CONFIG_BUILD_JOBS=1 target/sonic-innovium.bin +''' + } + } + + } + post { + + success { + archiveArtifacts(artifacts: 'target/**') + } + fixed { + slackSend(color:'#00FF00', message: "Build job back to normal: ${env.JOB_NAME} ${env.BUILD_NUMBER} (<${env.BUILD_URL}|Open>)") + office365ConnectorSend(webhookUrl: "${env.SONIC_TEAM_WEBHOOK}") + } + regression { + slackSend(color:'#FF0000', message: "Build job Regression: ${env.JOB_NAME} ${env.BUILD_NUMBER} (<${env.BUILD_URL}|Open>)") + office365ConnectorSend(webhookUrl: "${env.SONIC_TEAM_WEBHOOK}") + } + cleanup { + cleanWs(disableDeferredWipeout: false, deleteDirs: true, notFailBuild: true) + } + } +}