Add propose-update-constraints job
After we release to PyPI, we want to send out update-constraints. We don't need to rewrite all the scripts involved with this for now, so update them to call each other using relative not absolute paths. Then, copy the scripts dir from the trusted checkout on the executor to the homedir on the remote host so that we can execute the appropriate script. Local paths are relative to the location of the playbook. Change-Id: I080f71fefe79f7faa581fae91eac74384cef4050
This commit is contained in:
parent
ec2f295492
commit
cb1fe3a91d
@ -14,7 +14,8 @@
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
source /usr/local/jenkins/slave_scripts/common.sh
|
||||
SCRIPTSDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
source $SCRIPTSDIR/common.sh
|
||||
|
||||
# Set start of timestamp for subunit
|
||||
TRANS_START_TIME=$(date +%s)
|
||||
|
@ -12,7 +12,8 @@
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
source /usr/local/jenkins/slave_scripts/common.sh
|
||||
SCRIPTSDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
source $SCRIPTSDIR/common.sh
|
||||
|
||||
OWN_PROJECT=$1
|
||||
if [ -z "$OWN_PROJECT" ] ; then
|
||||
|
13
playbooks/proposal/pre.yaml
Normal file
13
playbooks/proposal/pre.yaml
Normal file
@ -0,0 +1,13 @@
|
||||
- hosts: all
|
||||
tasks:
|
||||
|
||||
- name: Copy the scripts directory to the remote node
|
||||
synchronize:
|
||||
# src is relative to the dir the playbook is in on the executor
|
||||
src: ../../jenkins/scripts
|
||||
dest: "{{ ansible_user_dir }}"
|
||||
|
||||
- name: Write out ssh key
|
||||
file:
|
||||
path: "~/.ssh/id_rsa"
|
||||
content: "{{ proposal_ssh_key.private_key }}"
|
7
playbooks/proposal/propose-update-constraints.yaml
Normal file
7
playbooks/proposal/propose-update-constraints.yaml
Normal file
@ -0,0 +1,7 @@
|
||||
- hosts: all
|
||||
tasks:
|
||||
|
||||
- name: Propose constraints update
|
||||
command: "{{ ansible_user_dir }}/scripts/release-tools/update_constraints.sh {{ zuul.tag }}"
|
||||
args:
|
||||
chdir: "src/{{ zuul.project.canonical_name }}"
|
58
zuul.yaml
58
zuul.yaml
@ -187,6 +187,19 @@
|
||||
run: playbooks/python-tarball/run
|
||||
post-run: playbooks/python-branch-tarball/post
|
||||
|
||||
- job:
|
||||
name: propose-updates
|
||||
pre-run: playbooks/proposal/pre
|
||||
secrets:
|
||||
- proposal_ssh_key
|
||||
|
||||
- job:
|
||||
parent: propose-updates
|
||||
name: propose-update-constraints
|
||||
run: playbooks/propose-update-constraints
|
||||
dependencies:
|
||||
- release-openstack-python
|
||||
|
||||
- project:
|
||||
name: openstack-infra/project-config
|
||||
check:
|
||||
@ -436,6 +449,51 @@
|
||||
eVqjTotOZtPsslRS0gKw5io0GXkDsCTBsTFU3Doj+rNNry9k4TGDtWQKXXQ69Od2SYZWX
|
||||
QP1bNWdWJ4Cy1tMJqg8X21NSd58MKTvV/vbL5/N7jx3KGj/V/ug7lLCSil1jMg=
|
||||
|
||||
- secret:
|
||||
name: proposal_ssh_key
|
||||
data:
|
||||
private_key: !encrypted/pkcs1-oaep
|
||||
- ZtYinMMMMXChMzdA6ZPkt2sPmIEoumSAT6oD+Cc82b56Euv+mbetJRsDydH+PNRzLpzPB
|
||||
DM8KuW2a9AsWutC/x/oCxtijmfUzUifCsUWUbBr9zVPhpIDcsw/BfyLCRIhW3/DUu1X8e
|
||||
rFtClxs6DM19HIuuRJq9XD9PQ2o9CNM4tbdLNEFLOMlVqR0rwtJ/++ZaSdNLRtThINrCy
|
||||
9/vN3/EGVD81MAQj5B5Aa/SHnGH27Q81wM9LsrkbdWabSi+CfJFJL2hRMCDCkQH4mTD6G
|
||||
cdTGAps/rdDgZpxWOqwmC/vgZQzyRb8tyaFDqFJOG53I/gw5PfWwQm4oW4Z4vNSNoFbzm
|
||||
WYAnL5kV+kdNhFFjgtGoKYQsojEZEYMH16WvmR/GVY1t8S6VkCtqkGHdNwBHryWuiTcuL
|
||||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kM6dOz9/x9ilA4f8FM
|
||||
AGJsEtB3b+P06O6OgGYLwzSNCZkEsYNz5KRQM/IVyMC2LNVsk2jOWA3uEnrjIVJR49sJA
|
||||
NLlN58icE25LySF5sOWsRX1Cc+H/WTR3AgdMALdjFG5K808UC7x7IiVFA4wztJER/vmou
|
||||
ijm/etaDi2MpGDMZcK9dnmdyWUdcR3Ed8RtsMwiAjZhMtA27kIBybK7c8rCNnPhv/huON
|
||||
CDih/PpK9ofisCqVyvl0E+4l75l4P4TCdi7d96/9qTQSIP0b8uraGnw1QvGj46j4Cus1o
|
||||
4tjgrxleCEIUTCykp5IWhjbfYUIMK1dqaaEoGE27qBC8FY5rrq9cEVtFvGCUOM=
|
||||
|
||||
- project:
|
||||
name: openstack-infra/zuul-jobs
|
||||
check:
|
||||
|
Loading…
Reference in New Issue
Block a user