react-code-dataset / wp-calypso /bin /get-teamcity-artifact-url
Devendra174's picture
Upload folder using huggingface_hub
1e92f2d verified
#!/usr/bin/env node
// This script will return a url of an artifact generated in the latest project build for the specified branch.
// eg: node bin/get-teamcity-artifact-url --artifact="translate/calypso-strings.pot"
const yargs = require( 'yargs' );
const args = yargs
.default( 'branch', 'trunk' )
.default( 'buildType', 'calypso_calypso_WebApp_Translate' )
.required( 'artifact', 'Set the artifact file path.' ).argv;
const url = `https://teamcity.a8c.com/repository/download/${ args.buildType }/.lastSuccessful/${ args.artifact }?guest=1&branch=${ args.branch }`;
console.log( url );