File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 11@Library (' global-jenkins-library@2.7.7' ) _
22
33def userInput
4+ path = ' /home/ubuntu/jenkins/workspace/graph_Poco_Gen_'
5+ currentBranch = ' feat_subgraph_c13'
46
57node {
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
You can’t perform that action at this time.
0 commit comments