Publish Apply

Introduction

Create and execute a publish.

Configuration Item

Different publish methods require different configuration items.

General Release

  • Apply Title The name of the application.
  • Select Branch/Tag/Commit Support to select the branch and CommitID or Tag to determine the code to be released.
  • Publish Target Host Select the target host to be published (select from the target host added to the publish configuration).

Custom Release

  • Apply Title The name of the application.
  • Environment Variable (SPUG_RELEASE) You can refer to this variable in the custom script to set the dynamic variables related to this release. You can use the value of $SPUG_RELEASE in the action script added to the publish configuration.
  • Publish Target Host Select the target host to be published (select from the target host added to the publish configuration).

Delete Publish Record

You can find that the publish application cannot be deleted directly after the release. This is not because we are lazy, but because it is designed this way. Based on our previous experience, the release record is an important clue to troubleshoot problems in some cases. For example, a user publishes a new version of an application through Spug without sufficient testing. Unfortunately, this new version was found to have problems after it was released, causing the service to be unavailable. For some reason, this user quietly deleted this release record. Then this behavior may cause some trouble when troubleshooting. So we only designed to delete by time and retain the number of dimensions to avoid the possible problems mentioned above.

Publish Apply - 图1Tips

  • If the audit function is enabled in the publish configuration, the application created needs to be approved before the release operation can be executed.