Skip to content

Commit 64ebb30

Browse files
Apply suggestions from code review
Co-authored-by: Zied Guesmi <26070035+zguesmi@users.noreply.github.com>
1 parent 3989113 commit 64ebb30

File tree

2 files changed

+9
-19
lines changed

2 files changed

+9
-19
lines changed

Jenkinsfile

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,25 +8,26 @@ node {
88
checkout scm
99
}
1010

11-
stage('Deployment Form') {
11+
stage('Choose network and host') {
1212
timeout(time: 5, unit: 'MINUTES') {
1313
userInput = input(
1414
id: 'select-deployment',
1515
message: 'Select environment & service',
1616
parameters: [
17-
string(name: 'network', description: 'The network name you want to deploy your subgraph'),
18-
string(name: 'targetRemoteHost', description: 'The host you want to deploy the subgraph')
17+
string(name: 'network', description: 'Target network name of the subgraph'),
18+
string(name: 'targetRemoteHost', description: 'Hostname where to deploy the subgraph')
1919
]
2020
)
2121
}
2222
echo "Selected network: '${userInput.network}'"
23-
echo "Selected service name: '${userInput.targetRemoteHost}'"
23+
echo "Selected hostname: '${userInput.targetRemoteHost}'"
2424
}
2525

2626
stage('Setup Docker Image') {
27-
sh 'apk add jq'
27+
sh 'apk add jq bash'
2828
}
29-
stage('Building Subgraph') {
29+
30+
stage('Generate subgraph file') {
3031
sh """
3132
# Navigate to workspace directory and ensure the script is executable
3233
chmod +x generate_subgraph.sh &&

subgraph.template.yaml

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,5 @@
1-
# Copyright 2024 IEXEC BLOCKCHAIN TECH
2-
#
3-
# Licensed under the Apache License, Version 2.0 (the "License");
4-
# you may not use this file except in compliance with the License.
5-
# You may obtain a copy of the License at
6-
#
7-
# http://www.apache.org/licenses/LICENSE-2.0
8-
#
9-
# Unless required by applicable law or agreed to in writing, software
10-
# distributed under the License is distributed on an "AS IS" BASIS,
11-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12-
# See the License for the specific language governing permissions and
13-
# limitations under the License.
1+
# SPDX-FileCopyrightText: 2020-2024 IEXEC BLOCKCHAIN TECH <contact@iex.ec>
2+
# SPDX-License-Identifier: Apache-2.0
143

154
specVersion: 0.0.4
165
description: iExecPoCoV5

0 commit comments

Comments
 (0)