Commit 09bcc983 authored by Tuukka Lehtonen's avatar Tuukka Lehtonen
Browse files

Ensure in build that the published P2 repository metadata is up-to-date

parent 880708c2
Pipeline #4938 failed with stage
in 20 seconds
......@@ -47,12 +47,8 @@ publish:
before_script:
- *common_before_script
script:
- |
if [[ -f "${KEYSTORE}.keystore" ]]; then
./sign.sh "${KEYSTORE}.keystore" "${SIGN_PROPERTIES}" "${TSA}"
# And regenerate P2 repository metadata after signing to fix checksums
./publish.sh /opt/eclipse/eclipse $CI_PROJECT_DIR/p2
fi
- if [[ -f "${KEYSTORE}.keystore" ]]; then ./sign.sh "${KEYSTORE}.keystore" "${SIGN_PROPERTIES}" "${TSA}"; fi
- ./publish.sh /opt/eclipse/eclipse $CI_PROJECT_DIR/p2
- export EXT_COMPONENT_DIR="$BASE_DOWNLOAD_DIR/$CI_COMMIT_REF_NAME/external-components"
- export PUBLISH_DIR="$EXT_COMPONENT_DIR/manual"
- ssh -i $GITLAB_PRIVATE_KEY $GITLAB_USERNAME@$PUBLISH_ADDRESS mkdir -p "$PUBLISH_DIR"
......
[gerrit]
defaultremote = origin
\ No newline at end of file
No preview for this file type
No preview for this file type
@set ECLIPSE=c:/w/e 4.13
@set REPO=c:/w/git/third-party/p2
@set REPO=C:/w/ws dir/third-party/master/org.simantics.third-party/p2
del "%REPO%/artifacts.jar" "%REPO%/content.jar"
rem "%ECLIPSE%/eclipse" -noupdate -nosplash -application org.eclipse.equinox.p2.publisher.FeaturesAndBundlesPublisher -metadataRepository file:/%REPO% -artifactRepository file:/%REPO% -source %REPO% -compress -publishArtifacts
java -jar "%ECLIPSE%/plugins/org.eclipse.equinox.launcher_1.5.700.v20200207-2156.jar" -application org.eclipse.equinox.p2.publisher.FeaturesAndBundlesPublisher -compress -publishArtifacts -metadataRepository file:/%REPO% -artifactRepository file:/%REPO% -source %REPO%
\ No newline at end of file
java -jar "%ECLIPSE%/plugins/org.eclipse.equinox.launcher_1.5.700.v20200207-2156.jar" -application org.eclipse.equinox.p2.publisher.FeaturesAndBundlesPublisher -compress -publishArtifacts -metadataRepository "file:/%REPO%" -artifactRepository "file:/%REPO%" -source "%REPO%"
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment