blob: 6bee9296c7863dcca8541a6084fb4a9fcfc55027 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#!/bin/sh
# add scripts executed by the pipeline
export PATH=$PATH:$PIPELINE_PATH
containerid=$(cat /etc/hostname)
isindocker=$(docker ps -q -f "id=$containerid")
if [ -n "$isindocker" ]; then
executorLaminarPath=$(docker inspect "$containerid" | jq -r '.[0].Mounts[] | select(.Destination == "/var/lib/laminar") | .Source')
else
executorLaminarPath=$(pwd)
fi
export executorLaminarPath
checkout_ci.js
|