How get artifact from bitbucket?

Hello.
I need to get folder artifact in my nomad task from bitbucket.
And it should not be the entire repository, but only one folder or file.
Is it possible to get it?
I try it, but not success:

      artifact {
        source      = "git::https://bitbucket.org/my_company/front_project/config"
        destination = "local"
        options     = {
          username  = "[[ env "ARTIFACT_TOKEN_USR" ]]"
          password  = "[[ env "ARTIFACT_TOKEN_PSW" ]]"
        }
      }

Or is there any other way to get the folder from the repository?

Check out the subdirectories feature of the go-getter library.

1 Like