-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathJenkinsfile
34 lines (33 loc) · 1.02 KB
/
Jenkinsfile
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
pipeline {
agent { label 'master' }
stages {
stage('Build Hardware') {
steps {
sh '''#!/bin/bash
/opt/Xilinx/Vivado/2015.4/settings64.sh
/opt/Xilinx/SDK/2015.4/settings64.sh
/opt/Xilinx/Vivado/2015.4/bin/vivado -mode batch -source $WORKSPACE/vivado/build.tcl -tclargs testbuild
'''
}
}
stage('Generate Bitsream') {
steps {
sh '''#!/bin/bash
/opt/Xilinx/Vivado/2015.4/bin/vivado -mode batch -source $WORKSPACE/vivado/generate_bitstream.tcl -tclargs testbuild
'''
}
}
stage('Export Hardware') {
steps {
sh '''#!/bin/bash
/opt/Xilinx/Vivado/2015.4/bin/vivado -mode batch -source $WORKSPACE/vivado/export_hardware.tcl -tclargs testbuild
'''
}
}
}
post {
always {
cleanWs()
}
}
}