Przeglądaj źródła

Merge branch 'master' of https://github.com/unacms/una

AntonLV 1 rok temu
rodzic
commit
1acee2257f
2 zmienionych plików z 24 dodań i 22 usunięć
  1. 1 1
      install/sql/system.sql
  2. 23 21
      scripts/Jenkinsfile

+ 1 - 1
install/sql/system.sql

@@ -4771,7 +4771,7 @@ CREATE TABLE IF NOT EXISTS `sys_objects_menu` (
   `template_id` int(11) NOT NULL,
   `config_api` text NOT NULL,
   `persistent` tinyint(4) NOT NULL DEFAULT '0',
-  `cache` enum('off','guest','global','per_user','per_user_auto') NOT NULL DEFAULT 'off',
+  `cache` enum('off','guest','global','per_user','per_acl') NOT NULL DEFAULT 'off',
   `deletable` tinyint(4) NOT NULL DEFAULT '1',
   `active` tinyint(4) NOT NULL DEFAULT '0',
   `override_class_name` varchar(255) NOT NULL,

+ 23 - 21
scripts/Jenkinsfile

@@ -415,36 +415,38 @@ pipeline {
         
         stage('UI Tests') {
             steps {
-                script {
-                    echo "Creating cache directories"
-                    sh '''
-                        mkdir -p -m 0777 "${DEPLOY_PATH}/cache/CSS"
-                        mkdir -p -m 0777 "${DEPLOY_PATH}/cache/HTML"
-                        mkdir -p -m 0777 "${DEPLOY_PATH}/cache/URI"
-                    '''
-                    dir('una-ui-test3') {
+                timeout(time: 6, unit: 'MINUTES') {
+                    script {
+                        echo "Creating cache directories"
+                        sh '''
+                            mkdir -p -m 0777 "${DEPLOY_PATH}/cache/CSS"
+                            mkdir -p -m 0777 "${DEPLOY_PATH}/cache/HTML"
+                            mkdir -p -m 0777 "${DEPLOY_PATH}/cache/URI"
+                        '''
+                        dir('una-ui-test3') {
                         
-                        echo "Clone repository with tests"
-                        git branch: 'main',
-                            url: 'git@github.com:unacms/una-ui-test3.git',
-                            credentialsId: '0043feeb-9df7-4494-9b2b-d6c8a1b8ca08'
+                            echo "Clone repository with tests"
+                            git branch: 'main',
+                                url: 'git@github.com:unacms/una-ui-test3.git',
+                                credentialsId: '0043feeb-9df7-4494-9b2b-d6c8a1b8ca08'
                             
-                        // Create environment file
-                        sh '''
-                            cat > .env.local << EOF
+                            // Create environment file
+                            sh '''
+                                cat > .env.local << EOF
 baseUrl=https://${DEPLOY_HTTP_HOST}${DEPLOY_HTTP_PATH}
 userAdminPwd=${TEST_USER_ADMIN_PWD}
 userRegularPwd=${TEST_USER_REGULAR_PWD}
 userTomPwd=${TEST_USER_TOM_PWD}
 EOF
-                        '''
+                            '''
                         
-                        echo "Install dependences for UI tests"
-                        sh 'npm install'
-                        sh 'npx playwright install'
+                            echo "Install dependences for UI tests"
+                            sh 'npm install'
+                            sh 'npx playwright install'
                         
-                        echo "Running Playwright UI Tests"
-                        sh 'npm run test'
+                            echo "Running Playwright UI Tests"
+                            sh 'npm run test'
+                        }
                     }
                 }
             }