diff --git a/.circleci/README.md b/.circleci/README.md new file mode 100644 index 0000000000..ccf24b6aa4 --- /dev/null +++ b/.circleci/README.md @@ -0,0 +1,14 @@ +# How to make changes? +##### Install the CircleCI CLI: +https://circleci.com/docs/2.0/local-cli/#installation + +##### Making a change +Change the areas of the .circleci/config.yml file that need to be edited + +##### To verify your changes +Any config can be verified, to ensure your changes are valid against the yaml and orb schemas, +from the root of the project, run: `circleci config validate .circleci/config.yml --org-slug gh/gresham-computing --token $CIRCLE_TOKEN` + +##### Possible errors: +- Your file must be encoded in UTF-8 (powershell defaulted to UTF-16) +- Must use Unix style line endings (LF, not CRLF) diff --git a/.circleci/cci_create_release_and_snapshot.sh b/.circleci/cci_create_release_and_snapshot.sh new file mode 100755 index 0000000000..eb41a89992 --- /dev/null +++ b/.circleci/cci_create_release_and_snapshot.sh @@ -0,0 +1,40 @@ +#!/bin/bash + +REPOSITORY=https://github.com/gresham-computing/openid-connect-server +MASTER_BRANCH=1.3.x + +function get_version { + local currentVersion=$(mvn -Dexec.executable='echo' -Dexec.args='${project.version}' --non-recursive exec:exec -q) + IFS='-' read -r -a parts <<< "$currentVersion" + + local NEXT_NUMBER="$((${parts[1]} + 1))" + RELEASE_VERSION="${parts[0]}"-"${parts[1]}" + NEXT_SNAPSHOT_VERSION="${parts[0]}"-$NEXT_NUMBER-SNAPSHOT +} + +function bump_to_release { + mvn -s gresham-nexus-settings/ctc.plugins.settings.xml versions:set -DnewVersion=$RELEASE_VERSION + git tag v$RELEASE_VERSION + echo -e "\nopenid-connect-server release: $RELEASE_VERSION\n" +} + +function bump_to_next_snapshot { + mvn -s gresham-nexus-settings/ctc.plugins.settings.xml versions:set -DnewVersion=$NEXT_SNAPSHOT_VERSION + echo -e "\nopenid-connect-server snapshot: $NEXT_SNAPSHOT_VERSION\n" +} + +function commit_changes { + git commit -a -m "$1" +} + +function push_changes { + git push $REPOSITORY $MASTER_BRANCH --tags +} + +get_version +bump_to_release +commit_changes "New openid-connect-server release: ${RELEASE_VERSION}" +push_changes +bump_to_next_snapshot +commit_changes "Next openid-connect-server snapshot: $NEXT_SNAPSHOT_VERSION" +push_changes diff --git a/.circleci/cci_generate_artifact_links.sh b/.circleci/cci_generate_artifact_links.sh new file mode 100755 index 0000000000..6a8d8755cb --- /dev/null +++ b/.circleci/cci_generate_artifact_links.sh @@ -0,0 +1,51 @@ +#!/bin/bash +HOME=~/project +DOWNLOAD_PAGE=$HOME/download.html +LOG=$HOME/mavenOutput.log +SEARCH_TERMS=(openid-connect uma) + +function generate_artifact_links { + EXTENSION=$1 + echo "
+ * Copyright (c) 2010-2023 Gresham Technologies plc. All rights reserved. + * + *