fabric-samples/ci/templates/test-network/azure-pipelines.yml
Bret Harrison 1f27c327f3 Allow install of a chaincode
options on the network script to deploy chaincode
-ccn The name to be used as the deployed name and used as
     the short name of known chaincodes when the -ccp is not included.
   known short names
     'basic' - asset-transfer-basic
     'secure' - asset-transfer-secured-agreement
     'ledger' - asset-transfer-ledger-queries
     'private' - asset-transfer-private-data
-ccl the language of the chaincode
-ccv the version
-ccs the sequence
-ccp [optional] the path to the chaincode, when provided
     the -ccn will be the deployed name
-cci [optional] the chaincode function to call during deployment
     that will perform an initialization of the channel state
     required for this chaincode

Signed-off-by: Bret Harrison <beharrison@nc.rr.com>
2020-07-15 10:39:12 -04:00

14 lines
566 B
YAML

#
# SPDX-License-Identifier: Apache-2.0
#
steps:
- script: |
./network.sh up createChannel -s couchdb -i ${FABRIC_VERSION} # FABRIC_VERSION is set in ci/azure-pipelines.yml
./network.sh deployCC -ccn basic -ccv 1 -ccl javascript -cci initLedger
./network.sh deployCC -ccn basic -ccv 2 -ccl golang -cci initLedger
./network.sh deployCC -ccn basic -ccv 3 -ccl typescript -cci initLedger
./network.sh deployCC -ccn secure -ccv 1 -ccl golang
./network.sh down
workingDirectory: test-network
displayName: Start Test Network