Zum Hauptinhalt springen

B4A.PM.SCRI.PUBLISH-NEW-VERSION

Details

PropertyValue
TypeSCRI
Subtype-
FolderPACKAGES/BEST4AUTOMIC/B4A.PM/SOURCE/BUILD-RELEASE
Activetrue
Titlepublishes the new version of the package
Archive Key 1-
Archive Key 2-
CreatedTimon Schnakenberg am: 2022-02-18 10:39:45
Last ModifiedWRITER/B4A am: 2023-03-01 14:59:55 18 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

ParentTypePackageFolder
B4A.PM.JOBP.BUILD-RELEASEJOBPB4A.PMPACKAGES/BEST4AUTOMIC/B4A.PM/SERVICES

Variable Publications

Found 1 variable publications (WORKFLOW)

ZeilennummerScriptzeile
35:publish &version#, B4AP_NEW_VERSION_O#, WORKFLOW