Skip to content

Commit ed5b247

Browse files
committed
[FAB-17138] Enable push to nexus
Signed-off-by: James Taylor <[email protected]>
1 parent 5496c6c commit ed5b247

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

ci/azure-pipelines.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ stages:
115115
116116
# Publish the snapshot images etc.
117117
# Original source of these is https://github.com/hyperledger/ci-management/blob/master/jjb/fabric-chaincode-java/shell/include-raw-publish-docker-jar.sh
118-
- job:
118+
- job: publish
119119
dependsOn: main
120120
condition: and(succeeded(),eq(variables['Build.Reason'], 'IndividualCI'))
121121
variables:
@@ -124,7 +124,6 @@ stages:
124124
- task: DownloadPipelineArtifact@2
125125
inputs:
126126
artifact: javaenv-docker-image
127-
enabled: false
128127
path: $(Build.SourcesDirectory)/build
129128
- script: |
130129
@@ -137,12 +136,12 @@ stages:
137136
docker tag hyperledger/fabric-javaenv ${DOCKER_REGISTRY_URL}/fabric-javaenv:amd64-${MAPPED_VERSION}-stable
138137
# push javaenv to nexus repository
139138
docker push ${DOCKER_REGISTRY_URL}/fabric-javaenv:amd64-${MAPPED_VERSION}-stable
140-
enabled: false
141139
env:
142140
DOCKER_REGISTRY_USERNAME: $(nexus-user)
143141
DOCKER_REGISTRY_PASSWORD: $(nexus-password)
144142
DOCKER_REGISTRY_URL: nexus3.hyperledger.org:10003/hyperledger
145143
MAPPED_VERSION: $(PACKAGE_VERSION)
144+
displayName: 'docker push to nexus'
146145

147146
# As the next script is more complex and uses loops, run this descretely in a sh file
148147
# Publishing step for git tags

0 commit comments

Comments
 (0)