diff options
author | Cédric Ollivier <cedric.ollivier@orange.com> | 2022-12-15 16:53:14 +0100 |
---|---|---|
committer | Cédric Ollivier <cedric.ollivier@orange.com> | 2022-12-15 16:53:14 +0100 |
commit | 4e7d9403cf1371d4ab5fb1cd0467d06364433f61 (patch) | |
tree | faa14859197d420e80ebacab0e001e9aa1e39595 | |
parent | 19b9c7a165c39f186dbc52ef2e27083dbb1a63f1 (diff) |
Rather call python3
IT fixes all deprecated python script calls.
Change-Id: I5480c420b0963e717fab5835fcf17d435d111093
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
-rwxr-xr-x | jjb/releng/branch-or-tag.sh | 4 | ||||
-rw-r--r-- | jjb/releng/releng-release-create-branch.sh | 4 | ||||
-rw-r--r-- | jjb/releng/releng-release-tagging.sh | 2 | ||||
-rwxr-xr-x | releases/scripts/release-status.sh | 2 |
4 files changed, 6 insertions, 6 deletions
diff --git a/jjb/releng/branch-or-tag.sh b/jjb/releng/branch-or-tag.sh index 93786c627..f9767eca1 100755 --- a/jjb/releng/branch-or-tag.sh +++ b/jjb/releng/branch-or-tag.sh @@ -17,7 +17,7 @@ RELEASE_FILES=$(git diff HEAD^1 --name-only -- "releases/$STREAM") echo "--> Verifying $RELEASE_FILES." for release_file in $RELEASE_FILES; do # Verify the release file schema - python releases/scripts/verify_schema.py \ + python3 releases/scripts/verify_schema.py \ -s releases/schema.yaml \ -y $release_file done @@ -36,5 +36,5 @@ for release_file in $RELEASE_FILES; do source jjb/releng/releng-release-create-branch.sh fi - done < <(python releases/scripts/repos.py -b -f "$release_file") + done < <(python3 releases/scripts/repos.py -b -f "$release_file") done diff --git a/jjb/releng/releng-release-create-branch.sh b/jjb/releng/releng-release-create-branch.sh index 7e91d5ace..bbb9257d7 100644 --- a/jjb/releng/releng-release-create-branch.sh +++ b/jjb/releng/releng-release-create-branch.sh @@ -45,7 +45,7 @@ run_merge(){ unset NEW_FILES if [[ $REF_EXISTS = true && "$JOB_NAME" =~ "merge" ]]; then ssh -n -f -p 29418 gerrit.opnfv.org gerrit create-branch "$repo" "$branch" "$ref" - python releases/scripts/create_jobs.py -f $release_file + python3 releases/scripts/create_jobs.py -f $release_file NEW_FILES=$(git status --porcelain --untracked=no | cut -c4-) fi if [ -n "$NEW_FILES" ]; then @@ -65,7 +65,7 @@ for release_file in $RELEASE_FILES; do else run_merge fi - done < <(python releases/scripts/repos.py -b -f "$release_file") + done < <(python3 releases/scripts/repos.py -b -f "$release_file") done } diff --git a/jjb/releng/releng-release-tagging.sh b/jjb/releng/releng-release-tagging.sh index 839aa37b8..7c4cd257b 100644 --- a/jjb/releng/releng-release-tagging.sh +++ b/jjb/releng/releng-release-tagging.sh @@ -63,5 +63,5 @@ for release_file in $RELEASE_FILES; do popd &> /dev/null echo "--> Done verifing $repo" - done < <(python releases/scripts/repos.py -f $release_file) + done < <(python3 releases/scripts/repos.py -f $release_file) done diff --git a/releases/scripts/release-status.sh b/releases/scripts/release-status.sh index 6790100a7..1fb4f70e2 100755 --- a/releases/scripts/release-status.sh +++ b/releases/scripts/release-status.sh @@ -15,7 +15,7 @@ RELEASE="${RELEASE:-fraser}" [ -a repos.txt ] && rm repos.txt for project in releases/$RELEASE/*; do - python releases/scripts/repos.py -n -f $project >> repos.txt + python3 releases/scripts/repos.py -n -f $project >> repos.txt done while read -r repo |