B4A.PM.SCRI.PUBLISH-NEW-VERSION

Summary

Details

Object type
SCRI
Object Subtype
-
Object Folder
PACKAGES/BEST4AUTOMIC/B4A.PM/SOURCE/BUILD-RELEASE
Active
true
Title
publishes the new version of the package
Archive Key 1
-
Archive Key 2
-
Created
WRITER/B4A am: 2022-03-24 08:03:05
Last Modified
WRITER/B4A am: 2024-01-09 10:39:01 8 x
Last Used
-

Custom Attributes

No custom attributes defined.

Process

:PROCESS &hnd#
:  SET &key# =get_process_line(&hnd#,3)
:  IF &key# = "Version"
:    SET &version# = get_process_line(&hnd#,4)
:  ENDIF
:ENDPROCESS

:p "old version: &version#"
:define &version_comps#, string, 3
:fill &version_comps#[] = str_split( &version#, "." )
:set &version_comps#[ 1 ] = str_trim( &version_comps#[ 1 ] )
:p "version: '&version_comps#[ 1 ]'"
:set &version_comps#[ 2 ] = str_trim( &version_comps#[ 2 ] )
:p "version: '&version_comps#[ 2 ]'"
:set &version_comps#[ 3 ] = str_trim( &version_comps#[ 3 ] )
:p "version: '&version_comps#[ 3 ]'"
:switch &B4AP_RELEASE_TYPE_I#
:  case "major"
:  set &version_comps#[ 1 ] = &version_comps#[ 1 ] + 1
:  set &version_comps#[ 1 ] = format ( &version_comps#[ 1 ] )
:  set &version_comps#[ 2 ] = "0"
:  set &version_comps#[ 3 ] = "0"
:  case "minor"
:  set &version_comps#[ 2 ] = &version_comps#[ 2 ] + 1
:  set &version_comps#[ 2 ] = format ( &version_comps#[ 2 ] )
:  set &version_comps#[ 3 ] = "0"
:  case "fix"
:  set &version_comps#[ 3 ] = &version_comps#[ 3 ] + 1
:  set &version_comps#[ 3 ] = format ( &version_comps#[ 3 ] )
:endswitch

:set &version# = "&version_comps#[ 1 ].&version_comps#[ 2 ].&version_comps#[ 3 ]"
:p "new version: &version#"
:publish &version#, B4AP_NEW_VERSION_O#, WORKFLOW

Runtime

ERT Method
DYNAMIC_AVERAGE
Current ERT
00 : 01 : 01 No. of past runs
0 +ERT Correction %
0

Sync

No sync definitions.

Variables

No variables defined.

Prompt Sets

No promptsets defined.

Automatic Deactivation

Deactivate on Finish
ALWAYS
Deactivate After
0

Runtime Parameters

AE Priority
0
Timezone
-
Generate at runtime
false
Max. Parallel Tasks
0

Usage

Parent Type Package Folder
B4A.PM.JOBP.BUILD-RELEASE JOBP B4A.PM PACKAGES/BEST4AUTOMIC/B4A.PM/SERVICES

Variable Publications

Found 1 variable publications (WORKFLOW)

Zeilennummer Scriptzeile
35 :publish &version#, B4AP_NEW_VERSION_O#, WORKFLOW