Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Firstly, you need to set up an azure pipeline with the entrypoint of `/tools/azure-pipelines/build-apache-repo.yml` and variable MODE=nightly in your own free Azure account. You can refer to Azure Pipelines for more details on how to set up a private azure pipeline. 
    Note: The entrypoint and variable MODE in the pipeline are different from the example shown in Azure Pipelines. Besides, you’d better update the master branch in your forked Flink repository to make sure the entrypoint `/tools/azure-pipelines/build-apache-repo.yml` is up to date.
  2. Secondly, you need to push the tag branch to your forked Flink repository

    Code Block
    languagebash
    tools $ git push {your remote repository} ${TAG}


  3. Thirdly, you need to download the PyFlink wheel packages from the build result page after the jobs of "build_wheels mac" and "build_wheels linux" have finished (the pipeline should be triggered automatically when you pushed the tagbranch).
    1. Download the PyFlink wheel packages
      1. Open the build result page of the pipeline
      2. Go to the `Artifacts` page (build_wheels linux -> 1 artifact)
      3. Click `wheel_Darwin_build_wheels mac` and `wheel_Linux_build_wheels linux` separately to download the zip files
    2. Unzip these two zip files

      Code Block
      languagebash
      $ cd /path/to/downloaded_wheel_packages
      $ unzip wheel_Linux_build_wheels\ linux.zip
      $ unzip wheel_Darwin_build_wheels\ mac.zip


    3. Create directory `dist` under the directory of flink-python

      Code Block
      languagebash
      $ cd <flink-dir>
      $ mkdir flink-python/dist


    4. Move the unzipped wheel packages to the directory of flink-python/dist

      Code Block
      languagebash
      $ mv /path/to/wheel_Darwin_build_wheels\ mac/* flink-python/dist/
      $ mv /path/to/wheel_Linux_build_wheels\ linux/* flink-python/dist/
      $ cd tools


...