Migrate from v1 to v2

1 minute read

Version 2 of the checkout action makes the SCM provider agnostic. In this version, the repository input takes the full clone URL (for example, https://github.com/cloudbees-io/checkout, with a default value of ${{ cloudbees.scm.repository }}), and previously supported inputs and outputs have been removed.

Removed inputs and outputs

Table 1. List of inputs and outputs removed
Removed Input Removed Output

token

commit-url

token-auth-type

provider

github-server-url

bitbucket-server-url

gitlab-server-url

The input fields token and token-auth-type are not supported by the v2 checkout action. For checkout actions that previously used token and token-auth-type, the repository must now either be integrated with CloudBees platform or accessed using SSH keys.

The input fields provider, github-server-url, bitbucket-server-url, and gitlab-server-url are no longer required; they are derived from the information provided in the repository field.

Continue to the Checkout action documentation for details on using the v2 checkout action.