-
Notifications
You must be signed in to change notification settings - Fork 7
/
Jenkinsfile-template
58 lines (50 loc) · 2.7 KB
/
Jenkinsfile-template
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
//This is a reference Jenkinsfile that includes basic configuration for Jenkins Shared Library
//Copy and modify this Jenkinsfile for desired pipeline
//Pipeline
lock(label: 'adgt_test_harness_boards'){
@Library('sdgtt-lib@adgt-test-harness')
def hdlBranch = 'NA'
def linuxBranch = 'NA'
def bootPartitionBranch = 'release'
def bootfile_source = 'artifactory'
def harness = getGauntlet(hdlBranch, linuxBranch, bootPartitionBranch, bootfile_source)
//update nebula config from netbox or github
harness.set_update_nebula_config(true)
harness.set_env('nebula_config_source','netbox') //use 'github' if getting nebula config from github
harness.set_env('netbox_ip','192.168.10.11') //comment out if using github source
harness.set_env('netbox_port','8000') //comment out if using github source
harness.set_env('netbox_base_url','netbox') //comment out if using github source
harness.set_env('netbox_token', netbox_token) //comment out if using github source
//edit netbox_token to respective value
harness.set_env('netbox_devices_tag','active') //comment out if using github source
//udpate repos
harness.set_env('nebula_repo','https://github.com/sdgtt/nebula.git')
harness.set_env('nebula_branch','dev')
harness.set_env('libiio_branch','v0.23')
//harness.set_env('nebula_config_branch','release') //uncomment if using github source
//update first the agent with the required deps
harness.set_required_agent(["sdg-nuc-01", "sdg-nuc-02", "sdg-machine-02"])
harness.update_agents()
//set other test parameters
harness.set_nebula_debug(true)
harness.set_enable_docker(true)
harness.set_docker_host_mode(true) //set to false for MATLAB jobs
harness.set_send_telemetry(true)
harness.set_enable_resource_queuing(true)
harness.set_log_jira(false)
harness.set_elastic_server('192.168.10.1')
harness.set_required_hardware(["zynq-zc706-adv7511-fmcdaq2"])
harness.set_docker_args(['Vivado'])
harness.set_nebula_local_fs_source_root("artifactory.analog.com")
//Remove stages by commenting out or deleting the line
// Set stages (stages are run sequentially on agents)
harness.add_stage(harness.stage_library("UpdateBOOTFiles"), 'stopWhenFail',
harness.stage_library("RecoverBoard"))
// Test stage
harness.add_stage(harness.stage_library("LinuxTests"),'continueWhenFail')
harness.add_stage(harness.stage_library('PyADITests'),'continueWhenFail')
harness.add_stage(harness.stage_library('LibAD9361Tests'),'continueWhenFail')
harness.add_stage(harness.stage_library('SendResults'),'continueWhenFail')
// Go go
harness.run_stages()
}