Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Zied Guesmi <[email protected]>
  • Loading branch information
gfournieriExec and zguesmi authored Jul 15, 2024
1 parent 3989113 commit 64ebb30
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 19 deletions.
13 changes: 7 additions & 6 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,25 +8,26 @@ node {
checkout scm
}

stage('Deployment Form') {
stage('Choose network and host') {
timeout(time: 5, unit: 'MINUTES') {
userInput = input(
id: 'select-deployment',
message: 'Select environment & service',
parameters: [
string(name: 'network', description: 'The network name you want to deploy your subgraph'),
string(name: 'targetRemoteHost', description: 'The host you want to deploy the subgraph')
string(name: 'network', description: 'Target network name of the subgraph'),
string(name: 'targetRemoteHost', description: 'Hostname where to deploy the subgraph')
]
)
}
echo "Selected network: '${userInput.network}'"
echo "Selected service name: '${userInput.targetRemoteHost}'"
echo "Selected hostname: '${userInput.targetRemoteHost}'"
}

stage('Setup Docker Image') {
sh 'apk add jq'
sh 'apk add jq bash'
}
stage('Building Subgraph') {

stage('Generate subgraph file') {
sh """
# Navigate to workspace directory and ensure the script is executable
chmod +x generate_subgraph.sh &&
Expand Down
15 changes: 2 additions & 13 deletions subgraph.template.yaml
Original file line number Diff line number Diff line change
@@ -1,16 +1,5 @@
# Copyright 2024 IEXEC BLOCKCHAIN TECH
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# SPDX-FileCopyrightText: 2020-2024 IEXEC BLOCKCHAIN TECH <[email protected]>
# SPDX-License-Identifier: Apache-2.0

specVersion: 0.0.4
description: iExecPoCoV5
Expand Down

0 comments on commit 64ebb30

Please sign in to comment.