disk service jenkinsfile less verbose

This commit is contained in:
2025-10-26 15:18:41 -07:00
parent 8411578068
commit 0435dabd87
8 changed files with 90 additions and 32 deletions

View File

@ -13,19 +13,31 @@
- name: Copy requirements.txt
ansible.windows.win_copy:
src: requirements.txt
dest: "{{ python_venv }}\requirements.txt"
dest: "{{ python_venv }}\\requirements.txt"
- name: Create virtual environment
win_shell: "py -m venv {{ python_venv }}"
win_shell: "python -m venv {{ python_venv }}"
- name: Upgrade pip in the virtual environment
win_shell: "{{ python_venv }}\pip install --upgrade pip"
win_shell: "{{ python_venv_bin }} -m pip install --upgrade pip"
args:
chdir: "{{ python_venv }}"
- name: Install Python dependencies from requirements.txt
win_shell: "{{ python_venv }}\pip install -r {{ python_venv }}\requirements.txt"
win_shell: "{{ python_venv_bin }} -m pip install -r {{ python_venv }}\\requirements.txt"
args:
chdir: "{{ python_venv }}"
#- name: Upgrade pip in the virtual environment
# win_shell: "{{ python_venv }}\\pip install --upgrade pip"
# args:
# chdir: "{{ python_venv }}"
#
#- name: Install Python dependencies from requirements.txt
# win_shell: "{{ python_venv }}\\pip install -r {{ python_venv }}\\requirements.txt"
# args:
# chdir: "{{ python_venv }}"
...