Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

modify JenkinsfileHW to work on current Test harness JSL updates #76

Open
wants to merge 1 commit into
base: hw-test-support
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 25 additions & 16 deletions JenkinsfileHW
Original file line number Diff line number Diff line change
@@ -1,28 +1,35 @@
// Pipeline
lock(label: 'adgt_test_harness_boards') {
@Library('sdgtt-lib@master') _
@Library('sdgtt-lib@adgt-test-harness')
def hdlBranch = "NA"
def linuxBranch = "NA"
def bootPartitionBranch = "release"
def firmwareVersion = 'v0.32'
def jenkins_job_trigger = "libad9361-hardware-ci"
def firmwareVersion = 'v0.34'
def bootfile_source = 'artifactory' // options: sftp, artifactory, http, local
def harness = getGauntlet(hdlBranch, linuxBranch, bootPartitionBranch, firmwareVersion, bootfile_source)

//save what triggered the job
harness.set_job_trigger(jenkins_job_trigger)

//Udpate repos
harness.set_env('nebula_repo', 'https://github.com/sdgtt/nebula.git')
harness.set_env('nebula_branch','dev_fixes')
harness.set_env('libiio_branch', 'v0.21')
harness.set_env('telemetry_repo', 'https://github.com/sdgtt/telemetry.git')
harness.set_env('telemetry_branch', 'master')

//Update agent with required deps
//udpate repos
harness.set_env('nebula_branch','dev')

//adjust nebula-config for now based on tested branch to address directory naming
if (bootPartitionBranch.contains("release") || linuxBranch.contains("release")){
harness.set_env('nebula_config_branch','release')
}

//update first the agent with the required deps
harness.set_required_agent(["sdg-nuc-01","sdg-nuc-02"])
harness.update_agents()
//Set other test parameters

//set other test parameters
harness.set_nebula_debug(true)
harness.set_enable_docker(true)
harness.set_docker_host_mode(false)
harness.set_send_telemetry(false)
harness.set_docker_host_mode(true)
harness.set_send_telemetry(true)
harness.set_log_artifacts(true)
harness.set_enable_resource_queuing(true)
harness.set_elastic_server('192.168.10.1')
harness.set_required_hardware(["pluto",
Expand All @@ -33,10 +40,11 @@ lock(label: 'adgt_test_harness_boards') {
"zynq-zc702-adv7511-ad9361-fmcomms2-3",
"zynq-adrv9364-z7020-bob-cmos"])
harness.set_nebula_local_fs_source_root("artifactory.analog.com")
harness.set_docker_args(['Vivado'])

// Set stages (Stages are run sequentially on agents.)
harness.add_stage(harness.stage_library("UpdateBOOTFiles"), 'stopWhenFail',
harness.stage_library("RecoverBoard"))
harness.stage_library("RecoverBoard"))

// Test stage
def stage = { String board ->
Expand All @@ -60,7 +68,8 @@ lock(label: 'adgt_test_harness_boards') {
finally
{
dir('build'){
xunit([CTest(deleteOutputFiles: true, failIfNotNew: true, pattern: 'Testing/**/*.xml', skipNoTestFiles: false, stopProcessingIfError: true)])
sh "mv Testing ${board}"
xunit([CTest(deleteOutputFiles: true, failIfNotNew: true, pattern: "${board}/**/*.xml", skipNoTestFiles: false, stopProcessingIfError: true)])
}
}
}
Expand Down