onboarding

package
v1.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 11, 2026 License: Apache-2.0 Imports: 6 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package onboarding passes the `teamcity onboard` context to the commands its AI agent runs, and reports onboarding steps to the server.

Index

Constants

View Source
const EnvOnboarding = "TEAMCITY_ONBOARDING"

EnvOnboarding carries the repository type (own or demo) from `teamcity onboard` to the commands its AI agent runs.

Variables

This section is empty.

Functions

func Current

func Current() (api.OnboardingRepositoryType, bool)

Current returns the repository type when running inside `teamcity onboard`; any other value of EnvOnboarding is ignored.

func Enabled

func Enabled() bool

Enabled reports whether onboarding reports may be sent and recorded; not when CLI analytics is opted out.

func Env

Env returns the EnvOnboarding entry for the agent's environment.

func Notify

func Notify(ctx context.Context, debug func(string, ...any), endpoint string, call func(context.Context) error)

Notify runs call, which reports one onboarding step to the server, unless CLI analytics is opted out; a failure is only logged at debug level.

func NotifyBuildQueued

func NotifyBuildQueued(f *cmdutil.Factory, client api.ClientInterface, buildID int)

NotifyBuildQueued reports a build that `run start` queued inside the onboarding to the server; outside it, it does nothing.

func NotifyInBackground

func NotifyInBackground(ctx context.Context, debug func(string, ...any), endpoint string, call func(context.Context) error)

NotifyInBackground is Notify without waiting for the server; a report still in flight when the process exits is lost.

func NotifyPipelineCreated

func NotifyPipelineCreated(f *cmdutil.Factory, client api.ClientInterface, pipelineID string)

NotifyPipelineCreated reports a pipeline that `pipeline create` created inside the onboarding to the server; outside it, it does nothing.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL