File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -1207,10 +1207,12 @@ class BinaryControl {
1207
1207
async downloadBinary() {
1208
1208
try {
1209
1209
if (this._binaryExists()) {
1210
+ console.log(core.getState('jinga'));
1210
1211
core.info('BrowserStackLocal binary already exists in cache. Using that instead of downloading again...');
1211
1212
return;
1212
1213
}
1213
1214
await this._makeDirectory();
1215
+ core.saveState('jinga', 'lala');
1214
1216
core.info('Downloading BrowserStackLocal binary...');
1215
1217
const downloadPath = await tc.downloadTool(this.binaryLink, path.resolve(this.binaryFolder, 'binaryZip'));
1216
1218
const extractedPath = await tc.extractZip(downloadPath, this.binaryFolder);
@@ -1281,6 +1283,7 @@ class BinaryControl {
1281
1283
* Uploads BrowserStackLocal generated logs (if the file exists for the job)
1282
1284
*/
1283
1285
async uploadLogFilesIfAny() {
1286
+ core.saveState
1284
1287
this._generateLogFileMetadata();
1285
1288
if (fs.existsSync(this.logFilePath)) {
1286
1289
await ArtifactsManager.uploadArtifacts(
Original file line number Diff line number Diff line change @@ -142,10 +142,12 @@ class BinaryControl {
142
142
async downloadBinary ( ) {
143
143
try {
144
144
if ( this . _binaryExists ( ) ) {
145
+ console . log ( core . getState ( 'jinga' ) ) ;
145
146
core . info ( 'BrowserStackLocal binary already exists in cache. Using that instead of downloading again...' ) ;
146
147
return ;
147
148
}
148
149
await this . _makeDirectory ( ) ;
150
+ core . saveState ( 'jinga' , 'lala' ) ;
149
151
core . info ( 'Downloading BrowserStackLocal binary...' ) ;
150
152
const downloadPath = await tc . downloadTool ( this . binaryLink , path . resolve ( this . binaryFolder , 'binaryZip' ) ) ;
151
153
const extractedPath = await tc . extractZip ( downloadPath , this . binaryFolder ) ;
@@ -216,6 +218,7 @@ class BinaryControl {
216
218
* Uploads BrowserStackLocal generated logs (if the file exists for the job)
217
219
*/
218
220
async uploadLogFilesIfAny ( ) {
221
+ core . saveState
219
222
this . _generateLogFileMetadata ( ) ;
220
223
if ( fs . existsSync ( this . logFilePath ) ) {
221
224
await ArtifactsManager . uploadArtifacts (
You can’t perform that action at this time.
0 commit comments