Skip to content

Commit bfb948d

Browse files
committed
test no hardcoded path
1 parent 0eca6e0 commit bfb948d

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

Jenkinsfile

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
@Library('global-jenkins-library@2.7.7') _
22

33
def userInput
4+
path = '/home/ubuntu/jenkins/workspace/graph_Poco_Gen_'
5+
currentBranch = 'feat_subgraph_c13'
46

57
node {
68
docker.image('node:20-alpine').inside('--user root') {
@@ -26,19 +28,19 @@ node {
2628
stage('Setup Docker Image') {
2729
sh 'apk add jq'
2830
}
29-
31+
// cd '${path}''${currentBranch}' &&
3032
stage('Building Subgraph') {
3133
sh """
3234
# Navigate to workspace directory and ensure the script is executable
33-
cd /home/ubuntu/jenkins/workspace/graph_Poco_Gen_feat_subgraph_c13 &&
3435
chmod +x generate_subgraph.sh &&
3536
apk add bash &&
3637
bash ./generate_subgraph.sh '${userInput.network}'
3738
"""
3839

3940
// Validate subgraph file generation
41+
// FILE='${path}''${currentBranch}'/subgraph.${userInput.network}.yaml
4042
sh """
41-
FILE=/home/ubuntu/jenkins/workspace/graph_Poco_Gen_feat_subgraph_c13/subgraph.${userInput.network}.yaml
43+
FILE=./subgraph.${userInput.network}.yaml
4244
if test -f "\$FILE"; then
4345
echo "Subgraph file generated successfully"
4446
else

0 commit comments

Comments
 (0)