pullRequest.comment("Finished the Regression test. Result table is at https://dgl-asv-data.s3-us-west-2.amazonaws.com/${env.GIT_COMMIT}_${instance_type}/results/result.csv. Jenkins job link is ${RUN_DISPLAY_URL}. ")
pullRequest.comment('To trigger regression tests: \n - `@dgl-bot run [instance-type] [which tests] [compare-with-branch]`; \n For example: `@dgl-bot run g4dn.4xlarge all dmlc/master` or `@dgl-bot run c5.9xlarge kernel,api dmlc/master`')
}
}
echo('Not the first build')
}
}
}
stage('CI'){
when{not{triggeredBy'IssueCommentCause'}}
stages{
stage('Lint Check'){
agent{
docker{
label'linux-c52x-node'
image'dgllib/dgl-ci-lint'
alwaysPulltrue
alwaysPulltrue
}
}
}
}
steps{
steps{
init_git()
init_git()
sh"bash tests/scripts/task_lint.sh"
sh'bash tests/scripts/task_lint.sh'
}
}
post{
post{
always{
always{
...
@@ -116,18 +186,18 @@ pipeline {
...
@@ -116,18 +186,18 @@ pipeline {
}
}
}
}
}
}
stage("Build"){
stage('Build'){
parallel{
parallel{
stage("CPU Build"){
stage('CPU Build'){
agent{
agent{
docker{
docker{
label"linux-c52x-node"
label'linux-c52x-node'
image"dgllib/dgl-ci-cpu:conda"
image'dgllib/dgl-ci-cpu:conda'
alwaysPulltrue
alwaysPulltrue
}
}
}
}
steps{
steps{
build_dgl_linux("cpu")
build_dgl_linux('cpu')
}
}
post{
post{
always{
always{
...
@@ -135,18 +205,18 @@ pipeline {
...
@@ -135,18 +205,18 @@ pipeline {
}
}
}
}
}
}
stage("GPU Build"){
stage('GPU Build'){
agent{
agent{
docker{
docker{
label"linux-c52x-node"
label'linux-c52x-node'
image"dgllib/dgl-ci-gpu:conda"
image'dgllib/dgl-ci-gpu:conda'
args"-u root"
args'-u root'
alwaysPulltrue
alwaysPulltrue
}
}
}
}
steps{
steps{
// sh "nvidia-smi"
// sh "nvidia-smi"
build_dgl_linux("gpu")
build_dgl_linux('gpu')
}
}
post{
post{
always{
always{
...
@@ -154,12 +224,12 @@ pipeline {
...
@@ -154,12 +224,12 @@ pipeline {
}
}
}
}
}
}
stage("CPU Build (Win64)"){
stage('CPU Build (Win64)'){
// Windows build machines are manually added to Jenkins master with
// Windows build machines are manually added to Jenkins master with
// "windows" label as permanent agents.
// "windows" label as permanent agents.
agent{label"windows"}
agent{label'windows'}
steps{
steps{
build_dgl_win64("cpu")
build_dgl_win64('cpu')
}
}
post{
post{
always{
always{
...
@@ -170,13 +240,13 @@ pipeline {
...
@@ -170,13 +240,13 @@ pipeline {
// Currently we don't have Windows GPU build machines
// Currently we don't have Windows GPU build machines