File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11def bmarkFile = ' run_benchmarks.jl'
2+ def prNumber = BRANCH_NAME . tokenize(" PR-" )[0 ]
23pipeline {
34 agent any
45 environment {
@@ -56,8 +57,8 @@ pipeline {
5657
5758 silentResponse : false ,
5859
59- regexpFilterText : ' $comment' ,
60- regexpFilterExpression : ' @JSOBot runbenchmarks'
60+ regexpFilterText : ' $comment $pullrequest ' ,
61+ regexpFilterExpression : ' @JSOBot runbenchmarks( .* \\ .jl)? ' + prNumber
6162 )
6263 }
6364 stages {
Original file line number Diff line number Diff line change 11using Pkg
22bmark_dir = @__DIR__
3- println (@__DIR__ )
4- Pkg. activate (bmark_dir)
5- Pkg. instantiate ()
63repo_name = string (split (ARGS [1 ], " ." )[1 ])
74bmarkname = lowercase (repo_name)
85
Original file line number Diff line number Diff line change 1- using Pkg
2- Pkg. activate (" ./benchmark/" )
3- Pkg. instantiate ()
4-
51using ArgParse
62using Git
73using GitHub
Original file line number Diff line number Diff line change 11#! /bin/bash
22
3- julia benchmark/send_comment_to_pr.jl -o $org -r $repo -p $pullrequest -c ' **Starting benchmarks!**'
3+ julia --project=benchmark benchmark/send_comment_to_pr.jl -o $org -r $repo -p $pullrequest -c ' **Starting benchmarks!**'
44
55LOCAL_BRANCH_NAME=" temp_bmark"
66git checkout $LOCAL_BRANCH_NAME -- || true
77
8- julia benchmark/$1 $repo
8+ julia --project=benchmark benchmark/$1 $repo
99
1010if [ " $? " -eq " 0" ] ; then
11- julia benchmark/send_comment_to_pr.jl -o $org -r $repo -p $pullrequest -c " Benchmark results" -g " gist.json"
11+ julia --project=benchmark benchmark/send_comment_to_pr.jl -o $org -r $repo -p $pullrequest -c " Benchmark results" -g " gist.json"
1212else
1313 ERROR_LOGS=" /home/jenkins/benchmarks/$org /$repo /${pullrequest} _${BUILD_NUMBER} _bmark_error.log"
14- julia benchmark/send_comment_to_pr.jl -o $org -r $repo -p $pullrequest -c " **An error occured while running $1 **" -g $ERROR_LOGS
14+ julia --project=benchmark benchmark/send_comment_to_pr.jl -o $org -r $repo -p $pullrequest -c " **An error occured while running $1 **" -g $ERROR_LOGS
1515fi
You can’t perform that action at this time.
0 commit comments