-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
25 changed files
with
415 additions
and
277 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/usr/bin/groovy | ||
|
||
// load pipeline functions | ||
// Requires pipeline-github-lib plugin to load library from github | ||
@Library('github.com/Mellanox/ci-demo@master') | ||
def matrix = new com.mellanox.cicd.Matrix() | ||
|
||
matrix.main() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
|
||
jjb-blsm-release: | ||
# IMPORTANT: configure the /etc/jenkins_jobs/jenkins_jobs.ini file to point to the relevant blossom | ||
python3 -m jenkins_jobs --conf /etc/jenkins_jobs/jenkins_jobs.ini update $(shell pwd)/pipeline/proj_jjb_release_nbuprod.yaml | ||
|
||
jjb-blsm-release-test: | ||
# IMPORTANT: configure the /etc/jenkins_jobs/jenkins_jobs.ini file to point to the relevant blossom | ||
python3 -m jenkins_jobs --conf /etc/jenkins_jobs/jenkins_jobs.ini test $(shell pwd)/pipeline/proj_jjb_release_nbuprod.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
--- | ||
job: ufm-plugins | ||
|
||
registry_host: harbor.mellanox.com | ||
registry_path: /swx-storage/ci-demo | ||
registry_auth: swx-storage | ||
step_allow_single_selector: true | ||
|
||
credentials: | ||
# harbor login/password | ||
- {credentialsId: '425bb907-c357-4fde-92e0-67854a857b4f', usernameVariable: 'UFM_USER', passwordVariable: 'UFM_PASS'} | ||
|
||
runs_on_agents: | ||
- nodeLabel: 'SWX-CI-DOCKER' | ||
|
||
steps: | ||
- name: Build Plugin | ||
agentSelector: "{nodeLabel: 'SWX-CI-DOCKER'}" | ||
run: | | ||
set -x | ||
if [ -e "/auto/mswg/release/ufm/plugins/${PLUGIN_NAME}/ufm-plugin-${PLUGIN_NAME}_${PLUGIN_VERSION}*" ];then | ||
echo -e "A path and plugin with this version already exist." | ||
echo -e "Path: /auto/mswg/release/ufm/plugins/${PLUGIN_NAME}/ufm-plugin-${PLUGIN_NAME}_${PLUGIN_VERSION}*" | ||
exit 1 | ||
fi | ||
mkdir -p /auto/mswg/release/ufm/plugins/${PLUGIN_NAME} | ||
cd plugins/${PLUGIN_NAME}/build | ||
bash -x ./docker_build.sh ${PLUGIN_VERSION} /auto/mswg/release/ufm/plugins/${PLUGIN_NAME} | ||
BUILD_EXIT_CODE=$? | ||
ls /auto/mswg/release/ufm/plugins/${PLUGIN_NAME} | ||
if [ $BUILD_EXIT_CODE -eq 1 ];then | ||
echo -e "Error: Docker build failed in ./docker_build.sh" | ||
fi | ||
exit ${BUILD_EXIT_CODE} | ||
parallel: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
########## UFM APPLIANCE GEN3 jobs ################## | ||
- project: | ||
name: UFM_PLUGINS_SDK_RELEASE | ||
jjb_owner: 'Mickey Kianosvky' | ||
jobs: | ||
- "UFM_PLUGINS_SDK_RELEASE": | ||
jjb_git: git@github.com:Mellanox/ufm_sdk_3.0.git | ||
jjb_email: 'mkianovsky@nvidia.com' | ||
disabled_var: false | ||
type: github | ||
branch: main | ||
|
||
- job-template: | ||
name: "UFM_PLUGINS_SDK_RELEASE" | ||
project-type: pipeline | ||
disabled: '{obj:disabled_var}' | ||
properties: | ||
- github: | ||
url: "{jjb_git}" | ||
- build-discarder: | ||
days-to-keep: 15 | ||
num-to-keep: 15 | ||
- inject: | ||
keep-system-variables: true | ||
properties-content: | | ||
REPOSITORY={jjb_git} | ||
description: Do NOT edit this job through the Web GUI ! | ||
concurrent: false | ||
parameters: | ||
- string: | ||
name: "sha1" | ||
default: '{branch}' | ||
description: "What branch to take in ufm_sdk_3.0" | ||
- string: | ||
name: "PLUGIN_VERSION" | ||
default: 'latest' | ||
description: "Plugin docker version to create ex: 1.0/1.1/2.0 etc.<br> <p style=color:red>default is latest</p>" | ||
- string: | ||
name: "EMAIL" | ||
default: "{jjb_email}" | ||
description: "email notifications <br>" | ||
- choice: | ||
name: "PLUGIN_NAME" | ||
choices: | ||
- UFM_NDT_Plugin | ||
- advanced_hello_world_plugin | ||
- bright_plugin | ||
- fluentd_telemetry_plugin | ||
- grafana_infiniband_telemetry_plugin | ||
- grpc_streamer_plugin | ||
- hello_world_plugin | ||
- pdr_deterministic_plugin | ||
- snmp_receiver_plugin | ||
- sysinfo_plugin | ||
- ufm_consumer_plugin | ||
- ufm_syslog_streaming_plugin | ||
description: "On which project to run?" | ||
- string: | ||
name: "conf_file" | ||
default: ".ci/matrix_job_release_nbuprod.yaml" | ||
description: "Regex to select job config file. Do not change it" | ||
pipeline-scm: | ||
scm: | ||
- git: | ||
url: "{jjb_git}" | ||
credentials-id: '0b0ea4b8-2b37-427b-bc3f-b68c41a341f7' | ||
branches: ['$sha1'] | ||
shallow-clone: true | ||
refspec: "+refs/pull/*:refs/remotes/origin/pr/*" | ||
browser: githubweb | ||
browser-url: "{jjb_git}" | ||
submodule: | ||
recursive: true | ||
tracking: true | ||
parent-credentials: true | ||
script-path: ".ci/Jenkinsfile_nbuprod" | ||
wrappers: | ||
- timeout: | ||
timeout: 30 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.